PHP Classes

File: aksara/Modules/Announcements/Views/index.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  aksara/Modules/Announcements/Views/index.php  >  Download  
File: aksara/Modules/Announcements/Views/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Initial commit for update 4.2.8

Refine the core modules
Initial commit for update 4.2.8

- Add the capability to get nearest features when using OpenLayers;
- Refine the core module views.
Date: 7 hours ago
Size: 1,261 bytes
 

Contents

Class file image Download
<div class="jumbotron jumbotron-fluid bg-light gradient">
    <div class="container">
        <div class="text-center text-md-left">
            <h3 class="mb-0<?php echo (!$meta->description ? ' mt-3' : null); ?>">
                <?php echo $meta->title; ?>
</h3>
            <p class="lead">
                <?php echo truncate($meta->description, 256); ?>
</p>
        </div>
    </div>
</div>

<div class="container pt-3 pb-3">
    <div class="row">
        <div class="col-md-10 offset-1">
            <?php
               
if($results)
                {
                    foreach(
$results as $key => $val)
                    {
                        echo
'
                            <blockquote class="blockquote'
. ($key ? ' mt-5' : null) . '">
                                <a href="'
. go_to($val->announcement_slug) . '" class="--xhr">
                                    <h5 class="mb-0">
                                        '
. $val->title . '
                                    </h5>
                                </a>
                                <p class="lead">
                                    '
. truncate($val->content, 160) . '
                                </p>
                                <footer class="blockquote-footer">
                                    '
. phrase('valid_until') . ' ' . $val->end_date . '
                                </footer>
                            </blockquote>
                        '
;
                    }
                   
                    echo
$template->pagination;
                }
                else
                {
                    echo
'
                        <div class="alert alert-warning">
                            <i class="mdi mdi-information"></i>
                            '
. phrase('no_announcement_is_available') . '
                        </div>
                    '
;
                }
           
?>
</div>
    </div>
</div>

For more information send a message to info at phpclasses dot org.