本文整理汇总了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;
}