File: aksara/Modules/Addons/Views/themes/detail.php

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

##### Bug Fixed:
Core: Fix the CRUD function both back end and front end;
Core: Fix the query string parameter for each returned data;
Core: Fix the table data that return nothing when no data exists;
Model: Fix the multiple database connection when switching the main connection to the second connection;
Model: Fix the field check when table using alias;
Javascript: Fix the query string extraction that return null value;
Javascript: Fix the geocoding (place search) on the map when using Google or OpenStreet provider;
Galleries: Fix the link that turned image not found when clicked from gallery category;
Dashboard: Fix RecursiveIterator that return error when catch unreadable upload folder;

##### Changes:
Modules: Change the "not found" page message to matched with modules;
Group: Replace the module structure for permission with path;
Permission: Change the permission check with module path;
Permission: Remove the field of module, submodule and controller and replaced with path instead;
Activity Log: Remove the field of module, submodule and controller and replaced with path instead;
Group Privileges: Remove the field of module, submodule and controller and replaced with path instead;

##### Improvements:
Core: Replace the permission with module path so it will work with unlimited sub module;
Core: Add title trim to prevent blank title when the requested data was not found;
Core: Block the Internet Explorer under version 11 that no longer supports common used javascript;
Modules: Change the "not found" page message to matched with modules;
Installer: Add the character restriction for encryption key and cookie name to prevent breaking the configuration parameter;
Javascript: Increase the maximum depth of menu builder;
Seeder: Apply column modification related to app__activity_logs, app__groups_privileges and app__settings table;
Redesign the "not found" page;
Add new language phrases;

##### New Features:
Galleries: Add the slide view for next and previous image if available;
Settings: Add the action sound toggle;
Addon: Install the add on directly from the Aksara Market;
Addon: Customize the installed theme;
Authentication: Add the annually sign in when active years is presents;
Date: 1 month ago
Size: 4,082 bytes
 

Contents

Class file image Download
<?php
    $carousel
= null;
   
    if(
$detail->screenshot)
    {
        foreach(
$detail->screenshot as $key => $val)
        {
            if(
file_exists(ROOTPATH . 'themes' . DIRECTORY_SEPARATOR . $detail->folder . DIRECTORY_SEPARATOR . $val->src))
            {
               
$screenshot = base_url('themes/' . $detail->folder . '/' . $val->src);
            }
            else
            {
               
$screenshot = get_image(null, 'placeholder_thumb.png');
            }
           
           
$carousel .= '
                <div class="carousel-item rounded'
. (!$key ? ' active' : null) . '">
                    <a href="'
. $screenshot . '" target="_blank">
                        <img src="'
. $screenshot . '" class="d-block rounded w-100" alt="' . $val->alt . '">
                    </a>
                </div>
            '
;
        }
    }
?>
<div class="container-fluid pt-3 pb-3">
    <div class="row">
        <div class="col-md-6">
            <div class="relative rounded" style="overflow: hidden">
                <div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
                    <div class="carousel-inner">
                        <?php echo $carousel; ?>
</div>
                    <?php if(sizeof($detail->screenshot) > 1) { ?>
<a class="carousel-control-prev gradient-right" href="#carouselExampleControls" role="button" data-slide="prev">
                            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                            <span class="sr-only">
                                <?php echo phrase('previous'); ?>
</span>
                        </a>
                        <a class="carousel-control-next gradient-left" href="#carouselExampleControls" role="button" data-slide="next">
                            <span class="carousel-control-next-icon" aria-hidden="true"></span>
                            <span class="sr-only">
                                <?php echo phrase('next'); ?>
</span>
                        </a>
                    <?php } ?>
</div>
            </div>
        </div>
        <div class="col-md-6">
            <h5 class="font-weight-light">
                <?php echo $detail->name; ?>
<?php echo ($detail->type == 'backend' ? '<span class="badge badge-warning float-right">' . phrase('back_end') . '</span>' : '<span class="badge badge-success float-right">' . phrase('front_end') . '</span>'); ?>
</h5>
            <hr />
            <div class="row">
                <div class="col-4">
                    <label class="text-muted d-block">
                        <?php echo phrase('author'); ?>
</label>
                </div>
                <div class="col-8">
                    <p>
                        <?php echo (isset($detail->website) ? '<a href="' . $detail->website . '" target="_blank"><b>' . $detail->author . '</b></a>' : '<b>' . $detail->author . '</b>'); ?>
</p>
                </div>
            </div>
            <div class="row">
                <div class="col-4">
                    <label class="text-muted d-block">
                        <?php echo phrase('version'); ?>
</label>
                </div>
                <div class="col-8">
                    <p>
                        <?php echo $detail->version; ?>
</p>
                </div>
            </div>
            <p class="mb-0">
                <?php echo nl2br($detail->description); ?>
</p>
        </div>
    </div>
    <hr class="row" />
    <div class="row">
        <div class="col-md-3">
            <?php if(($detail->type == 'backend' && $detail->folder == get_setting('backend_theme')) || ($detail->type == 'frontend' && $detail->folder == get_setting('frontend_theme'))) { ?>
<a href="<?php echo current_page('../customize'); ?>" class="btn btn-warning btn-block btn-sm --xhr">
                <i class="mdi mdi-cogs"></i>
                <?php echo phrase('customize'); ?>
</a>
            <?php } else { ?>
<a href="<?php echo current_page('../activate'); ?>" class="btn btn-success btn-block btn-sm --xhr">
                <i class="mdi mdi-check"></i>
                <?php echo phrase('activate'); ?>
</a>
            <?php } ?>
</div>
        <div class="col-md-3">
        </div>
        <div class="col-md-3">
            <a href="<?php echo base_url(('backend' == $detail->type ? 'dashboard' : null), array('aksara_mode' => 'preview-theme', 'aksara_theme' => $detail->folder, 'integrity_check' => $detail->integrity)); ?>" class="btn btn-outline-primary btn-block btn-sm" target="_blank">
                <i class="mdi mdi-magnify"></i>
                <?php echo phrase('preview'); ?>
</a>
        </div>
        <div class="col-md-3">
            <a href="<?php echo current_page('../delete', array('item' => $detail->folder)); ?>" class="btn btn-outline-danger btn-block btn-sm --modal">
                <i class="mdi mdi-window-close"></i>
                <?php echo phrase('delete'); ?>
</a>
        </div>
    </div>
</div>


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