' . __('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() {
?>
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);
}
}
}