當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CopixTpl::getThemeInformations方法代碼示例

本文整理匯總了PHP中CopixTpl::getThemeInformations方法的典型用法代碼示例。如果您正苦於以下問題:PHP CopixTpl::getThemeInformations方法的具體用法?PHP CopixTpl::getThemeInformations怎麽用?PHP CopixTpl::getThemeInformations使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CopixTpl的用法示例。


在下文中一共展示了CopixTpl::getThemeInformations方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: beforeProcess

 public function beforeProcess()
 {
     if (($theme = CopixAJAX::getSession()->get('currentTheme')) != null) {
         CopixTpl::setTheme($theme);
         //Ajout d'une gestion de tpl par thème
         $config = CopixConfig::instance();
         $theme = CopixTpl::getThemeInformations(CopixTpl::getTheme());
         if ($theme->tpl != null) {
             $config->mainTemplate = $theme->tpl;
         }
     }
 }
開發者ID:JVS-IS,項目名稱:ICONITO-EcoleNumerique,代碼行數:12,代碼來源:theme_ajax.plugin.php

示例2: processDefault

 /**
  * Page de choix de thème
  */
 public function processDefault()
 {
     $ppo = new CopixPPO();
     $ppo->TITLE_PAGE = _i18n('admin|themes.titlePage.selectTheme');
     $arThemes = CopixPluginRegistry::getConfig('themechooser|themechooser', true)->getThemeList();
     $ppo->arThemes = array();
     foreach ($arThemes as $theme) {
         $ppo->arThemes[] = CopixTpl::getThemeInformations($theme);
     }
     $ppo->selectedTheme = CopixSession::get('themechooser|theme');
     return _arPpo($ppo, 'theme.list.tpl');
 }
開發者ID:JVS-IS,項目名稱:ICONITO-EcoleNumerique,代碼行數:15,代碼來源:default.actiongroup.php

示例3: beforeProcess

 public function beforeProcess(&$pExecParams)
 {
     if ($theme = $this->config->getThemeFor(CopixRequest::get('module'))) {
         CopixTpl::setTheme($theme);
     }
     //Ajout d'une gestion de tpl par thème
     $config = CopixConfig::instance();
     $theme = CopixTpl::getThemeInformations(CopixTpl::getTheme());
     if ($theme->tpl != null) {
         $config->mainTemplate = $theme->tpl;
     }
 }
開發者ID:JVS-IS,項目名稱:ICONITO-EcoleNumerique,代碼行數:12,代碼來源:theme_module.plugin.php

示例4: processDefault

 /**
  * Affiche la liste des thèmes disponibles
  */
 public function processDefault()
 {
     $ppo = new CopixPPO();
     $ppo->TITLE_PAGE = _i18n('themes.titlePage.selectTheme');
     $arThemes = CopixTpl::getThemesList();
     $arThemesInfos = array();
     $ppo->arThemes = array();
     foreach ($arThemes as $theme) {
         $ppo->arThemes[] = CopixTpl::getThemeInformations($theme);
     }
     $ppo->selectedTheme = CopixConfig::get('defaultThemeId');
     return _arPPO($ppo, 'theme.list.tpl');
 }
開發者ID:JVS-IS,項目名稱:ICONITO-EcoleNumerique,代碼行數:16,代碼來源:themes.actiongroup.php

示例5: _createContent

 public function _createContent(&$toReturn)
 {
     if (!CopixPluginRegistry::isRegistered('themechooser|themechooser')) {
         $toReturn = "";
         return true;
     }
     $tpl = new CopixTpl();
     $arThemes = CopixPluginRegistry::getConfig('themechooser|themechooser')->getThemeList();
     $arThemesToReturn = array();
     foreach ($arThemes as $theme) {
         $arThemesToReturn[] = CopixTpl::getThemeInformations($theme);
     }
     $selectedTheme = CopixSession::get('themechooser|theme');
     $tpl->assign('selectedTheme', $selectedTheme);
     $tpl->assign('arThemes', $arThemesToReturn);
     $toReturn = $tpl->fetch('combo.list.tpl');
     return true;
 }
開發者ID:JVS-IS,項目名稱:ICONITO-EcoleNumerique,代碼行數:18,代碼來源:themechooser.zone.php


注:本文中的CopixTpl::getThemeInformations方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。