PHP Classes

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

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

- Refine core modules and plugin;
- Removing unnecessary dependencies.
Update commit for the version 4.3.3

Updates for this commit:
- Updating the default dependency of Bootstrap, now using Bootstrap version 5;
- Updating the minimum CI version to ^4.2.0;
- Secrete the Bootstrap framework as the required dependency, now you can create your own theme without concern to conflict with Bootstrap;
- Refine the Aksara core including its components;
- Fixing the feature that previously broken.
Date: 19 days ago
Size: 3,454 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">
        <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 go_to('../themes'); ?>" class="nav-link no-wrap --xhr">
                    <i class="mdi mdi-palette"></i>
                    <?php echo phrase('installed_theme'); ?>
</a>
            </li>
            <li class="nav-item">
                <a href="<?php echo current_page(); ?>" class="nav-link no-wrap --xhr text-bg-primary">
                    <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-end">
            <a href="<?php echo current_page('import'); ?>" class="btn btn-primary btn-sm --xhr">
                <i class="mdi mdi-import"></i>
                <?php echo phrase('import_module'); ?>
</a>
        </div>
    </div>
    <div class="row">
        <?php
           
if($installed)
            {
                foreach(
$installed as $key => $val)
                {
                    if(
file_exists(ROOTPATH . 'modules' . DIRECTORY_SEPARATOR . $val->folder . DIRECTORY_SEPARATOR . str_replace(array('../', '..\\', './', '.\\'), '', $val->screenshot[0]->src)))
                    {
                       
$screenshot = base_url('modules/' . $val->folder . '/' . str_replace(array('../', '..\\', './', '.\\'), '', $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-4 mb3">
                                <a href="'
. current_page('detail', array('item' => $val->folder)) . '" class="--modal">
                                    <div class="position-relative rounded-top" style="background:url('
. $screenshot . ') center center no-repeat; background-size: cover; height: 256px">
                                        <div class="clip gradient-top rounded-top"></div>
                                        <div class="absolute bottom p-3">
                                            <h5 class="text-light" data-bs-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">
                                            <a href="'
. current_page('update', array('item' => $val->folder)) . '" class="btn btn-outline-success d-block btn-xs --modal" target="_blank">
                                                <i class="mdi mdi-auto-fix"></i>
                                                '
. phrase('update') . '
                                            </a>
                                        </div>
                                        <div class="col-6">
                                            <a href="'
. current_page('delete', array('item' => $val->folder)) . '" class="btn btn-danger d-block btn-xs --modal">
                                                <i class="mdi mdi-delete"></i>
                                                '
. phrase('uninstall') . '
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    '
;
                }
            }
            else
            {
                echo
'
                    <div class="col-sm-12">
                        <div class="alert alert-warning">
                            <i class="mdi mdi-information-outline"></i>
                            '
. phrase('no_module_installed_yet') . '
                        </div>
                    </div>
                '
;
            }
       
?>
</div>
</div>

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