get_attr_logo

Funcion para traer los atributos del logo actual y aplicarlos.

Description

get_attr_logo(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function get_attr_logo() { 
  2. $eff_logo = $style_logo = $img_logo = NULL; 
  3. if($GLOBALS['logo_type'] == 'text') { 
  4. $eff_logo = 'logo_effect_'.strtolower($GLOBALS['logo_text_options']['logo_effect']); 
  5. $style_logo = 'font-size: '.$GLOBALS['logo_text_options']['logo_text_font_size'].';'; 
  6. if($GLOBALS['logo_text_options']['logo_font_family'] != 'Default') { 
  7. $style_logo .= 'font-family: "'.$GLOBALS['logo_text_options']['logo_font_family'].'", sans-serif;'; 
  8. }; 
  9. $style_attr = ($style_logo != "")?"style='".$style_logo."'":""; 
  10. $src_logo = ($GLOBALS['logo_info'])?$GLOBALS['logo_info']['url']:get_template_directory_uri(); 
  11. if($GLOBALS['logo_type'] == 'image') { 
  12. $img_logo = '<img src="'.$src_logo.'"><span></span>'; 
  13. }else{ 
  14. $img_logo = '<span>'.$GLOBALS['logo_text_options']['logo_text'].'</span>'; 
  15. return '<a href="'.home_url().'" class="logo '.$eff_logo.'" '.$style_attr.'>'.$img_logo.'</a>';