twentyeleven_settings_field_link_color

Render the Link Color setting field.

Description

twentyeleven_settings_field_link_color(); 

Usage

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

Defined (1)

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

/inc/theme-options.php  
  1. function twentyeleven_settings_field_link_color() { 
  2. ?> 
  3. <input type="text" name="twentyeleven_theme_options[link_color]" id="link-color" value="<?php echo esc_attr( $options['link_color'] ); ?>" /> 
  4. <a href="#" class="pickcolor hide-if-no-js" id="link-color-example"></a> 
  5. <input type="button" class="pickcolor button hide-if-no-js" value="<?php esc_attr_e( 'Select a Color', 'twentyeleven' ); ?>" /> 
  6. <div id="colorPickerDiv" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div> 
  7. <br /> 
  8. <span><?php printf( __( 'Default color: %s', 'twentyeleven' ), '<span id="default-color">' . twentyeleven_get_default_link_color( $options['color_scheme'] ) . '</span>' ); ?></span> 
  9. <?php