PHP Classes

File: aksara/Modules/Galleries/Views/category.php

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

Change the phrase
Initial commit for update version 4.2.8

1. \aksara\Laboratory\Core.php: assign the method of "parent_module" related to view template and permission, add the option parameter for "set_title" to set the individual title for current action (index, create, read, update), improve the autocomplete function;

2. \aksara\Laboratory\Model.php: add the method to get error message, throwing an error message than error exception;

3. \aksara\Laboratory\Permission.php: change the thrown error method when validate AJAX request;

4. \aksara\Laboratory\Template.php: correct the view path finder of sub-modules;

5. Change the template of core modules;

6. Add the reverse geocoding for openlayers when updating the layer feature;

7. Minor updates for core plugins.
Revert "Initial commit for updat 4.2.8"

This reverts commit 5d2eaabba9d42ad8dc108eaf4303b2d58a50a735.
Initial commit for update 3.2.8

1. \aksara\Laboratory\Core.php: assign the method of "parent_module" related to view template and permission, add the option parameter for "set_title" to set the individual title for current action (index, create, read, update), improve the autocomplete function;

2. \aksara\Laboratory\Model.php: add the method to get error message, throwing an error message than error exception;

3. \aksara\Laboratory\Permission.php: change the thrown error method when validate AJAX request;

4. \aksara\Laboratory\Template.php: correct the view path finder of sub-modules;

5. Change the template of core modules;

6. Add the reverse geocoding for openlayers when updating the layer feature;

7. Minor updates for core plugins.
Revert "Revert "Revert "Initial commit for updat 4.2.8"""

This reverts commit 73226fbaf324b253ed2c3888e8eabd81ca8ef946.
Revert "Revert "Initial commit for updat 4.2.8""

This reverts commit 94a714c958f637d932a6bea4bb15a884ddef733e.
Revert "Initial commit for updat 4.2.8"

This reverts commit 5d2eaabba9d42ad8dc108eaf4303b2d58a50a735.
Revert "Revert "Initial commit for updat 4.2.8""

This reverts commit 91ca274f4924f2ba97344ab5d80cb64f6a1a1274.
Revert "Initial commit for updat 4.2.8"

This reverts commit 5d2eaabba9d42ad8dc108eaf4303b2d58a50a735.
Initial commit for updat 4.2.8

1. \aksara\Laboratory\Core.php: assign the method of "parent_module" related to view template and permission, add the option parameter for "set_title" to set the individual title for current action (index, create, read, update), improve the autocomplete function;

2. \aksara\Laboratory\Model.php: add the method to get error message, throwing an error message than error exception;

3. \aksara\Laboratory\Permission.php: change the thrown error method when validate AJAX request;

4. \aksara\Laboratory\Template.php: correct the view path finder of sub-module;

5. Change the template of core module;

6. Add the reverse geocoding for openlayers when updating the layer feature;

7. Minor update for core plugins.
Date: 5 days ago
Size: 1,952 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">
    <?php
       
if($results)
        {
           
$output = null;
           
            foreach(
$results as $key => $val)
            {
               
$images = json_decode($val->gallery_images, true);
               
$labels = explode(',', $val->gallery_tags);
               
                if(
is_array($images) && sizeof($images) > 0)
                {
                    foreach(
$images as $src => $alt)
                    {
                        if(!
$src) continue;
                       
                       
$output .= '
                            <div class="col-sm-6 col-md-3">
                                <a href="'
. current_page($src) . '" class="--xhr">
                                    <img src="'
. get_image('galleries', $src, 'thumb') . '" class="rounded-more shadow-sm w-100 mb-4" alt="' . $alt . '" />
                                </a>
                            </div>
                        '
;
                    }
                }
            }
           
            echo
'<div class="row">' . $output . '</div>';
        }
        else
        {
            echo
'
                <div class="container pt-5">
                    <div class="text-center pt-5 pb-5">
                        <h1 class="text-muted">
                            404
                        </h1>
                        <i class="mdi mdi-image-broken mdi-5x text-muted"></i>
                    </div>
                    <div class="row mb-5">
                        <div class="col-md-6 offset-md-3">
                            <h2 class="text-center">
                                '
. phrase('album_not_found') . '
                            </h2>
                            <p class="lead text-center mb-5">
                                '
. phrase('the_album_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_galleries') . '
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            '
;
        }
   
?>
</div>

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