PHP Classes

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

Recommend this page to a friend!
  Classes of Aby Dahana   Aksara   aksara/Modules/Peoples/Views/index.php   Download  
File: aksara/Modules/Peoples/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 5.0.0
Date: 4 months ago
Size: 2,275 bytes
 

Contents

Class file image Download
<?php
    $output
= null;
?>
<div class="py-3 py-md-5 bg-light">
    <div class="container">
        <h1 class="text-center text-md-start">
            <?= $meta->title; ?>
</h1>
        <p class="lead text-center text-md-start">
            <?= truncate($meta->description, 256); ?>
</p>
    </div>
</div>
<?php if ($results): ?>
<div class="py-3 py-md-5">
        <div class="container">
            <div class="row">
                <?php foreach ($results as $key => $val): ?>
<div class="col-sm-6 col-md-4 col-lg-3">
                        <div class="card border-0 rounded-4 shadow-sm mb-3 overflow-hidden">
                            <a href="<?= go_to($val->people_slug); ?>" class="--xhr">
                                <img src="<?= get_image('peoples', $val->photo, 'thumb'); ?>" class="card-img-top w-100" alt="<?= $val->first_name . ' ' . $val->last_name; ?>" />
                            </a>
                            <div class="card-body">
                                <a href="<?= go_to($val->people_slug); ?>" class="--xhr">
                                    <h5 class="card-title text-center text-truncate">
                                        <?= truncate($val->first_name, 22) . ' ' . truncate($val->last_name, 22); ?>
</h5>
                                </a>
                                <a href="<?= go_to($val->people_slug); ?>" class="--xhr">
                                    <h6 class="card-subtitle fw-light text-center mb-2 text-muted text-truncate">
                                        <?= truncate($val->position, 22); ?>
</h6>
                                </a>
                            </div>
                        </div>
                    </div>
                <?php endforeach; ?>
</div>
           
            <?= pagination($pagination); ?>
</div>
    </div>
<?php else: ?>
<div class="py-3 py-md-5">
        <div class="container">
            <div class="text-muted">
                <i class="mdi mdi-information-outline"></i>
                <?= phrase('No people are available right now.'); ?>
</div>
        </div>
    </div>
<?php endif; ?>