本文整理匯總了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;
}
}
}
示例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');
}
示例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;
}
}
示例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');
}
示例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;
}