本文整理匯總了PHP中Typeframe::GetSkins方法的典型用法代碼示例。如果您正苦於以下問題:PHP Typeframe::GetSkins方法的具體用法?PHP Typeframe::GetSkins怎麽用?PHP Typeframe::GetSkins使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Typeframe
的用法示例。
在下文中一共展示了Typeframe::GetSkins方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
}
$pm->addLoop('usergroups', array('usergroupid' => '0', 'usergroupname' => 'Everyone', 'selected' => in_array(0, $selected) ? true : false));
foreach ($usergroups->getAll() as $usergroup) {
if (in_array($usergroup['usergroupid'], $selected)) {
$usergroup['selected'] = true;
}
$pm->addLoop('usergroups', $usergroup);
}
foreach (Typeframe::Registry()->applications() as $app) {
//if ('soft' == $app->map())
$pm->addLoop('applications', array('application' => $app->name()));
}
$pm->sortLoop('applications', 'application');
if (PAGES_DEFAULT_APPLICATION) {
$app = Typeframe::Registry()->application(PAGES_DEFAULT_APPLICATION);
//if ($app && ('soft' == $app->map()))
if ($app) {
$pm->setVariable('application', PAGES_DEFAULT_APPLICATION);
}
}
// add skins to template
foreach (Typeframe::GetSkins() as $skin) {
$pm->addLoop('skins', array('skin' => $skin));
}
$pm->setVariable('typef_site_skin', TYPEF_SITE_SKIN);
$application = Typeframe::Registry()->application($page['application']);
if ($application && $application->admin()) {
if (file_exists(TYPEF_SOURCE_DIR . '/scripts' . $application->admin() . '/settings.php')) {
Typeframe::IncludeScript($application->admin() . '/settings.php');
}
}