} else { $deletePM = deletePM() != '' ? deletePM() : ''; } $pmBlocking = ''; $dao_preference = new Preference(); if (Params::getParam('pmBlocking') != '') { $locking = Params::getParam('pmBlocking'); } else { $locking = pmBlocking() != '' ? pmBlocking() : ''; } $pmDrafts = ''; $dao_preference = new Preference(); if (Params::getParam('pmDrafts') != '') { $pmDrafts = Params::getParam('pmDrafts'); } else { $pmDrafts = pmDrafts() != '' ? pmDrafts() : ''; } $pmSent = ''; $dao_preference = new Preference(); if (Params::getParam('pmSent') != '') { $pmSent = Params::getParam('pmSent'); } else { $pmSent = pmSent() != '' ? pmSent() : ''; } $pmAdmin = ''; $dao_preference = new Preference(); if (Params::getParam('pmAdmin') != '') { $pmAdmin = Params::getParam('pmAdmin'); } else { $pmAdmin = pmAdmin() != '' ? pmAdmin() : ''; }
function init_menu_pm() { osc_add_admin_menu_page(pmAdmin() . __('\'s PM Box', 'osclass_pm'), osc_admin_render_plugin_url('osclass_pm/admin-inbox.php'), 'osclass_pm', null, null, 1); osc_add_admin_submenu_page('osclass_pm', __('Inbox', 'osclass_pm'), osc_admin_render_plugin_url('osclass_pm/admin-inbox.php'), 'osclass_pm-inbox'); if (pmDrafts()) { osc_add_admin_submenu_page('osclass_pm', __('Drafts', 'osclass_pm'), osc_admin_render_plugin_url('osclass_pm/admin-drafts.php'), 'osclass_pm-drafts'); } osc_add_admin_submenu_page('osclass_pm', __('Outbox', 'osclass_pm'), osc_admin_render_plugin_url('osclass_pm/admin-outbox.php'), 'osclass_pm-outbox'); //osclass pm settings added to the settings menu. // this menu option has javascript attached to it so //that it becomes a header in the menu instead of a link. osc_admin_menu_settings(__('PM Settings', 'osclass_pm'), '#', 'osclass_pm-settingsHead'); osc_admin_menu_settings(__('Configure', 'osclass_pm'), osc_admin_render_plugin_url('osclass_pm/admin.php'), 'osclass_pm-config'); osc_admin_menu_settings(__('Help', 'osclass_pm'), osc_admin_render_plugin_url('osclass_pm/help.php'), 'osclass_pm-help'); }