public static function setTabs(PHPWS_Panel $panel) { $link = 'index.php?module=boost&action=admin'; $core_links['title'] = dgettext('boost', 'Core Modules'); $other_links['title'] = dgettext('boost', 'Other Modules'); $other_links['link'] = $core_links['link'] = $link; $tabs['core_mods'] = $core_links; $tabs['other_mods'] = $other_links; $panel->quickSetTabs($tabs); }
public static function cpanel() { PHPWS_Core::initModClass('controlpanel', 'Panel.php'); $linkBase = 'index.php?module=block'; $tabs['list'] = array('title' => dgettext('block', 'List'), 'link' => $linkBase); $tabs['settings'] = array('title' => dgettext('block', 'Settings'), 'link' => $linkBase); $panel = new PHPWS_Panel('block'); $panel->enableSecure(); $panel->quickSetTabs($tabs); $panel->setModule('block'); return $panel; }
public function cpanel() { PHPWS_Core::initModClass('controlpanel', 'Panel.php'); $link = 'index.php?module=users&action=user'; foreach ($this->modules as $module) { $link = 'index.php?module=users&action=user'; $tabs[$module->title] = array('title' => $module->getProperName(), 'link' => $link); } $panel = new PHPWS_Panel('users'); $panel->quickSetTabs($tabs); $panel->setModule('users'); $panel->setPanel('panel.tpl'); return $panel; }
public static function adminPanel() { $opt['link'] = 'index.php?module=rss'; $opt['title'] = dgettext('rss', 'Channels'); $tab['channels'] = $opt; $opt['title'] = dgettext('rss', 'Import'); $tab['import'] = $opt; $opt['title'] = dgettext('rss', 'Settings'); $tab['settings'] = $opt; $panel = new PHPWS_Panel('rss_admin'); $panel->quickSetTabs($tab); return $panel; }
public static function cpanel() { PHPWS_Core::initModClass('controlpanel', 'Panel.php'); $link = PHPWS_Text::linkAddress('analytics', null, false, false, true, false); $tabs['list'] = array('title' => dgettext('analytics', 'List Trackers'), 'link' => $link); $tabs['new'] = array('title' => dgettext('analytics', 'New Tracker'), 'link' => $link); $panel = new PHPWS_Panel('analyticsPanel'); $panel->enableSecure(); $panel->quickSetTabs($tabs); $panel->setModule('analytics'); $panel->setPanel('panel.tpl'); return $panel; }
public static function adminPanel() { PHPWS_Core::initModClass('controlpanel', 'Panel.php'); $link = 'index.php?module=layout&action=admin'; $tabs['arrange'] = array('title' => dgettext('layout', 'Arrange'), 'link' => $link); $tabs['meta'] = array('title' => dgettext('layout', 'Meta Tags'), 'link' => $link); $tabs['theme'] = array('title' => dgettext('layout', 'Themes'), 'link' => $link); $panel = new PHPWS_Panel('layout'); $panel->quickSetTabs($tabs); return $panel; }
public function getPanel() { $panel = new PHPWS_Panel('calendar'); $vars['aop'] = 'schedules'; $tabs['schedules'] = array('title' => dgettext('calendar', 'Schedules'), 'link' => PHPWS_Text::linkAddress('calendar', $vars)); if (Current_User::allow('calendar', 'settings')) { $vars['aop'] = 'settings'; $tabs['settings'] = array('title' => dgettext('calendar', 'Settings'), 'link' => PHPWS_Text::linkAddress('calendar', $vars)); } if (Current_User::isUnrestricted('calendar') && Current_User::allow('calendar', 'edit_public')) { $vars['aop'] = 'approval'; $db = new PHPWS_DB('calendar_suggestions'); $count = $db->count(); if (PHPWS_Error::isError($count)) { PHPWS_Error::log($count); $count = 0; } $tabs['approval'] = array('title' => sprintf(dgettext('calendar', 'Approval (%s)'), $count), 'link' => PHPWS_Text::linkAddress('calendar', $vars)); } $panel->quickSetTabs($tabs); return $panel; }
public static function cpanel() { PHPWS_Core::initModClass('controlpanel', 'Panel.php'); $link['link'] = 'index.php?module=access'; if (MOD_REWRITE_ENABLED) { $link['title'] = dgettext('access', 'Shortcuts'); $tabs['shortcuts'] = $link; } if (Current_User::allow('access', 'admin_options')) { $link['title'] = dgettext('access', 'Allow/Deny'); $tabs['deny_allow'] = $link; } if (Current_User::isDeity()) { $link['title'] = dgettext('access', '.htaccess'); $tabs['htaccess'] = $link; } $panel = new PHPWS_Panel('access_panel'); $panel->enableSecure(); if (!empty($tabs)) { $panel->quickSetTabs($tabs); } $panel->setModule('access'); return $panel; }
public static function cpanel() { PHPWS_Core::initModClass('controlpanel', 'Panel.php'); $link = 'index.php?module=search'; $tab['keyword'] = array('title' => dgettext('search', 'Keywords'), 'link' => $link); $tab['ignore'] = array('title' => dgettext('search', 'Ignore'), 'link' => $link); $tab['settings'] = array('title' => dgettext('search', 'Settings'), 'link' => $link); $panel = new PHPWS_Panel('search'); $panel->quickSetTabs($tab); $panel->setModule('search'); return $panel; }
public static function cpanel() { PHPWS_Core::initModClass('controlpanel', 'Panel.php'); $link = PHPWS_Text::linkAddress('users', array('action' => 'admin'), false, false, true, false); /* if (PHPWS_Settings::get('users', 'allow_new_users') || Current_User::isDeity()) { $tabs['new_user'] = array('title'=>dgettext('users', 'New User'), 'link'=>$link); } */ if (Current_User::allow('users', 'edit_users') || Current_User::allow('users', 'delete_users')) { $tabs['manage_users'] = array('title' => dgettext('users', 'Manage Users'), 'link' => $link); } if (Current_User::allow('users', 'add_edit_groups')) { //$tabs['new_group'] = array('title' => dgettext('users', 'New Group'), 'link' => $link); $tabs['manage_groups'] = array('title' => dgettext('users', 'Manage Groups'), 'link' => $link); } if (Current_User::isDeity()) { $tabs['authorization'] = array('title' => dgettext('users', 'Authorization'), 'link' => $link); } if (Current_User::allow('users', 'settings')) { $tabs['settings'] = array('title' => dgettext('users', 'Settings'), 'link' => $link); } $panel = new PHPWS_Panel('user_user_panel'); $panel->quickSetTabs($tabs); $panel->setModule('users'); return $panel; }
public static function cpanel() { PHPWS_Core::initModClass('controlpanel', 'Panel.php'); $listLink = 'index.php?module=blog&action=admin'; $listCommand = array('title' => dgettext('blog', 'List'), 'link' => $listLink); if (Current_User::allow('blog', 'edit_blog')) { $tabs['list'] =& $listCommand; } if (Current_User::allow('blog', 'settings')) { $tabs['settings'] = array('title' => dgettext('blog', 'Settings'), 'link' => 'index.php?module=blog&action=admin'); } $panel = new PHPWS_Panel('blog'); $panel->quickSetTabs($tabs); return $panel; }