catchresponsive_favicon

Get the favicon Image options.

Description

catchresponsive_favicon(); 

Usage

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

Defined (1)

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

/inc/catchresponsive-core.php  
  1. function catchresponsive_favicon() { 
  2. if ( ( !$catchresponsive_favicon = get_transient( 'catchresponsive_favicon' ) ) ) { 
  3.  
  4. echo '<!-- refreshing cache -->'; 
  5.  
  6. if ( isset( $options[ 'favicon' ] ) && $options[ 'favicon' ] != '' && !empty( $options[ 'favicon' ] ) ) { 
  7. // if not empty fav_icon on options 
  8. $catchresponsive_favicon = '<link rel="shortcut icon" href="'.esc_url( $options[ 'favicon' ] ).'" type="image/x-icon" />'; 
  9.  
  10. set_transient( 'catchresponsive_favicon', $catchresponsive_favicon, 86940 ); 
  11. echo $catchresponsive_favicon ;