array( 'value' => 'single', 'label' => __( 'Single Column, with full post content', 'sunspot' ) ), 'double' => array( 'value' => 'double', 'label' => __( 'Two Columns, with excerpts and featured images', 'sunspot' ) ) ); return apply_filters( 'sunspot_radio_buttons', $home_radio_buttons ); } /** * Returns the default options for Sunspot. * * @since Sunspot 1.0 */ function sunspot_get_default_theme_options() { $default_theme_options = array( 'sunspot_radio_buttons' => 'single', ); return apply_filters( 'sunspot_default_theme_options', $default_theme_options ); } /** * Returns the options array for Sunspot. * * @since Sunspot 1.0 */ function sunspot_get_theme_options() { return get_option( 'sunspot_theme_options', sunspot_get_default_theme_options() ); } /** * Renders the radio options setting field. * * @since Sunspot 1.0 */ function sunspot_settings_home_layout() { $options = sunspot_get_theme_options(); foreach ( sunspot_radio_buttons() as $button ) { ?>