public function getMetaBox() { global $post; $this->assign('subCheckedNotify', (int) frameCsp::_()->getModule('options')->get('sub_checked_notify')); $this->assign('post', $post); parent::display('subMetaBox'); }
public function displayDeactivatePage() { $this->assign('GET', reqCsp::get('get')); $this->assign('POST', reqCsp::get('post')); $this->assign('REQUEST_METHOD', strtoupper(reqCsp::getVar('REQUEST_METHOD', 'server'))); $this->assign('REQUEST_URI', basename(reqCsp::getVar('REQUEST_URI', 'server'))); parent::display('deactivatePage'); }
public function getAdminPage() { $presetTemplatesHtml = $this->getPresetTemplates(); $tabsData = array('cspMainOptions' => array('title' => 'Main', 'content' => $this->getMainOptionsTab(), 'sort_order' => 10), 'cspTemplateOptions' => array('title' => 'Template', 'content' => $this->getTemplateOptionsTab(), 'sort_order' => 20), 'cspPresetTemplates' => array('title' => 'Preset Templates', 'content' => $presetTemplatesHtml, 'sort_order' => 30)); $tabsData = dispatcherCsp::applyFilters('adminOptionsTabs', $tabsData); uasort($tabsData, array($this, 'sortTabsCallback')); $this->assign('presetTemplatesHtml', $presetTemplatesHtml); $this->assign('tabsData', $tabsData); parent::display('optionsAdminPage'); }
public function displayAllMeta($uid = 0) { if (!$uid) { $uid = frameCsp::_()->getModule('user')->getModel()->getCurrentID(); } $metaFields = frameCsp::_()->getModule('user')->getModel()->getUserMeta($uid, 'registration'); $showPassword = false; $currentUserData = frameCsp::_()->getModule('user')->getModel()->get(); if ($currentUserData->data->isAdmin && is_admin()) { $showPassword = true; } $haveOrders = frameCsp::_()->getModule('user')->isAdmin() && frameCsp::_()->getModule('order')->getModel()->userHaveOrders($uid); $this->assign('showPassword', $showPassword); $this->assign('uid', $uid); $this->assign('metaFields', $metaFields); $this->assign('haveOrders', $haveOrders); parent::display('metaFields'); }
public function showWelcomePage() { $this->assign('askOptions', array(1 => array('label' => 'Google'), 2 => array('label' => 'Wordpress.org'), 3 => array('label' => 'Refer a friend'), 4 => array('label' => 'Find on the web'), 5 => array('label' => 'Other way...'))); parent::display('welcomePage'); }
public function getList() { $this->assign('logs', frameCsp::_()->getModule('logCsp')->getModel()->getSorted()); $this->assign('logTypes', frameCsp::_()->getModule('logCsp')->getModel()->getTypes()); parent::display('logList'); }
public function displayModActivationPopup() { parent::display('modActivationPopup'); }
public function display($instance) { $this->assign('uniqBoxId', 'toeTwitterWidget' . mt_rand(1, 9999)); $this->assign('instance', $instance); parent::display('twitter'); }