twentyeleven_settings_field_color_scheme

Render the Color Scheme setting field.

Description

twentyeleven_settings_field_color_scheme(); 

Usage

  1. if ( !function_exists( 'twentyeleven_settings_field_color_scheme' ) ) { 
  2. require_once '/inc/theme-options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyeleven_settings_field_color_scheme(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/theme-options.php  
  1. function twentyeleven_settings_field_color_scheme() { 
  2.  
  3. foreach ( twentyeleven_color_schemes() as $scheme ) { 
  4. ?> 
  5. <div class="layout image-radio-option color-scheme"> 
  6. <label class="description"> 
  7. <input type="radio" name="twentyeleven_theme_options[color_scheme]" value="<?php echo esc_attr( $scheme['value'] ); ?>" <?php checked( $options['color_scheme'], $scheme['value'] ); ?> /> 
  8. <input type="hidden" id="default-color-<?php echo esc_attr( $scheme['value'] ); ?>" value="<?php echo esc_attr( $scheme['default_link_color'] ); ?>" /> 
  9. <span> 
  10. <img src="<?php echo esc_url( $scheme['thumbnail'] ); ?>" width="136" height="122" alt="" /> 
  11. <?php echo esc_html( $scheme['label'] ); ?> 
  12. </span> 
  13. </label> 
  14. </div> 
  15. <?php