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: Commit for update version 4.4.5

1. Updating core, fix the non-array indexing for the set title, icon and description;
2. Fix default data ordering;
3. Minor fix related to the Bootstrap template;
Initial commit for update 4.4.0

- Refine core modules and plugin;
- Removing unnecessary dependencies.
Update commit for the version 4.3.3

Updates for this commit:
- Updating the default dependency of Bootstrap, now using Bootstrap version 5;
- Updating the minimum CI version to ^4.2.0;
- Secrete the Bootstrap framework as the required dependency, now you can create your own theme without concern to conflict with Bootstrap;
- Refine the Aksara core including its components;
- Fixing the feature that previously broken.
Date: 15 days ago
Size: 1,576 bytes
 

Contents

Class file image Download
<div class="bg-light text-secondary">
    <div class="container pt-5 pb-5">
        <div class="row">
            <div class="col-md-8 offset-md-2">
                <h1 class="text-center">
                    <?php echo $meta->title; ?>
</h1>
                <p class="lead text-center">
                    <?php echo truncate($meta->description, 256); ?>
</p>
            </div>
        </div>
    </div>
</div>

<div class="container pt-5 pb-5">
    <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-4">
                                </div>
                                <div class="col-9 col-md-9">
                                    <h4 class="article fw-bold">
                                        '
. $val->testimonial_title . '
                                    </h4>
                                    <div class="article mb-4">
                                        '
. $val->testimonial_content . '
                                    </div>
                                    <p class="blockquote-footer">
                                        <b>'
. $val->first_name . ' ' . $val->last_name . '</b>, ' . $val->timestamp . '
                                    </p>
                                </div>
                            </div>
                        '
;
                    }
                   
                    echo
$items;
                   
                    if(
$total > $limit)
                    {
                        echo
'
                            <div class="pt-3 pb-3">
                                '
. $template->pagination . '
                            </div>
                        '
;
                    }
                }
                else
                {
                    echo
'
                        <div class="text-muted">
                            <i class="mdi mdi-information-outline"></i>
                            '
. phrase('no_testimonial_is_available') . '
                        </div>
                    '
;
                }
           
?>
</div>
    </div>
</div>

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