当前位置: 首页>>代码示例>>PHP>>正文


PHP XenForo_Template_Abstract::preloadTemplate方法代码示例

本文整理汇总了PHP中XenForo_Template_Abstract::preloadTemplate方法的典型用法代码示例。如果您正苦于以下问题:PHP XenForo_Template_Abstract::preloadTemplate方法的具体用法?PHP XenForo_Template_Abstract::preloadTemplate怎么用?PHP XenForo_Template_Abstract::preloadTemplate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XenForo_Template_Abstract的用法示例。


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

示例1: template_create

 public static function template_create($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     if ($templateName == 'account_wrapper') {
         $template->preloadTemplate('bdapi_account_wrapper_sidebar');
     } elseif ($templateName == 'PAGE_CONTAINER') {
         $template->preloadTemplate('bdapi_navigation_visitor_tab');
     }
 }
开发者ID:burtay,项目名称:bdApi,代码行数:8,代码来源:Listener.php

示例2: template_create

 public static function template_create($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     switch ($templateName) {
         case 'member_view':
             $template->preloadTemplate('autocraft_GameProfilesTab');
             $template->preloadTemplate('autocraft_GameProfiles');
             break;
     }
 }
开发者ID:ravenboilinux,项目名称:xenforo,代码行数:9,代码来源:Listener.php

示例3: preloader

 public static function preloader($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     if (in_array($templateName, array('conversation_view', 'thread_view'))) {
         $template->preloadTemplate('sedo_agent');
     }
     if ($templateName == 'account_privacy') {
         $template->preloadTemplate('sedo_agent_account');
     }
 }
开发者ID:Sywooch,项目名称:forums,代码行数:9,代码来源:Preloader.php

示例4: templateCreate

 public static function templateCreate($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     switch ($templateName) {
         case 'PAGE_CONTAINER':
             $template->preloadTemplate('steam_helper_criteria_privs');
             $template->preloadTemplate('steam_navtabs');
             $template->preloadTemplate('steam_public_index');
             break;
     }
 }
开发者ID:WENKz,项目名称:Steam-Authentication-for-XenForo,代码行数:10,代码来源:Listener.php

示例5: Advtemplat

 public static function Advtemplat($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     switch ($templateName) {
         case 'account_preferences':
             $template->preloadTemplate('adv_xenforo_account_options');
             break;
         default:
             $template->preloadTemplate('ads_xf_ar_xenforo');
             break;
     }
 }
开发者ID:Sywooch,项目名称:forums,代码行数:11,代码来源:Listener.php

示例6: templateCreate

 public static function templateCreate($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     if ($templateName == 'thread_create') {
         $template->preloadTemplate('vtPhong_add_slide_show_template');
     }
     if ($templateName == 'post_edit') {
         $template->preloadTemplate('vtPhong_add_slide_show_template');
     }
     if ($templateName == 'forum_edit') {
         $template->preloadTemplate('vtPhong_forum_options_add_slide');
     }
 }
开发者ID:VoDongMy,项目名称:xenforo-laravel5.1,代码行数:12,代码来源:Listener.php

示例7: preloader

 public static function preloader($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     switch ($templateName) {
         case 'help_bb_codes':
             $template->preloadTemplate('help_bbm_bbcodes');
             break;
         case 'editor':
             /***
             				Templates Preloader
             			***/
             if (XenForo_Application::get('options')->get('Bbm_Bm_ShowControllerInfo')) {
                 $template->preloadTemplate('bbm_editor_extra_info');
             }
             /***
             				ADD PARAMS TO THE EDITOR TEMPLATE
             			***/
             $options = XenForo_Application::get('options');
             if ($template instanceof XenForo_Template_Admin && !$options->Bbm_Bm_SetInAdmin) {
                 break;
             }
             $controllerName = self::getParam('controllerName', $params);
             $controllerAction = self::getParam('controllerAction', $params);
             $viewName = self::getParam('viewName', $params);
             $extraParams = BBM_Helper_Buttons::getConfig($controllerName, $controllerAction, $viewName);
             /***
             				Merge extra params to template params
             				> The first method is to use the array + operator -  params of first element overrides params of second element
             				> The second method is to use the array_merge function - params of second element should overrides params of the first
             				  unless if the key is a figure (if I understood the php documentation)
             				  
             				Selected method: first
             				Reason: it is said to be faster
             			**/
             $params = $extraParams + $params;
             // First method
             //$params = array_merge($params,$extraParams);	// Second method
             break;
         case 'forum_edit':
             if ($template instanceof XenForo_Template_Admin && XenForo_Application::get('options')->get('Bbm_Bm_Forum_Config')) {
                 $template->preloadTemplate('bbm_forum_edit_bbm_editor');
             }
             break;
         case 'home':
             if ($template instanceof XenForo_Template_Admin) {
                 $template->preloadTemplate('bbm_admin_icon');
             }
             break;
     }
 }
开发者ID:Sywooch,项目名称:forums,代码行数:49,代码来源:Preloader.php

示例8: rrssbExtFiles

 public static function rrssbExtFiles(&$templateName, array &$params, XenForo_Template_Abstract $template)
 {
     if ($templateName == 'thread_view') {
         $template->addRequiredExternal('css', 'SV_rrssbDefault');
         $template->preloadTemplate('SV_rrssbShares');
     }
 }
开发者ID:Sywooch,项目名称:forums,代码行数:7,代码来源:Listener.php

示例9: template_create

 public static function template_create($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     switch ($templateName) {
         case 'thread_view':
             $template->preloadTemplate('MoreThread_main');
             break;
     }
 }
开发者ID:Sywooch,项目名称:forums,代码行数:8,代码来源:Listener.php

示例10: template_create

 public static function template_create($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     switch ($templateName) {
         case 'addon_edit':
             $template->preloadTemplate('devhelper_' . $templateName);
             break;
     }
 }
开发者ID:hahuunguyen,项目名称:DTUI_201105,代码行数:8,代码来源:Listener.php

示例11: template_create

 /**
  * @param $templateName
  * @param array $params
  * @param XenForo_Template_Abstract $template
  */
 public static function template_create($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     if (!self::canViewGallery()) {
         return;
     }
     if (self::$_hasImportOwnThreadPerm === null) {
         self::$_hasImportOwnThreadPerm = XenForo_Visitor::getInstance()->hasPermission('sonnb_xengallery', 'importOwnThread');
     }
     if (self::$_hasImportAnyThreadPerm === null) {
         self::$_hasImportAnyThreadPerm = XenForo_Visitor::getInstance()->hasPermission('sonnb_xengallery', 'importAnyThread');
     }
     if ($template instanceof XenForo_Template_Admin) {
         return;
     }
     switch ($templateName) {
         case 'PAGE_CONTAINER':
             $template->preloadTemplate('sonnb_xengallery_nav_visitor');
             break;
         case 'account_wrapper':
             $template->preloadTemplate('sonnb_xengallery_account_nav');
             break;
         case 'member_card':
             $template->preloadTemplate('sonnb_xengallery_member_card');
             $template->preloadTemplate('sonnb_xengallery_member_card_links');
             break;
         case 'member_view':
             $template->preloadTemplate('sonnb_xengallery_member_view_info');
             $template->preloadTemplate('sonnb_xengallery_member_view_tabs_heading');
             $template->preloadTemplate('sonnb_xengallery_member_view_tabs_content');
         case 'thread_view':
             if (self::$_hasImportAnyThreadPerm || self::$_hasImportOwnThreadPerm) {
                 $template->preloadTemplate('sonnb_xengallery_thread_import');
             }
             break;
     }
     if (strpos($templateName, 'sonnb_xengallery') !== false) {
         $template->preloadTemplate('sonnb_xengallery_option_copyright');
         if (XenForo_Application::getConfig()->get('sonnbXengalleryCopyrightRemoved') !== true) {
             $template->preloadTemplate('sonnbXG_copyright');
         }
     }
 }
开发者ID:Sywooch,项目名称:forums,代码行数:47,代码来源:Listener.php

示例12: templateCreate

 public static function templateCreate($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     if ($template instanceof XenForo_Template_Admin) {
     } else {
         switch ($templateName) {
             case 'thread_view':
                 $template->preloadTemplate('BRETI_message_below');
                 break;
         }
     }
 }
开发者ID:Sywooch,项目名称:forums,代码行数:11,代码来源:Listener.php

示例13: template_create

 public static function template_create(&$templateName, array &$params, XenForo_Template_Abstract $template)
 {
     if (self::$_hasPerm === null) {
         self::$_hasPerm = XenForo_Model::create('sonnbUpThread_Model_Log')->canUpThread();
     }
     if (!self::$_hasPerm) {
         return;
     }
     switch ($templateName) {
         case 'forum_view':
             $template->preloadTemplate('sonnb_up_thread_list');
             break;
         case 'thread_view':
             $template->preloadTemplate('sonnb_up_thread_view');
             $template->preloadTemplate('sonnb_up_thread_view_single');
             break;
         case 'thread_create':
             $template->preloadTemplate('sonnb_up_thread_schedule');
             break;
         case 'PAGE_CONTAINER':
             $template->preloadTemplate('sonnb_up_thread_nav_visitor');
             break;
         case 'account_wrapper':
             $template->preloadTemplate('sonnb_up_thread_account_information_nav');
             break;
     }
 }
开发者ID:darkearl,项目名称:projectT122015,代码行数:27,代码来源:Listener.php

示例14: template_create

 public static function template_create($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     if (empty(self::$_commonTemplatesPreloaded)) {
         $template->preloadTemplate('bdapi_consumer_providers');
         $template->preloadTemplate('bdapi_consumer_page_container_head');
         if (!bdApiConsumer_Option::get('_is120+')) {
             $template->preloadTemplate('bdapi_consumer_navigation_visitor_tab_links1');
         }
         self::$_commonTemplatesPreloaded = true;
     }
     if ($templateName === 'PAGE_CONTAINER' and !bdApiConsumer_Option::get('_is120+')) {
         if (bdApiConsumer_Option::get('_showButtons')) {
             // setting $eAuth in hook position login_bar_eauth_set doens't work
             // so we have to do it here. Risk: won't work if the container template changes
             // this is bad but it only runs in XenForo 1.1.x
             $params['eAuth'] = 1;
         }
     }
     if ($templateName == 'account_wrapper' and !bdApiConsumer_Option::get('_is120+')) {
         $template->preloadTemplate('bdapi_consumer_account_wrapper_sidebar_settings');
     }
 }
开发者ID:sushj,项目名称:bdApi,代码行数:22,代码来源:Listener.php

示例15: TemplateCreate

 public static function TemplateCreate($templateName, array &$params, XenForo_Template_Abstract $template)
 {
     switch ($templateName) {
         case 'dark_taigachat':
             /** @var Dark_TaigaChat_Model_TaigaChat */
             $taigamodel = XenForo_Model::create("Dark_TaigaChat_Model_TaigaChat");
             $visitor = XenForo_Visitor::getInstance();
             $taigamodel->updateActivity($visitor['user_id'], false);
             // fallthrough
         // fallthrough
         case 'dark_taigachat_widget_online':
         case 'dark_taigachat_fake':
             $response = new stdClass();
             $response->viewName = "";
             $response->params = array();
             Dark_TaigaChat_Helper_Global::getTaigaChatStuff($response, "");
             $params = array_merge_recursive($params, $response->params);
             break;
         case 'PAGE_CONTAINER':
             $template->preloadTemplate('dark_taigachat');
             $template->preloadTemplate('dark_taigachat_list');
             break;
     }
 }
开发者ID:VoDongMy,项目名称:xenforo-laravel5.1,代码行数:24,代码来源:Listener.php


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