_help = new WpmuDev_ContextualHelp(); $this->_set_up_sidebar(); } public static function serve () { $me = new App_AdminHelp; $me->_initialize(); } private function _initialize () { foreach ($this->_pages as $page) { $method = "_add_{$page}_page"; if (method_exists($this, $method)) $this->$method(); } $this->_help->initialize(); } private function _set_up_sidebar () { $this->_sidebar = '

' . __('Appointments+', 'appointments') . '

'; if (defined('WPMUDEV_REMOVE_BRANDING') && constant('WPMUDEV_REMOVE_BRANDING')) { $this->_sidebar .= '

' . __('Lets you accept appointments from front end and manage or create them from admin side.', 'appointments') . '

'; } else { $this->_sidebar .= '' . ''; } } private function _add_shortcodes_contextual_help ($screen_id) { $help = apply_filters('app-shortcodes-shortcode_help-string', ''); $this->_help->add_page( $screen_id, array( array( 'id' => 'app_shortcodes', 'title' => __('Appointments shortcodes', 'appointments'), 'content' => $help, ), ) ); } private function _add_post_page () { $this->_add_shortcodes_contextual_help('post'); } private function _add_page_page () { $this->_add_shortcodes_contextual_help('page'); } }