' . __('Configure settings for HVAC Community Events', 'hvac-ce') . '

'; } public function notification_emails_callback() { $options = get_option('hvac_ce_options'); echo ''; echo '

' . __('Comma-separated list of emails to notify when new trainers register', 'hvac-ce') . '

'; } public function options_page() { $active_tab = isset( $_GET['tab'] ) ? sanitize_text_field( $_GET['tab'] ) : 'general'; $tabs = array( 'general' => __( 'General Settings', 'hvac-ce' ), ); // Allow other classes to add tabs $tabs = apply_filters( 'hvac_ce_settings_tabs', $tabs ); ?>

render_page(); } /** * Enqueue admin scripts and styles */ public function enqueue_admin_scripts($hook) { // Only load on HVAC admin pages if (strpos($hook, 'hvac-community-events') !== false) { // Add inline script to make trainer login link open in new tab $script = " jQuery(document).ready(function($) { // Find the trainer login menu link and make it open in new tab $('a[href*=\"training-login\"]').attr('target', '_blank'); }); "; wp_add_inline_script('jquery', $script); } } }