예제 #1
0
function bear_bones_get_logo($atts = null)
{
    if (is_array($atts)) {
        extract($atts);
    }
    if (!isset($src)) {
        $src = get_theme_mod('site_logo');
    }
    //prar($src);
    $atts = array('src' => $src, 'alt' => get_theme_mod('logo_alt_text'), 'class' => 'header__logo', 'method' => get_theme_mod('logo_method'));
    //prar($atts);
    echo bb_svg($atts);
    /*$logo =  get_theme_mod('site_logo'); 
    	$logo_alt = get_theme_mod('logo_alt_text'); 
    	if(get_theme_mod('header_logo_image')) {
    		$logo_classes = "header__logo bb-svg";
    	} else {
    		$logo_classes = "header__logo";
    	}*/
    //echo  '<img src="'. $logo .'" alt="' . $logo_alt . ' logo" class="' . $logo_classes . '">';
}
예제 #2
0
function bb_svg_shortcode($atts = null, $content = null)
{
    //prar($atts);
    return bb_svg($atts);
}