array( 'value' => '0', 'label' => __( 'Zero', '_s' ) ), '1' => array( 'value' => '1', 'label' => __( 'One', '_s' ) ), '2' => array( 'value' => '2', 'label' => __( 'Two', '_s' ) ), '3' => array( 'value' => '3', 'label' => __( 'Three', '_s' ) ), '4' => array( 'value' => '4', 'label' => __( 'Four', '_s' ) ), '5' => array( 'value' => '3', 'label' => __( 'Five', '_s' ) ) ); return apply_filters( '_s_sample_select_options', $sample_select_options ); } /** * Returns an array of sample radio options registered for _s. * * @since _s 1.0 */ function _s_sample_radio_buttons() { $sample_radio_buttons = array( 'yes' => array( 'value' => 'yes', 'label' => __( 'Yes', '_s' ) ), 'no' => array( 'value' => 'no', 'label' => __( 'No', '_s' ) ), 'maybe' => array( 'value' => 'maybe', 'label' => __( 'Maybe', '_s' ) ) ); return apply_filters( '_s_sample_radio_buttons', $sample_radio_buttons ); } /** * Returns the options array for _s. * * @since _s 1.0 */ function _s_get_theme_options() { $saved = (array) get_option( '_s_theme_options' ); $defaults = array( 'sample_checkbox' => 'off', 'sample_text_input' => '', 'sample_select_options' => '', 'sample_radio_buttons' => '', 'sample_textarea' => '', ); $defaults = apply_filters( '_s_default_theme_options', $defaults ); $options = wp_parse_args( $saved, $defaults ); $options = array_intersect_key( $options, $defaults ); return $options; } /** * Renders the sample checkbox setting field. */ function _s_settings_field_sample_checkbox() { $options = _s_get_theme_options(); ?>