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
Initial commit
Initial commit
Date: 2 months ago
Size: 2,867 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 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 active">
                    <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('../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">
                            <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">
                                        <a href="" class="btn btn-primary btn-block btn-sm">
                                            Install
                                        </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-sm" target="_blank">
                                            '
. phrase('preview') . '
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                '
;
            }
       
?>
</div>
</div>


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