PHP Classes

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

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  aksara/Modules/Announcements/Views/read.php  >  Download  
File: aksara/Modules/Announcements/Views/read.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.
Initial commit for update 4.2.8

Change the phrase
Date: 7 days ago
Size: 1,855 bytes
 

Contents

Class file image Download
<?php if($results) { ?>
<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>
<?php } ?>

<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
'
                            <p>
                                '
. $val->content . '
                            </p>
                            <p class="text-muted mb-5">
                                <em>
                                    '
. phrase('this_announcement_will_be_effective_until') . ' <b>' . $val->end_date . '</b>
                                </em>
                            </p>
                            <a href="'
. current_page('../') . '" class="btn btn-outline-primary rounded-pill --xhr">
                                <i class="mdi mdi-arrow-left"></i>
                                '
. phrase('back') . '
                            </a>
                        '
;
                    }
                }
                else
                {
                    echo
'
                        <div class="row mb-5">
                            <div class="col-md-6 offset-md-3">
                                <div class="text-center pt-5 pb-5">
                                    <h1 class="text-muted">
                                        404
                                    </h1>
                                    <i class="mdi mdi-message-alert-outline mdi-5x text-muted"></i>
                                </div>
                                <h2 class="text-center">
                                    '
. phrase('announcement_not_found') . '
                                </h2>
                                <p class="lead text-center mb-5">
                                    '
. phrase('the_announcement_you_requested_was_not_found_or_its_already_removed') . '
                                </p>
                                <div class="text-center mt-5">
                                    <a href="'
. go_to('../') . '" class="btn btn-outline-primary rounded-pill --xhr">
                                        <i class="mdi mdi-arrow-left"></i>
                                        '
. phrase('back_to_announcements') . '
                                    </a>
                                </div>
                            </div>
                        </div>
                    '
;
                }
           
?>
</div>
    </div>
</div>

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