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

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

Contents

Class file image Download
<div class="container-fluid pb-3">
    <div class="row border-bottom bg-white mb-3 sticky-top" style="overflow-x: auto; top:88px">
        <ul class="nav" style="flex-wrap: nowrap">
            <li class="nav-item">
                <a href="<?php echo go_to('../'); ?>" class="nav-link no-wrap --xhr">
                    <i class="mdi mdi-cart"></i>
                    <?php echo phrase('market'); ?>
</a>
            </li>
            <li class="nav-item">
                <a href="<?php echo current_page(); ?>" class="nav-link no-wrap --xhr active">
                    <i class="mdi mdi-palette"></i>
                    <?php echo phrase('installed_theme'); ?>
</a>
            </li>
            <li class="nav-item">
                <a href="<?php echo go_to('../modules'); ?>" class="nav-link no-wrap --xhr">
                    <i class="mdi mdi-puzzle"></i>
                    <?php echo phrase('installed_module'); ?>
</a>
            </li>
            <li class="nav-item">
                <a href="<?php echo go_to('../ftp'); ?>" class="nav-link no-wrap --xhr">
                    <i class="mdi mdi-console-network"></i>
                    <?php echo phrase('ftp_configuration'); ?>
</a>
            </li>
        </ul>
    </div>
    <div class="row">
        <?php
           
foreach($installed as $key => $val)
            {
                if(
file_exists(ROOTPATH . 'themes/' . $val->folder . '/' . $val->screenshot[0]->src))
                {
                   
$screenshot = base_url('themes/' . $val->folder . '/' . $val->screenshot[0]->src);
                }
                else
                {
                   
$screenshot = get_image(null, 'placeholder_thumb.png');
                }
               
                echo
'
                    <div class="col-sm-6 col-md-4 col-lg-3">
                        <div class="card shadow border-0 mb-3">
                            <a href="'
. current_page('detail', array('item' => $val->folder)) . '" class="--modal">
                                <div class="relative rounded-top" style="background:url('
. $screenshot . ') center center no-repeat; background-size: cover; height: 256px">
                                    <div class="clip gradient-top rounded-top"></div>
                                    '
. ($val->type == 'backend' ? '<span class="badge badge-warning float-right mt-3 mr-3">' . phrase('back_end') . '</span>' : '<span class="badge badge-success float-right mt-3 mr-3">' . phrase('front_end') . '</span>') . '
                                    <div class="absolute bottom p-3">
                                        <h5 class="text-light" data-toggle="tooltip" title="'
. $val->name . '">
                                            '
. truncate($val->name, 80) . '
                                        </h5>
                                    </div>
                                </div>
                            </a>
                            <div class="card-body p-3">
                                <div class="row">
                                    <div class="col-6">
                                        '
. (($val->type == 'backend' && $val->folder == get_setting('backend_theme')) || ($val->type == 'frontend' && $val->folder == get_setting('frontend_theme')) ? '
                                        <a href="'
. current_page('customize', array('theme' => $val->folder)) . '" class="btn btn-warning btn-block btn-xs --xhr">
                                            <i class="mdi mdi-cogs"></i>
                                            '
. phrase('customize') . '
                                        </a>
                                        '
: '
                                        <a href="'
. current_page('activate', array('theme' => $val->folder)) . '" class="btn btn-success btn-block btn-xs --xhr">
                                            <i class="mdi mdi-check"></i>
                                            '
. phrase('activate') . '
                                        </a>
                                        '
) . '
                                    </div>
                                    <div class="col-6">
                                        <a href="'
. base_url(('backend' == $val->type ? 'dashboard' : null), array('aksara_mode' => 'preview-theme', 'aksara_theme' => $val->folder, 'integrity_check' => $val->integrity)) . '" class="btn btn-outline-primary btn-block btn-xs" target="_blank">
                                            <i class="mdi mdi-magnify"></i>
                                            '
. phrase('preview') . '
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                '
;
            }
       
?>
</div>
</div>


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