本文整理汇总了PHP中Wizard::onSetupPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Wizard::onSetupPage方法的具体用法?PHP Wizard::onSetupPage怎么用?PHP Wizard::onSetupPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wizard
的用法示例。
在下文中一共展示了Wizard::onSetupPage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onSetupPage
function onSetupPage($homepageUrl)
{
// Run the parent first
parent::onSetupPage($homepageUrl);
$showPage = true;
return $showPage;
}
示例2: onSetupPage
function onSetupPage($homepageUrl)
{
global $smarty, $prefs, $tikilib;
// Run the parent first
parent::onSetupPage($homepageUrl);
// find thumbnail if there is one
$a_style = $prefs['site_style'];
// just changed theme menu, so refill options
if (isset($_REQUEST['style']) && $_REQUEST['style'] != '') {
$a_style = $_REQUEST['style'];
}
$thumbfile = $this->get_thumbnail_file($a_style, $prefs['site_style_option']);
if (empty($thumbfile)) {
$thumbfile = $this->get_thumbnail_file($a_style);
}
if (empty($thumbfile)) {
$thumbfile = 'img/trans.png';
}
if (!empty($thumbfile)) {
$smarty->assign('thumbfile', $thumbfile);
}
$styles = $tikilib->list_styles();
$smarty->assign_by_ref('styles', $styles);
$smarty->assign('a_style', $a_style);
$smarty->assign('style_options', $tikilib->list_style_options($a_style));
$this->setupThumbnailScript($styles);
// Assign the page tempalte
$wizardTemplate = 'wizard/admin_look_and_feel.tpl';
$smarty->assign('wizardBody', $wizardTemplate);
return true;
}
示例3: onSetupPage
function onSetupPage($homepageUrl)
{
global $smarty, $prefs;
// Run the parent first
parent::onSetupPage($homepageUrl);
// Assign the page template
$wizardTemplate = 'wizard/upgrade_ui.tpl';
$smarty->assign('wizardBody', $wizardTemplate);
$showPage = true;
// Show if any more specification is needed
// ElFinder
if ($prefs['fgal_elfinder_feature'] === 'y') {
$smarty->assign('promptElFinder', 'y');
// Determine the current filegal default view
$defView = $prefs['fgal_default_view'];
if (isset($defView)) {
if ($defView == 'finder') {
$smarty->assign('useElFinderAsDefault', true);
} else {
$smarty->assign('useElFinderAsDefault', false);
}
}
}
return $showPage;
}
示例4: onSetupPage
public function onSetupPage($homepageUrl)
{
global $prefs;
// Run the parent first
parent::onSetupPage($homepageUrl);
return true;
}
示例5: onSetupPage
function onSetupPage($homepageUrl)
{
global $prefs;
$smarty = TikiLib::lib('smarty');
// Run the parent first
parent::onSetupPage($homepageUrl);
$showPage = false;
// Show if any more specification is needed
// ElFinder
if ($prefs['fgal_elfinder_feature'] === 'y') {
$showPage = true;
$smarty->assign('promptElFinder', 'y');
// Determine the current filegal default view
$defView = $prefs['fgal_default_view'];
if (isset($defView)) {
if ($defView == 'finder') {
$smarty->assign('useElFinderAsDefault', true);
} else {
$smarty->assign('useElFinderAsDefault', false);
}
}
}
// File Gallery
if ($prefs['fgal_use_db'] !== 'y') {
$showPage = true;
$smarty->assign('promptFileGalleryStorage', 'y');
}
// Attachments and not in the file gallery
if ($prefs['feature_wiki_attachments'] === 'y' && $prefs['feature_use_fgal_for_wiki_attachments'] !== 'y') {
$showPage = true;
$smarty->assign('promptAttachmentStorage', 'y');
}
return $showPage;
}
示例6: onSetupPage
function onSetupPage($homepageUrl)
{
$smarty = TikiLib::lib('smarty');
// Run the parent first
parent::onSetupPage($homepageUrl);
return true;
}
示例7: onSetupPage
function onSetupPage($homepageUrl)
{
global $prefs;
// Run the parent first
parent::onSetupPage($homepageUrl);
$showPage = true;
// Show if any more specification is needed
return $showPage;
}
示例8: onSetupPage
function onSetupPage($homepageUrl)
{
global $prefs;
$smarty = TikiLib::lib('smarty');
// Run the parent first
parent::onSetupPage($homepageUrl);
$showPage = true;
return $showPage;
}
示例9: onSetupPage
function onSetupPage($homepageUrl)
{
global $prefs, $TWV;
$smarty = TikiLib::lib('smarty');
// Run the parent first
parent::onSetupPage($homepageUrl);
$smarty->assign('tikiMajorVersion', substr($TWV->version, 0, 2));
return true;
}
示例10: onSetupPage
function onSetupPage($homepageUrl)
{
// Run the parent first
parent::onSetupPage($homepageUrl);
if (!$this->isVisible()) {
return false;
}
return true;
}
示例11: onSetupPage
public function onSetupPage($homepageUrl)
{
global $smarty;
// Run the parent first
parent::onSetupPage($homepageUrl);
// Assign the page template
$wizardTemplate = 'wizard/upgrade_wizard_completed.tpl';
$smarty->assign('wizardBody', $wizardTemplate);
return true;
}
示例12: onSetupPage
public function onSetupPage($homepageUrl)
{
global $smarty, $prefs;
// Run the parent first
parent::onSetupPage($homepageUrl);
// Assign the page temaplte
$wizardTemplate = 'wizard/admin_advanced.tpl';
$smarty->assign('wizardBody', $wizardTemplate);
return true;
}
示例13: onSetupPage
function onSetupPage($homepageUrl)
{
global $smarty;
// Run the parent first
parent::onSetupPage($homepageUrl);
// Assign the page temaplte
$wizardTemplate = 'wizard/user_dummy2.tpl';
$smarty->assign('wizardBody', $wizardTemplate);
return true;
}
示例14: onSetupPage
function onSetupPage($homepageUrl)
{
global $smarty, $prefs;
// Run the parent first
parent::onSetupPage($homepageUrl);
$showPage = true;
// Assign the page tempalte
$wizardTemplate = 'wizard/admin_language.tpl';
$smarty->assign('wizardBody', $wizardTemplate);
return $showPage;
}
示例15: onSetupPage
function onSetupPage($homepageUrl)
{
global $prefs;
$smarty = TikiLib::lib('smarty');
// Run the parent first
parent::onSetupPage($homepageUrl);
$showPage = true;
$editorType = isset($prefs['feature_wysiwyg']) && $prefs['feature_wysiwyg'] === 'y' ? 'wysiwyg' : 'text';
$smarty->assign('editorType', $editorType);
return $showPage;
}