Advertisements

twentyeleven_settings_field_color_scheme

Definition:
function twentyeleven_settings_field_color_scheme() {}

Renders the Color Scheme setting field.

Source code

function twentyeleven_settings_field_color_scheme() {

	$options = twentyeleven_get_theme_options();



	foreach ( twentyeleven_color_schemes() as $scheme ) {

	?>

	<div class="layout image-radio-option color-scheme">

	<label class="description">

		<input type="radio" name="twentyeleven_theme_options[color_scheme]" value="<?php echo esc_attr( $scheme['value'] ); ?>" <?php checked( $options['color_scheme'], $scheme['value'] ); ?> />

		<input type="hidden" id="default-color-<?php echo esc_attr( $scheme['value'] ); ?>" value="<?php echo esc_attr( $scheme['default_link_color'] ); ?>" />

		<span>

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

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

		</span>

	</label>

	</div>

	<?php

	}

}

17191

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: