twentyeleven_settings_field_layout

Render the Layout setting field.

Description

twentyeleven_settings_field_layout(); 

Usage

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

Defined (1)

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

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