コード例 #1
0
ファイル: admin.php プロジェクト: RodolfoSilva/tendoo-cms
 public function modules($e = '', $a = 1)
 {
     current_user()->cannot('system@manage_modules') ? $this->url->redirect(array('admin', 'index?notice=accessDenied')) : false;
     notice('push', fetch_notice_from_url());
     if ($e == '' || $e == 'main') {
         // Filter active APP while WebApp mode is enabled
         $argument = riake('tendoo_mode', get_core_vars('options'), 'website') == 'webapp' ? 'filter_app' : 'all';
         set_core_vars('mod_nbr', $mod_nbr = count(get_modules($argument)), 'read_only');
         set_core_vars('paginate', $paginate = $this->tendoo->paginate(10, $mod_nbr, 1, "bg-color-blue fg-color-white", "bg-color-white fg-color-blue", $a, $this->url->site_url(array('admin', 'modules', 'main')) . '/'), 'read_only');
         // Pagination
         if (get_core_vars('paginate') === FALSE) {
             $this->url->redirect(array('error', 'code', 'page-404'));
         }
         // Redirect if page is not valid
         set_core_vars('modules_list', $result = get_modules($argument, $paginate[1], $paginate[2]), 'read_only');
         set_page('title', translate('Manage modules - Tendoo'));
         $this->load->the_view('admin/modules/body');
     }
 }
コード例 #2
0
ファイル: body.php プロジェクト: 2329697501/tendoo-cms
*	Details 	: Output content before cols
*	Usage 		: set 'after_cols' key with GUI::config()
**/
echo $this->events->apply_filters('gui_before_cols', '');
?>
    <div class="content">
    <?php 
// display notice
echo $this->notice->output_notice();
if (function_exists('validation_errors')) {
    // validation errors
    echo validation_errors() != '' ? tendoo_error(strip_tags(validation_errors())) : '';
}
// Aauth Errors
$this->events->do_action('displays_dashboard_errors');
echo fetch_notice_from_url();
?>
    
    
    <div class="row">
        <?php 
foreach (force_array($this->gui->get_cols()) as $col_id => $col_data) {
    ?>
        <div class="col-lg-<?php 
    echo riake('width', $col_data, 1) * 3;
    ?>
">
            <?php 
    $config = riake('configs', $col_data);
    // Inner Opening Wrapper
    echo $this->events->apply_filters('gui_opening_wrapper', '');
コード例 #3
0
/**
 *	notice, classe de gestion des notifications
 **/
function notice($action, $params = array())
{
    $instance = get_instance();
    switch ($action) {
        case 'push':
            return $instance->notice->push_notice($params);
            break;
        case 'parse':
            echo fetch_notice_from_url();
            echo validation_errors();
            echo $instance->notice->parse_notice();
            break;
    }
}