Advertisements

twentyeleven_settings_field_layout

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

Advertisements

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:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: