public static function settings_section_handler()
{
if (!self::$registered_handler_settings) {
self::register_handler_settings_fields('bbsub_options', 'bbsub_options_handleroptions');
self::$registered_handler_settings = true;
}
if (!defined('DOING_AJAX') || !DOING_AJAX) {
echo '<div id="bbsub-handlersettings-insert"></div>';
}
global $wp_settings_fields;
// If the handler didn't register any options, don't bother to print the
// title for the section
$page = 'bbsub_options';
$section = 'bbsub_options_handleroptions';
if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section])) {
return;
}
echo '<div id="bbsub-handlersettings-header">';
echo '<h3 id="bbsub-handlersettings-title">' . __('Handler Settings', 'falcon') . '</h3>';
try {
$handler = Falcon::get_handler_class();
} catch (Exception $e) {
return;
}
$handler::options_section_header();
echo '</div>';
}