PHP Classes

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

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  aksara/Modules/Testimonials/Views/index.php  >  Download  
File: aksara/Modules/Testimonials/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

The update under this commit:
1. Core: refine the grid view and validation statement;
2. Enlarge the group privileges modal;
3. Add the sample individual user privileges;
4. Refine the core module views;
5. Change the login component to use view instead.
Initial commit for update 4.2.8

- Add the capability to get nearest features when using OpenLayers;
- Refine the core module views.
Date: 10 hours ago
Size: 1,462 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)
                {
                   
$items = null;
                    foreach(
$results as $key => $val)
                    {
                       
$items .= '
                            <div class="row mb-3 align-items-center">
                                <div class="col-3 col-md-3 pt-2">
                                    <img src="'
. get_image('testimonials', $val->photo, 'thumb') . '" class="img-fluid rounded-more">
                                </div>
                                <div class="col-9 col-md-9">
                                    <h4 class="article font-weight-bold">
                                        '
. $val->testimonial_title . '
                                    </h4>
                                    <p class="article">
                                        '
. $val->testimonial_content . '
                                    </p>
                                    <p class="blockquote-footer">
                                        <b>'
. $val->first_name . ' ' . $val->last_name . '</b>, ' . $val->timestamp . '
                                    </p>
                                </div>
                            </div>
                        '
;
                    }
                   
                    echo
$items;
                   
                    echo
$template->pagination;
                }
                else
                {
                    echo
'
                        <div class="text-muted">
                            <i class="fa fa-info"></i>
                            '
. phrase('no_testimonial_is_available') . '
                        </div>
                    '
;
                }
           
?>
</div>
    </div>
</div>

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