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)

The default link color.

Parameters (1)

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

Usage

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

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'];