PHP Classes

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.8

This commit updates the following changes:
1. Core: update the statement to skip the field inside the form validation. Update the null value to empty when preparing the field data value;
2. Validation: Update the statement under "unique" validation when second parameter is empty;
3. Add-Ons: Add the theme and modules install and update THRU from the Aksara Market. Finally!;
4. Modules and Themes: Changes on statement when removing the temporary folder from the extract package;
5. Refine the looks and feel on the Add-Ons page.
Initial commit for update 4.2.8

This commit focuses on functioning the market addons. Current progress was finished for:
1. Theme and module import;
2. Theme and module uninstall;
3. Theme preview (pre-install);
4. Theme changer;
5. Theme customizer;

Updating the theme and url helper that previously not working with imported theme and modules. Add the function to call the asset under theme and module. The route module (core) was added for getting the theme and module assets.

Changes on Assets controller to working with theme preview (related to base_url and asset_url configuration value).

Add the extension (intl) check (pre-install) and phpspreadsheet dependencies to scale up the app to produce the excel import and export.

Correct the installation migration that previously fail to execute (caused by invalid json format while insert the data on group privileges table "by typo"). Change the structure of app__users table and change the country field to country_id (also rewrite users and account module).

CORE
Adds the capability to using custom title and icon for each request method (create, read, update, delete etc.) that previously applied to set_desrcription() with array pair: [$method => $title] | [$method => $icon]. Correcting the missing variable called from CRUD search feature.

This commit already tested both MySQLi, PostgreSQL and SQLite3. You may help me to test to install it under SQL Server database to check if it's has no error.
Initial commit for update 4.2.8

1. Template core, add the limit number to the pagination;
2. Addons, capability to import the module and theme. Refine the market addon fetching;
3. Installer, correct the migration.
Fix theme thumbnail
Initial commit for update 4.2.8
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: 4,179 bytes
 

Contents

Class file image Download
<div class="container-fluid pb-3">
    <div class="row border-bottom bg-white mb-1 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 border-bottom pb-1 mb-3">
        <div class="col-md-6 offset-md-6 text-right">
            <a href="<?php echo current_page('import'); ?>" class="btn btn-primary btn-sm --xhr">
                <i class="mdi mdi-import"></i>
                <?php echo phrase('import_theme'); ?>
</a>
        </div>
    </div>
    <div class="row">
        <?php
           
if($installed)
            {
                foreach(
$installed as $key => $val)
                {
                    if(
file_exists(ROOTPATH . 'themes' . DIRECTORY_SEPARATOR . $val->folder . DIRECTORY_SEPARATOR . str_replace(array('../', '..\\', './', '.\\'), null, $val->screenshot[0]->src)))
                    {
                       
$screenshot = base_url('themes/' . $val->folder . '/' . str_replace(array('../', '..\\', './', '.\\'), null, $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 rounded-more 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-dark 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('item' => $val->folder)) . '" class="btn btn-dark btn-block btn-xs --modal">
                                                <i class="mdi mdi-cogs"></i>
                                                '
. phrase('customize') . '
                                            </a>
                                            '
: '
                                            <a href="'
. current_page('activate', array('item' => $val->folder)) . '" class="btn btn-success btn-block btn-xs --modal">
                                                <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>
                    '
;
                }
            }
            else
            {
                echo
'
                    <div class="col-sm-12">
                        <div class="alert alert-warning">
                            '
. phrase('no_theme_installed_yet') . '
                        </div>
                    </div>
                '
;
            }
       
?>
</div>
</div>

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