array( 'value' => 'white', 'label' => __( 'White', 'itheme2' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/white.png', ), 'black' => array( 'value' => 'black', 'label' => __( 'Black', 'itheme2' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/black.png', ), 'gray' => array( 'value' => 'gray', 'label' => __( 'Gray', 'itheme2' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/gray.png', ), ); return apply_filters( 'itheme2_color_schemes', $color_scheme_options ); } /** * Returns the default options for iTheme2. * * @since iTheme2 1.0 */ function itheme2_get_default_theme_options() { $default_theme_options = array( 'color_scheme' => 'white', ); return apply_filters( 'itheme2_default_theme_options', $default_theme_options ); } /** * Returns the options array for iTheme2. * * @since iTheme2 1.0 */ function itheme2_get_theme_options() { return get_option( 'itheme2_theme_options', itheme2_get_default_theme_options() ); } /** * Renders the Color Scheme setting field. * * @since iTheme2 1.3 */ function itheme2_settings_field_color_scheme() { $options = itheme2_get_theme_options(); foreach ( itheme2_color_schemes() as $scheme ) { ?>