• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_core_vars函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_core_vars函数的典型用法代码示例。如果您正苦于以下问题:PHP get_core_vars函数的具体用法?PHP get_core_vars怎么用?PHP get_core_vars使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_core_vars函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
     parent::__construct();
     __extends($this);
     $this->instance = get_instance();
     // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
     $this->load->library('install');
     $this->load->library('file');
     // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
     if ($this->instance->db_connected()) {
         $this->load->library('users_global');
         $this->data['options'] = get_meta('all');
         trigger_inits();
         // For Core menu extension, they are called after default menu.
         /**
          * 	Declare Notices : Notices are internal(system) or module/theme alert.
          **/
         set_core_vars('tendoo_notices', trigger_filters('declare_notices', array(get_core_vars('default_notices'))));
         // @since 1.4
     } else {
         $this->users_global = FALSE;
         $this->data['options'] = FALSE;
     }
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:25,代码来源:error.php


示例2: __construct

 public function __construct($data)
 {
     $this->instance = get_instance();
     $this->data =& $data;
     $this->theme = get_core_vars('active_theme_object');
     $this->location = MODULES_DIR . $this->data['currentWidget']['WIDGET_MODULE']['encrypted_dir'];
     if (!class_exists('News_smart')) {
         include_once $this->location . '/library.php';
     }
     $this->news = new News_smart();
     $setting = $this->news->getBlogsterSetting();
     //
     if (!(bool) $this->data['currentWidget']['WIDGET_INFO']['IS_CODE']) {
         $LIMIT = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_PARAMETERS'] == '' ? 5 : $this->data['currentWidget']['WIDGET_INFO']['WIDGET_PARAMETERS'];
     } else {
     }
     //eval($LIMIT)
     $this->data['ttCat'] = $this->news->getCatForWidgets(0, $LIMIT);
     $controller = $this->instance->tendoo->getControllersAttachedToModule($this->data['currentWidget']['WIDGET_MODULE']['namespace']);
     $final_array = array();
     foreach ($this->data['ttCat'] as $t) {
         $final_array[] = array('text' => $t['CATEGORY_NAME'] . ' (' . $t['TOTAL_ARTICLES'] . ')', 'link' => $this->instance->url->site_url(array($controller[0]['PAGE_CNAME'])) . '/categorie/' . $t['URL_TITLE']);
     }
     $widget_title = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_TITLE'];
     // For Each Zone
     if (in_array($this->data['widgets']['requestedZone'], array('LEFT', 'BOTTOM', 'RIGHT'))) {
         $widget_title = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_TITLE'];
         $zone = $this->data['widgets']['requestedZone'];
         // requestedZone
         set_widget(strtolower($zone), $widget_title, $final_array, 'categories');
     }
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:32,代码来源:category_lister.php


示例3: __construct

 public function __construct($data)
 {
     $this->instance = get_instance();
     $this->data =& $data;
     $this->theme = get_core_vars('active_theme_object');
     $this->location = MODULES_DIR . $this->data['currentWidget']['WIDGET_MODULE']['encrypted_dir'];
     if (!class_exists('News_smart')) {
         include_once $this->location . '/library.php';
     }
     // var_dump($this->data['currentWidget']);
     $this->news = new News_smart();
     $setting = $this->news->getBlogsterSetting();
     // var_dump($this->data['currentWidget']['WIDGET_INFO']['WIDGET_PARAMETERS']);
     $LIMIT = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_PARAMETERS'];
     $this->data['mostViewed'] = $this->news->getMostViewed(0, $LIMIT);
     $end = '<ul>';
     $controller = $this->instance->tendoo->getControllersAttachedToModule($this->data['currentWidget']['WIDGET_MODULE']['namespace']);
     // var_dump( $this->data['currentWidget']['WIDGET_MODULE'] );
     // var_dump( $controller );
     foreach ($this->data['mostViewed'] as $t) {
         $end .= '<li><a href="' . $this->instance->url->site_url(array($controller[0]['PAGE_CNAME'])) . '/lecture/' . $t['URL_TITLE'] . '">' . $t['TITLE'] . '</a></li>';
     }
     $end .= '</ul>';
     // For Zones
     if (in_array($this->data['widgets']['requestedZone'], array('LEFT', 'BOTTOM', 'RIGHT'))) {
         $widget_title = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_TITLE'];
         $zone = $this->data['widgets']['requestedZone'];
         // requestedZone
         set_widget(strtolower($zone), $widget_title, $end, 'text');
     }
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:31,代码来源:most_readed_lister.php


示例4: __construct

 public function __construct($data)
 {
     /*
     	Reçois la zone dans laquelle le widget est appellé, voir clé ['widgets']['requestedZone'] : (LEFT, RIGHT, BOTTOM).
     */
     $this->instance = get_instance();
     $this->data = $data;
     $this->theme = get_core_vars('active_theme_object');
     $this->location = MODULES_DIR . $this->data['currentWidget']['WIDGET_MODULE']['encrypted_dir'];
     if (!class_exists('News_smart')) {
         include_once $this->location . '/library.php';
     }
     $this->news = new News_smart();
     // Dans le cas ou aucune limite n'est fixé nous fixon la limite par défaut à 5 commentaires.
     $LIMIT = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_PARAMETERS'] == '' ? 5 : $this->data['currentWidget']['WIDGET_INFO']['WIDGET_PARAMETERS'];
     // Utilisation de la limite fixée
     $this->data['getTotalKeyWords'] = $this->news->getAllPopularKeyWords($LIMIT);
     // Recupération du contrôleur attaché au module.
     $controler = $this->instance->tendoo->getControllersAttachedToModule('blogster');
     $tags = array();
     foreach ($this->data['getTotalKeyWords'] as $gtk) {
         $tags[] = array('link' => $this->instance->url->site_url(array($controler[0]['PAGE_CNAME'], 'tags', $gtk['URL_TITLE'])), 'text' => $gtk['TITLE']);
     }
     if (in_array($this->data['widgets']['requestedZone'], array('LEFT', 'BOTTOM', 'RIGHT'))) {
         $widget_title = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_TITLE'];
         $rZone = $this->data['widgets']['requestedZone'];
         // requestedZone
         set_widget(strtolower($rZone), $widget_title, $tags, 'tags');
     }
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:30,代码来源:tags.php


示例5: index

 public function index()
 {
     set_page('title', $this->data['page'][0]['PAGE_TITLE']);
     set_page('description', $this->data['page'][0]['PAGE_DESCRIPTION']);
     get_core_vars('active_theme_object')->definePageTitle($this->data['page'][0]['PAGE_TITLE']);
     get_core_vars('active_theme_object')->definePageDescription($this->data['page'][0]['PAGE_DESCRIPTION']);
     set_core_vars('module_content', $this->load->view($this->data['module']['uri_path'] . '/views/common_main', $this->data, true, TRUE));
     get_core_vars('active_theme_object')->head($this->data);
     get_core_vars('active_theme_object')->body($this->data);
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:10,代码来源:frontend.php


示例6: __construct

 public function __construct()
 {
     // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
     parent::__construct();
     __extends($this);
     // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
     $this->config();
     // --------------------------------------------------------------------
     $this->data = array();
     $this->data['lmenu'] = $this->load->view(VIEWS_DIR . '/admin/left_menu', $this->data, true, TRUE);
     $this->data['inner_head'] = $this->load->view('admin/inner_head', $this->data, true);
     $this->opened_module = get_core_vars('opened_module');
     $this->opened_module = $this->opened_module;
     $this->lib = new page_library();
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:15,代码来源:backend.php


示例7: __construct

 public function __construct()
 {
     // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
     parent::__construct();
     __extends($this);
     // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
     $this->instance = get_instance();
     $this->theme = get_core_vars('active_theme');
     $this->data = array();
     // Inclusion du ficher "library.php".
     if (file_exists(THEMES_DIR . $this->theme['encrypted_dir'] . '/library.php')) {
         include_once THEMES_DIR . $this->theme['encrypted_dir'] . '/library.php';
     }
     $this->output_files();
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:15,代码来源:handler.php


示例8: __construct

 function __construct()
 {
     // Saving Theme Settings
     $active_theme = get_core_vars('active_theme');
     if (riake('namespace', $active_theme)) {
         $settings = get_meta($active_theme['namespace'] . '_theme_settings');
         if ($settings) {
             push_core_vars('active_theme', 'theme_settings', $settings);
         }
     }
     $this->module = get_modules('filter_namespace', 'tim');
     if (is_admin()) {
         $this->menu = new Menu();
         $this->menu = new Menu();
         $this->menu->add_admin_menu_core('themes', array('title' => __('Theme Options'), 'icon' => 'fa fa-columns', 'href' => get_instance()->url->site_url(array('admin', 'open', 'modules', $this->module['namespace']))));
     }
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:17,代码来源:init.php


示例9: __construct

 public function __construct($data)
 {
     $this->instance = get_instance();
     $this->data =& $data;
     $this->theme = get_core_vars('active_theme_object');
     $this->location = MODULES_DIR . $this->data['currentWidget']['WIDGET_MODULE']['encrypted_dir'];
     if (!class_exists('News_smart')) {
         include_once $this->location . '/library.php';
     }
     $this->news = new News_smart();
     $this->data['mostViewed'] = $this->news->getMostViewed(0, 10);
     $end = '<ul>';
     if ($this->instance->users_global->isConnected()) {
         $this->instance->load->library('tendoo_admin');
         if ($this->instance->users_global->isAdmin()) {
             $priv = $this->instance->users_global->current('REF_ROLE_ID');
             if ($this->instance->users_global->isSuperAdmin()) {
                 $end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'modules')) . '">Liste des modules</a></li>';
                 $end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'setting')) . '">Param&egrave;tres</a></li>';
                 $end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'system', 'manage_actions')) . '">Gestion d\'actions</a></li>';
                 $end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'installer')) . '">Installer une application</a></li>';
             } else {
                 if (!$this->instance->tendoo_admin->is_public_role($priv)) {
                     $end .= '<li><a href="' . $this->instance->url->site_url(array('admin')) . '">Espace administration</a></li>';
                 }
             }
         }
         $end .= '<li><a href="' . $this->instance->url->site_url(array('account')) . '">Mon profil</a></li>';
         $end .= '<li><a href="' . $this->instance->url->site_url(array('account', 'messaging', 'home')) . '">Ma messagerie</a></li>';
     } else {
         $options = get_meta('all');
         if (riake('allow_registration', $options) == '1') {
             $end .= '<li><a href="' . $this->instance->url->site_url(array('registration')) . '">Inscription</a></li>';
         }
         $end .= '<li><a href="' . $this->instance->url->site_url(array('login')) . '">Connexion</a></li>';
     }
     $end .= '</ul>';
     // For Zones
     if (in_array($this->data['widgets']['requestedZone'], array('LEFT', 'BOTTOM', 'RIGHT'))) {
         $widget_title = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_TITLE'];
         $zone = $this->data['widgets']['requestedZone'];
         // requestedZone
         set_widget(strtolower($zone), $widget_title, $end, 'text');
     }
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:45,代码来源:sys_links.php


示例10: index

 public function index()
 {
     $active_theme = get_core_vars('active_theme');
     $setting_key = $active_theme['namespace'] . '_theme_settings';
     $this->load->library('form_validation');
     $this->form_validation->set_rules('api_limit', 'API LIMIT', 'required');
     $this->form_validation->set_rules('declared_apis', 'Declared API', 'required');
     $this->form_validation->set_rules('declared_item', 'Declared Item', 'required');
     // For Static using API
     if ($this->form_validation->run()) {
         if ($active_theme) {
             $datas_get = get_meta($setting_key);
             $saved_settings = $datas_get ? $datas_get : array();
             // If there are same setting already saved, they'll be overwrited
             $saved_settings[$this->input->post('declared_item')] = array('api_limit' => $this->input->post('api_limit'), 'declared_apis' => $this->input->post('declared_apis'), 'declared_item' => $this->input->post('declared_item'));
             if (set_meta($active_theme['namespace'] . '_theme_settings', $saved_settings)) {
                 notice('push', fetch_notice_output('done'));
             }
         }
     }
     // For Static not draggable
     if ($this->input->post('is_static_item')) {
         $this->load->library('form_validation');
         if ($static = return_if_array_key_exists('static', $_POST)) {
             if (is_array($static)) {
                 $active_theme = get_core_vars('active_theme');
                 $saved_settings = get_meta($active_theme['namespace'] . '_theme_settings');
                 foreach ($static as $namespace => $item) {
                     if (is_array($item)) {
                         foreach ($item as $name => $fields) {
                             $saved_settings[$namespace][$name] = $fields;
                         }
                     }
                 }
                 if (set_meta($active_theme['namespace'] . '_theme_settings', $saved_settings)) {
                     notice('push', fetch_notice_output('done'));
                 }
             }
         }
     }
     // Add Settings to Core vars
     push_core_vars('active_theme', 'theme_settings', get_meta($setting_key));
     set_page('title', 'TIM | ' . get('core_version'));
     return $this->load->view($this->module_metas['uri_path'] . 'views/body', $this->data, true, true);
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:45,代码来源:backend.php


示例11: __construct

 public function __construct($data)
 {
     // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
     parent::__construct();
     __extends($this);
     // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
     $this->instance = get_instance();
     $this->data = $data;
     $this->tendoo =& $this->instance->tendoo;
     $this->tendoo_admin =& $this->instance->tendoo_admin;
     $this->users_global =& $this->instance->users_global;
     $module = get_core_vars('opened_module');
     $this->dir = 'tendoo-modules/' . $module['encrypted_dir'];
     if (!is_dir($this->dir . '/content_repository')) {
         mkdir($this->dir . '/content_repository');
     }
     $this->cp_dir = $this->dir . '/content_repository';
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:18,代码来源:library.php


示例12: __construct

    public function __construct($data)
    {
        /*
        	Reçois la zone dans laquelle le widget est appellé, voir clé ['widgets']['requestedZone'] : (LEFT, RIGHT, BOTTOM).
        */
        $this->instance = get_instance();
        $this->data =& $data;
        $this->theme = get_core_vars('active_theme_object');
        $this->location = MODULES_DIR . $this->data['currentWidget']['WIDGET_MODULE']['encrypted_dir'];
        if (!class_exists('News_smart')) {
            include_once $this->location . '/library.php';
        }
        $this->news = new News_smart();
        $setting = $this->news->getBlogsterSetting();
        // Dans le cas ou aucune limite n'est fixé nous fixon la limite par défaut à 5 commentaires.
        $LIMIT = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_PARAMETERS'] == '' ? 5 : $this->data['currentWidget']['WIDGET_INFO']['WIDGET_PARAMETERS'];
        $this->data['comments'] = $this->news->getComments(false, 0, $LIMIT, 'desc');
        $controler = $this->instance->tendoo->getControllersAttachedToModule('news');
        $end = '<ul>';
        foreach ($this->data['comments'] as $c) {
            $user = $this->instance->users_global->getUser($c['AUTEUR']);
            $article = $this->news->getSpeNews($c['REF_ART']);
            if ($article) {
                if ($user) {
                    $end .= '
				<a href="' . $this->instance->url->site_url(array('account', 'profile', $user['PSEUDO'])) . '">' . $user['PSEUDO'] . '</a> dit : 
				"' . word_limiter($c['CONTENT'], 10) . '" dans <a href="' . $this->instance->url->main_url() . 'index.php/' . $controler[0]['PAGE_CNAME'] . '/lecture/' . $article[0]['URL_TITLE'] . '">' . $article[0]['TITLE'] . '</a><br><br>';
                } else {
                    $offlineUser = $c['OFFLINE_AUTEUR'] != '' ? $c['OFFLINE_AUTEUR'] : 'Utilisateur inconnu';
                    $end .= '
				<a href="#">' . $offlineUser . '</a> dit : 
				"' . word_limiter($c['CONTENT'], 10) . '" dans <a href="' . $this->instance->url->main_url() . 'index.php/' . $controler[0]['PAGE_CNAME'] . '/lecture/' . $article[0]['URL_TITLE'] . '">' . $article[0]['TITLE'] . '</a><br><br>';
                }
            }
        }
        $end .= '</ul>';
        if (in_array($this->data['widgets']['requestedZone'], array('LEFT', 'BOTTOM', 'RIGHT'))) {
            $widget_title = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_TITLE'];
            $zone = $this->data['widgets']['requestedZone'];
            // requestedZone
            set_widget(strtolower($zone), $widget_title, $end, 'text');
        }
    }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:43,代码来源:comments.php


示例13: superAdmin

 public function superAdmin()
 {
     // Has Admin ?
     $this->users_global->hasAdmin() === TRUE ? $this->instance->url->redirect(array('login')) : false;
     $this->instance->form_validation->set_rules('super_admin_pseudo', __('Pseudo'), 'trim|required|min_length[5]|max_length[15]');
     $this->instance->form_validation->set_rules('super_admin_password', __('Password'), 'trim|required|min_length[6]|max_length[15]');
     $this->instance->form_validation->set_rules('super_admin_password_confirm', __('Confirm Password'), 'trim|required|min_length[6]|matches[super_admin_password]');
     $this->instance->form_validation->set_rules('super_admin_mail', __('Email'), 'trim|valid_email|required');
     $this->instance->form_validation->set_rules('super_admin_sex', __('Sex selection'), 'trim|required|min_length[3]|max_length[4]');
     if ($this->instance->form_validation->run()) {
         if ($this->instance->users_global->createSuperAdmin($this->instance->input->post('super_admin_pseudo'), $this->instance->input->post('super_admin_password'), $this->instance->input->post('super_admin_sex'), $this->instance->input->post('super_admin_mail'))) {
             $this->instance->url->redirect(array('login?notice=user-has-been-created&ref=' . urlencode($this->instance->url->site_url(array('admin', 'index')))));
         }
         notice('push', fetch_notice_output('super-admin-creation-failed'));
     }
     set_core_vars('pageTitle', __('Create Admin - Tendoo'));
     set_page('title', get_core_vars('pageTitle'));
     set_page('description', __('Create Super Admin - Tendoo'));
     set_core_vars('body', $this->load->view('registration/createSuperAdmin', true));
     $this->load->view('header');
     $this->load->view('global_body');
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:22,代码来源:registration.php


示例14: __construct

 /**
  * 	Its create post type interface quickly. Callable from "init.php" module and theme file.
  **/
 function __construct($config)
 {
     $this->namespace = $this->config['namespace'] = riake('namespace', $config);
     // $this->meta					=	$this->config[ 'meta' ]					=	riake( 'meta' , $config ); Meta are no more white listed. They should be created using a proper form to be saved as meta data.
     $this->label = $this->config['label'] = riake('label', $config, $this->namespace);
     $this->new_post_label = $this->config['new-post-label'] = riake('new-post-label', $config, sprintf(__('Create a new %s'), $this->namespace));
     $this->edit_post_label = $this->config['edit-post-label'] = riake('edit-post-label', $config, sprintf(__('Edit %s'), $this->namespace));
     $this->posts_list_label = $this->config['posts-list-label'] = riake('posts-list-label', $config, sprintf(__('%s list'), $this->namespace));
     $this->delete_post_label = $this->config['delete-post-label'] = riake('delete-post-label', $config, sprintf(__('delete %s'), $this->namespace));
     $this->menu_position = $this->config['menu-position'] = riake('menu-position', $config, array('after', 'dashboard'));
     $this->menu_icon = $this->config['menu-icon'] = riake('menu-icon', $config, 'fa fa-star');
     $this->privilege = $this->config['privilege'] = riake('privilege', $config, 'system@manage_modules');
     $this->displays = $this->config['displays'] = riake('displays', $config, array('title', 'editor', 'publish'));
     $this->comment_enabled = $this->config['comment-enabled'] = riake('comment-enabled', $config, TRUE);
     $this->post_comment_label = $this->config['post-comment-label'] = riake('post-comment-label', $config, __('Comments'));
     $this->comments_list_label = $this->config['comments-list-label'] = riake('comments-list-label', $config, sprintf(__('%s comments'), $this->namespace));
     if (!$this->namespace) {
         return false;
     }
     $this->query = new CustomQuery(array('namespace' => $this->namespace));
     $posttypes = get_core_vars('posttypes');
     $posttypes[$this->namespace] = $this;
     set_core_vars('posttypes', $posttypes);
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:27,代码来源:PostType.Class.php


示例15: get_core_vars

<?php

$page = get_core_vars('page');
?>
<!--start wrapper-->
	<section class="wrapper">
		<section class="page_head">
			<div class="container">
				<div class="row">
					<div class="col-lg-12 col-md-12 col-sm-12">
						<h2><?php 
echo get_page('title');
?>
</h2>
                        <?php 
get_breads();
?>
					</div>
				</div>
			</div>
		</section>

		<section class="content blog">
			<div class="container">
				<div class="row">
					<div class="col-xs-12 col-sm-8 col-md-8 col-lg-8">
						<div class="blog_medium">
                        	<?php 
if (have_blog_posts() !== false) {
    while ($post = get_blog_posts()) {
        $full_date = $this->instance->date->time($post->timestamp, TRUE);
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:31,代码来源:blog.posts.php


示例16: bs_pagination

				<?php 
if (in_array('loader', $enabled)) {
    ?>
                <div class="col-sm-2 pull-left" id="ajaxLoading">
                </div>
                <?php 
} else {
    ?>
                <div class="col-sm-2">
                </div>
                <?php 
}
?>
                <div class="col-sm-4 text-center">
                </div>
                <?php 
if (in_array('pagination', $enabled) && get_core_vars('pagination_data')) {
    ?>
                <div class="col-sm-4 text-right text-center-xs">
                    <?php 
    bs_pagination(get_core_vars('pagination_data'), $additionnal_class = "pagination-sm m-t-none m-b-none");
    ?>
                </div>
                <?php 
}
?>
            </div>
        </section>
    </aside>
</div>
开发者ID:eboominathan,项目名称:tendoo-cms,代码行数:30,代码来源:gui+-+deprecated.php


示例17: get_core_vars

<?php

$options = get_core_vars('options');
$body = get_core_vars('body');
if (is_array(get_core_vars('body'))) {
    if (array_key_exists('MCO', $body)) {
        if ($body['MCO'] == FALSE) {
            page_header();
        }
    } else {
        get_instance()->tendoo->show_error('Le tableau renvoy&eacute; manque d\'information suffisante pour l\'affichage int&eacute;grale de la page', 'Interpr&eacute;tation mal exprimé');
    }
} else {
    page_header();
}
//*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=	Affiche le contenu par le module -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*//
//*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*//
echo is_array($body) ? $body['RETURNED'] : $body;
//*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*//
if (is_array($body)) {
    if (array_key_exists('MCO', $body)) {
        if ($body['MCO'] == FALSE) {
            echo $this->instance->file_2->js_load();
            page_bottom($options, $this);
        }
    } else {
        $this->instance->tendoo->show_error('Le tableau renvoy&eacute; manque d\'information suffisante pour l\'affichage int&eacute;grale de la page', 'Interpr&eacute;tation mal exprimé');
    }
} else {
    echo $this->instance->file_2->js_load();
    page_bottom($options, $this);
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:31,代码来源:global_body.php


示例18: get_core_vars

	<!-- Site wrapper -->
	<div class="wrapper">
		<?php 
echo get_core_vars('inner_head');
?>
        <!-- Left side column. contains the logo and sidebar -->
        <?php 
output('content-left-menu');
?>
        <!-- Right side column. Contains the navbar and content of the page -->
        <aside class="right-side">
            <!-- Content Header (Page header) -->
            <?php 
output('content-header');
?>
            <!-- Main content -->
            <section class="content">
                <!-- Small boxes (Stat box) -->
                <?php 
output('content-cards');
?>
                <!-- /.row -->
    
                <!-- Widgets as boxes -->
                <?php 
output('content-widgets');
?>
    
                <!-- /.row -->
    
            </section><!-- /.content -->
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:31,代码来源:body.php


示例19: core_meta_namespace

<?php

$this->gui->cols_width(1, 4);
// Creating Meta
$this->gui->set_meta(array('namespace' => core_meta_namespace(array('users', 'create')), 'title' => __('Create User'), 'type' => 'panel', 'form_wrap' => array('method' => 'post', 'submit_text' => __('Create user'), 'reset_text' => __('Reset Form'))))->push_to(1);
$this->gui->set_meta(array('namespace' => 'tips', 'title' => __('How to create a user'), 'type' => 'panel'))->push_to(2);
// Creating Fields
// Static Fields
$this->gui->set_item(array('type' => 'text', 'name' => 'admin_pseudo', 'placeholder' => __('Enter a Username'), 'label' => __('Username')))->push_to(core_meta_namespace(array('users', 'create')));
$this->gui->set_item(array('type' => 'password', 'name' => 'admin_password', 'placeholder' => __('Password'), 'label' => __('Enter a password')))->push_to(core_meta_namespace(array('users', 'create')));
$this->gui->set_item(array('type' => 'password', 'name' => 'admin_password_confirm', 'placeholder' => __('Confirm password'), 'label' => __('Confirm password')))->push_to(core_meta_namespace(array('users', 'create')));
$this->gui->set_item(array('type' => 'text', 'name' => 'admin_password_email', 'placeholder' => __('Email'), 'label' => __('Enter a user email')))->push_to(core_meta_namespace(array('users', 'create')));
$this->gui->set_item(array('type' => 'select', 'name' => 'admin_sex', 'placeholder' => __('Select user sex'), 'value' => array('', 'MASC', 'FEM'), 'text' => array(__('Choose...'), __('Male'), __('Female')), 'label' => __('User Sex')))->push_to(core_meta_namespace(array('users', 'create')));
$roles = array('');
$text = array(__('Choose...'));
foreach (force_array($getPrivs) as $_role) {
    $roles[] = riake('ID', $_role);
    $text[] = riake('NAME', $_role);
}
$this->gui->set_item(array('type' => 'select', 'name' => 'admin_privilege', 'placeholder' => __('Select user role'), 'value' => $roles, 'text' => $text, 'label' => __('User role')))->push_to(core_meta_namespace(array('users', 'create')));
// Loading Generated Fields using "user_form_fields" hook
$user_fields = trigger_filters('user_form_fields', array(get_core_vars('tendoo_user_fields')));
// Filter user fields or add
foreach (force_array($user_fields) as $field) {
    $this->gui->set_item($field)->push_to(core_meta_namespace(array('users', 'create')));
}
$this->gui->get();
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:27,代码来源:create.php


示例20: get_core_vars

<body class="login-page">
	<?php 
echo get_core_vars('body');
?>
    
	<?php 
echo output('js');
?>
</body>
</html>
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:10,代码来源:global_body.php



注:本文中的get_core_vars函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_count函数代码示例发布时间:2022-05-15
下一篇:
PHP get_core_updates函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap