twentyeleven_enqueue_color_scheme

Enqueue the styles for the current color scheme.

Description

twentyeleven_enqueue_color_scheme(); 

Usage

  1. if ( !function_exists( 'twentyeleven_enqueue_color_scheme' ) ) { 
  2. require_once '/inc/theme-options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyeleven_enqueue_color_scheme(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/theme-options.php  
  1. function twentyeleven_enqueue_color_scheme() { 
  2. $color_scheme = $options['color_scheme']; 
  3.  
  4. if ( 'dark' == $color_scheme ) 
  5. wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), null ); 
  6.  
  7. do_action( 'twentyeleven_enqueue_color_scheme', $color_scheme );