Falcon_Admin::settings_field_type PHP Method

settings_field_type() public static method

Print field for the handler type
See also: self::init()
public static settings_field_type ( )
    public static function settings_field_type()
    {
        $current = Falcon::get_option('bbsub_handler_type', false);
        $available = Falcon::get_handlers();
        if (empty($available)) {
            echo '<p class="error">' . __('No handlers are available!', 'falcon') . '</p>';
        }
        echo '<select name="bbsub_handler_type" id="bbsub_options_global_type">';
        echo '<option>' . _x('None', 'handler', 'falcon') . '</option>';
        foreach ($available as $type => $class) {
            echo '<option value="' . esc_attr($type) . '"' . selected($current, $type) . '>' . esc_html($class::get_name()) . '</option>';
        }
        echo '</select>';
    }