本文整理汇总了PHP中PageTheme::getList方法的典型用法代码示例。如果您正苦于以下问题:PHP PageTheme::getList方法的具体用法?PHP PageTheme::getList怎么用?PHP PageTheme::getList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PageTheme
的用法示例。
在下文中一共展示了PageTheme::getList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: view
public function view()
{
$tArray = array();
$tArray2 = array();
$tArray = PageTheme::getList();
$tArray2 = PageTheme::getAvailableThemes();
$this->set('tArray', $tArray);
$this->set('tArray2', $tArray2);
$siteThemeID = 0;
$obj = PageTheme::getSiteTheme();
if (is_object($obj)) {
$siteThemeID = $obj->getThemeID();
}
$this->set('siteThemeID', $siteThemeID);
$this->set('activate', View::url('/dashboard/pages/themes', 'activate'));
$this->set('install', View::url('/dashboard/pages/themes', 'install'));
}
示例2: if
?>
</option>
<option value="lt"<? if ($req['cChildrenSelect'] == 'lt') { ?> selected <? } ?>><?php
echo t('Fewer Than');
?>
</option>
</select>
<input type="text" name="cChildren" value="<?php
echo $req['cChildren'];
?>
" />
</span>
<span class="ccm-search-option" search-field="theme">
<select name="ptID">
<? $themes = PageTheme::getList(); ?>
<? foreach($themes as $pt) { ?>
<option value="<?php
echo $pt->getThemeID();
?>
"><?php
echo $pt->getThemeName();
?>
</option>
<? } ?>
</select>
</span>
<? foreach($searchFieldAttributes as $sfa) {
$sfa->render('search'); ?>
<? } ?>
示例3: getListByPackage
public static function getListByPackage($pkg) {
return PageTheme::getList('pkgID = ' . $pkg->getPackageID());
}
示例4: exportList
public static function exportList($xml) {
$nxml = $xml->addChild('themes');
$list = PageTheme::getList();
$pst = PageTheme::getSiteTheme();
foreach($list as $pt) {
$activated = 0;
if ($pst->getThemeID() == $pt->getThemeID()) {
$activated = 1;
}
$type = $nxml->addChild('theme');
$type->addAttribute('handle', $pt->getThemeHandle());
$type->addAttribute('package', $pt->getPackageHandle());
$type->addAttribute('activated', $activated);
}
}