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'] ); ?> />


				<img src="<?php echo esc_url( $layout['thumbnail'] ); ?>" width="136" height="122" alt="" />

				<?php echo $layout['label']; ?>








No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: