function onSetupPage($homepageUrl) { // Run the parent first parent::onSetupPage($homepageUrl); $showPage = true; return $showPage; }
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; }
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; }
public function onSetupPage($homepageUrl) { global $prefs; // Run the parent first parent::onSetupPage($homepageUrl); return true; }
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; }
function onSetupPage($homepageUrl) { $smarty = TikiLib::lib('smarty'); // Run the parent first parent::onSetupPage($homepageUrl); return true; }
function onSetupPage($homepageUrl) { global $prefs; // Run the parent first parent::onSetupPage($homepageUrl); $showPage = true; // Show if any more specification is needed return $showPage; }
function onSetupPage($homepageUrl) { global $prefs; $smarty = TikiLib::lib('smarty'); // Run the parent first parent::onSetupPage($homepageUrl); $showPage = true; return $showPage; }
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; }
function onSetupPage($homepageUrl) { // Run the parent first parent::onSetupPage($homepageUrl); if (!$this->isVisible()) { return false; } return true; }
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; }
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; }
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; }
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; }
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; }
function onSetupPage($homepageUrl) { global $TWV; $smarty = TikiLib::lib('smarty'); // Run the parent first parent::onSetupPage($homepageUrl); $smarty->assign('tikiMajorVersion', substr($TWV->version, 0, 2)); // Assign the page template $smarty->assign('pageTitle', $this->pageTitle()); return true; }
function onSetupPage($homepageUrl) { global $smarty, $prefs, $TWV; // Run the parent first parent::onSetupPage($homepageUrl); $smarty->assign('tikiMajorVersion', substr($TWV->version, 0, 2)); // Assign the page template $wizardTemplate = 'wizard/profiles_featured_site_confs.tpl'; $smarty->assign('wizardBody', $wizardTemplate); return true; }
function onSetupPage($homepageUrl) { global $smarty, $prefs; // Run the parent first parent::onSetupPage($homepageUrl); // Assign the page template $wizardTemplate = 'wizard/upgrade_send_feedback.tpl'; $smarty->assign('wizardBody', $wizardTemplate); $showPage = true; return $showPage; }
function onSetupPage($homepageUrl) { global $smarty; // Run the parent first parent::onSetupPage($homepageUrl); // Assign the page template $smarty->assign('pageTitle', $this->pageTitle()); $wizardTemplate = 'wizard/user_wizard.tpl'; $smarty->assign('wizardBody', $wizardTemplate); return true; }
function onSetupPage($homepageUrl) { global $prefs; $smarty = TikiLib::lib('smarty'); // Run the parent first parent::onSetupPage($homepageUrl); $isMultiLanguage = $prefs['feature_multilingual'] === 'y'; if ($isMultiLanguage) { $smarty->assign('isMultiLanguage', $isMultiLanguage); } return true; }
function onSetupPage($homepageUrl) { global $smarty, $userlib, $tikilib, $user, $prefs, $user_preferences; // Run the parent first parent::onSetupPage($homepageUrl); // Show page always since in case user prefs are not enabled, // a message will be shown to the user reporting that and // suggesting to request the admin to enable it. $showPage = true; //// Show if option is selected //if ($prefs['feature_userPreferences'] === 'y') { //$showPage = true; //} $userwatch = $user; $userinfo = $userlib->get_user_info($userwatch); $smarty->assign_by_ref('userinfo', $userinfo); $smarty->assign('userwatch', $userwatch); $realName = $tikilib->get_user_preference($userwatch, 'realName', ''); $smarty->assign('realName', $realName); if ($prefs['feature_community_gender'] == 'y') { $gender = $tikilib->get_user_preference($userwatch, 'gender', 'Hidden'); $smarty->assign('gender', $gender); } $flags = $tikilib->get_flags('', '', '', true); $smarty->assign_by_ref('flags', $flags); $country = $tikilib->get_user_preference($userwatch, 'country', 'Other'); $smarty->assign('country', $country); $homePage = $tikilib->get_user_preference($userwatch, 'homePage', ''); $smarty->assign('homePage', $homePage); $avatar = $tikilib->get_user_avatar($userwatch); $smarty->assign_by_ref('avatar', $avatar); $smarty->assign_by_ref('user_prefs', $user_preferences[$userwatch]); $user_information = $tikilib->get_user_preference($userwatch, 'user_information', 'public'); $smarty->assign_by_ref('user_information', $user_information); $usertrackerId = false; $useritemId = false; if ($prefs['userTracker'] == 'y') { $re = $userlib->get_usertracker($userinfo["userId"]); if (isset($re['usersTrackerId']) and $re['usersTrackerId']) { include_once 'lib/trackers/trackerlib.php'; $trklib = TikiLib::lib('trk'); $info = $trklib->get_item_id($re['usersTrackerId'], $trklib->get_field_id($re['usersTrackerId'], 'Login'), $userwatch); $usertrackerId = $re['usersTrackerId']; $useritemId = $info; } } $smarty->assign('usertrackerId', $usertrackerId); $smarty->assign('useritemId', $useritemId); // Assign the page template $wizardTemplate = 'wizard/user_preferences_info.tpl'; $smarty->assign('wizardBody', $wizardTemplate); return $showPage; }
function onSetupPage($homepageUrl) { global $prefs; $smarty = TikiLib::lib('smarty'); $addonprefs = TikiLib::lib('prefs')->getAddonPrefs(); $smarty->assign('addonprefs', $addonprefs); // Run the parent first parent::onSetupPage($homepageUrl); $showPage = true; // Show if any more specification is needed return $showPage; }
function onSetupPage($homepageUrl) { global $smarty, $prefs; // Run the parent first parent::onSetupPage($homepageUrl); if (!$this->isVisible()) { return false; } // Assign the page tempalte $wizardTemplate = 'wizard/admin_category.tpl'; $smarty->assign('wizardBody', $wizardTemplate); return true; }
function onSetupPage($homepageUrl) { global $smarty, $prefs; // Run the parent first parent::onSetupPage($homepageUrl); $showPage = true; $editorType = isset($prefs['feature_wysiwyg']) && $prefs['feature_wysiwyg'] === 'y' ? 'wysiwyg' : 'text'; $smarty->assign('editorType', $editorType); // Assign the page tempalte $wizardTemplate = 'wizard/admin_editor_type.tpl'; $smarty->assign('wizardBody', $wizardTemplate); return $showPage; }
function onSetupPage($homepageUrl) { global $prefs; $smarty = TikiLib::lib('smarty'); // Run the parent first parent::onSetupPage($homepageUrl); if (!$this->isVisible()) { return false; } $isCategories = isset($prefs['feature_categories']) && $prefs['feature_categories'] === 'y' ? true : false; $smarty->assign('isCategories', $isCategories); return true; }
function onSetupPage($homepageUrl) { global $smarty, $prefs; // Run the parent first parent::onSetupPage($homepageUrl); $isMultiLanguage = $prefs['feature_multilingual'] === 'y'; if ($isMultiLanguage) { $smarty->assign('isMultiLanguage', $isMultiLanguage); } // Assign the page template $wizardTemplate = 'wizard/admin_features.tpl'; $smarty->assign('wizardBody', $wizardTemplate); return true; }
function onSetupPage($homepageUrl) { global $prefs; $smarty = TikiLib::lib('smarty'); // Run the parent first parent::onSetupPage($homepageUrl); if (!$this->isVisible()) { return false; } // Only show "hide namespace in structures" option, if structures are active $isStructures = isset($prefs['feature_wiki_structure']) && $prefs['feature_wiki_structure'] === 'y' ? true : false; $smarty->assign('isStructures', $isStructures); return true; }
function onSetupPage($homepageUrl) { global $smarty, $prefs; // Run the parent first parent::onSetupPage($homepageUrl); if (!$this->isVisible()) { return false; } $isCategories = isset($prefs['feature_categories']) && $prefs['feature_categories'] === 'y' ? true : false; $smarty->assign('isCategories', $isCategories); // Assign the page tempalte $wizardTemplate = 'wizard/admin_structures.tpl'; $smarty->assign('wizardBody', $wizardTemplate); return true; }
function onSetupPage($homepageUrl) { global $smarty, $prefs; // Run the parent first parent::onSetupPage($homepageUrl); if (!$this->isVisible()) { return false; } // Only show "hide namespace in structures" option, if structures are active $isStructures = isset($prefs['feature_wiki_structure']) && $prefs['feature_wiki_structure'] === 'y' ? true : false; $smarty->assign('isStructures', $isStructures); // Assign the page tempalte $wizardTemplate = 'wizard/admin_namespace.tpl'; $smarty->assign('wizardBody', $wizardTemplate); return true; }
function onSetupPage($homepageUrl) { global $user, $prefs; $smarty = TikiLib::lib('smarty'); // Run the parent first parent::onSetupPage($homepageUrl); $showPage = false; // Show if options is selected if ($prefs['feature_user_watches'] === 'y' && $prefs['feature_daily_report_watches'] === 'y') { $showPage = true; } // Setup initial wizard screen $reportsUsers = Reports_Factory::build('Reports_Users'); $reportsUsersUser = $reportsUsers->get($user); $smarty->assign_by_ref('report_preferences', $reportsUsersUser); return $showPage; }