*/
// Add Leads sub-menu for GLM Associate menu
-add_submenu_page(
+$glm_leads_page_sufix = add_submenu_page(
'glm-members-admin-menu-members',
'Leads',
'Leads',
'glm-members-admin-menu-leads-index',
function() {$this->controller('leads');}
);
+if ( $glm_leads_page_sufix ) {
+ add_action( 'load-' . $glm_leads_page_sufix, function(){
+ $screen = get_current_screen();
+ $screen->add_help_tab(
+ array(
+ 'id' => 'glm-member-db-leads-help-search',
+ 'title' => __( 'Search for Leads' ),
+ 'content' => '<p>After the search if there\'s results you\'ll get a download link.</p>'
+ )
+ );
+ $screen->add_help_tab(
+ array(
+ 'id' => 'glm-member-db-leads-help-bysource',
+ 'title' => __( 'Search for Leads By form' ),
+ 'content' => '<p>Select a form or source from the drop down called \'Source\'</p>'
+ )
+ );
+ // Help sidebars.
+ $screen->set_help_sidebar(
+ '<p><strong>' . __( 'For more information' ) . '</strong></p>'.
+ '<p><a href="http://www.gaslightmedia.com/">Gaslight Media Website</a></p>'
+ );
+ } );
+}
// If a contact is logged in (ownEntity isn't false), add Contact Profile menu item
if ( $this->config['loggedInUser']['contactUser'] ) {
add_submenu_page(