Advertisements

twentyeleven_enqueue_color_scheme

Definition:
function twentyeleven_enqueue_color_scheme() {}

Enqueue the styles for the current color scheme.

Defined actions

  • twentyeleven_enqueue_color_scheme
    do_action( 'twentyeleven_enqueue_color_scheme', $color_scheme );

Source code

function twentyeleven_enqueue_color_scheme() {

	$options = twentyeleven_get_theme_options();

	$color_scheme = $options['color_scheme'];



	if ( 'dark' == $color_scheme )

		wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), null );



	do_action( 'twentyeleven_enqueue_color_scheme', $color_scheme );

}

14727

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: