Definition:
function twentyeleven_settings_field_layout() {}
Renders the Layout setting field.
Source code
function twentyeleven_settings_field_layout() { $options = twentyeleven_get_theme_options(); foreach ( twentyeleven_layouts() as $layout ) { ?> <div class="layout image-radio-option theme-layout"> <label class="description"> <input type="radio" name="twentyeleven_theme_options[theme_layout]" value="<?php echo esc_attr( $layout['value'] ); ?>" <?php checked( $options['theme_layout'], $layout['value'] ); ?> /> <span> <img src="<?php echo esc_url( $layout['thumbnail'] ); ?>" width="136" height="122" alt="" /> <?php echo $layout['label']; ?> </span> </label> </div> <?php } }
17194
No comments yet... Be the first to leave a reply!