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