*/ class MEC_feature_contextual extends MEC_base { /** * @var MEC_factory */ public $factory; /** * @var MEC_main */ public $main; public $settings; public function __construct() { // Import MEC Main $this->main = $this->getMain(); // Import MEC Factory $this->factory = $this->getFactory(); // MEC Settings $this->settings = $this->main->get_settings(); } /** * Initialize the auto update class * @author Webnus */ public function init() { // updating checking //$this->factory->filter('contextual_help', array($this, 'contextual'), 10, 2); } public function contextual( $contextual_help, $screen_id) { $screen = get_current_screen(); switch($screen_id) { case 'm-e-calendar_page_MEC-settings': // To add a whole tab group $screen->add_help_tab(array ( 'id' => 'mec-settings', 'title' => esc_html__('Settings', 'modern-events-calendar-lite'), 'callback' => array($this, 'settings') )); $screen->add_help_tab(array ( 'id' => 'mec-form', 'title' => esc_html__('Booking Form', 'modern-events-calendar-lite'), 'content' => esc_html__('

Booking Form

Build your booking registration form (This form will be used for every attendee). ', 'modern-events-calendar-lite') )); $screen->add_help_tab(array ( 'id' => 'mec-gateways', 'title' => esc_html__('Payment Gateways', 'modern-events-calendar-lite'), 'content' => esc_html__('

Payment Gateways

', 'modern-events-calendar-lite') )); $screen->add_help_tab(array ( 'id' => 'mec-notifications', 'title' => esc_html__('Notifications', 'modern-events-calendar-lite'), 'content' => esc_html__('

Notifications

You can edit your messages in there.MEC Notificatoin Module', 'modern-events-calendar-lite') )); break; case 'm-e-calendar_page_MEC-ix': $screen->add_help_tab(array ( 'id' => 'mec-importexport', 'title' => esc_html__('Google Cal. Import', 'modern-events-calendar-lite'), 'content' => esc_html__('

Import/Export

Google Cal. Import:
', 'modern-events-calendar-lite') )); $screen->add_help_tab(array ( 'id' => 'mec-importexportg', 'title' => esc_html__('Google Cal. Export', 'modern-events-calendar-lite'), 'content' => esc_html__('

Import/Export

Google Cal. Export:
', 'modern-events-calendar-lite') )); $screen->add_help_tab(array ( 'id' => 'mec-importexportf', 'title' => esc_html__('Facebook Cal. Import', 'modern-events-calendar-lite'), 'content' => esc_html__('

Import/Export

Facebook Cal. Import:
', 'modern-events-calendar-lite') )); break; } return $contextual_help; } public function settings() { ?>