twentyeleven_get_default_link_color

Return the default link color for Twenty Eleven, based on color scheme.

Description

($string) twentyeleven_get_default_link_color( (null) $color_scheme = null ); 

Returns ($string)

Color.

Parameters (1)

0. $color_scheme — Optional. (null) => null
$color_scheme Color scheme. Defaults to the active color scheme.

Usage

  1. if ( !function_exists( 'twentyeleven_get_default_link_color' ) ) { 
  2. require_once '/inc/theme-options.php'; 
  3.  
  4. // $color_scheme Color scheme. Defaults to the active color scheme. 
  5. $color_scheme = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = twentyeleven_get_default_link_color($color_scheme); 
  9.  

Defined (1)

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

/inc/theme-options.php  
  1. function twentyeleven_get_default_link_color( $color_scheme = null ) { 
  2. if ( null === $color_scheme ) { 
  3. $color_scheme = $options['color_scheme']; 
  4.  
  5. $color_schemes = twentyeleven_color_schemes(); 
  6. if ( ! isset( $color_schemes[ $color_scheme ] ) ) 
  7. return false; 
  8.  
  9. return $color_schemes[ $color_scheme ]['default_link_color'];