Exemplo n.º 1
0
/**
 * Displays the branding logo
 *
 * @since 1.0
 * @access public
 * @return void
 */
function hoot_logo()
{
    $display = '';
    $hoot_logo = hoot_get_option('logo');
    if ('text' == $hoot_logo) {
        $title_icon = hoot_get_option('site_title_icon', NULL);
        $class = $title_icon ? ' class="site-logo-with-icon"' : '';
        $display .= '<div id="site-logo-text"' . $class . '>';
        if ($title_icon) {
            $title_icon = '<i class="fa ' . sanitize_html_class($title_icon) . '"></i>';
        }
        $display .= hoot_get_site_title($title_icon);
        if (hoot_get_option('show_tagline')) {
            $display .= hoot_get_site_description();
        }
        $display .= '</div><!--logotext-->';
    } elseif ('image' == $hoot_logo) {
        $display .= hoot_get_logo_image();
    }
    echo apply_filters('hoot_display_logo', $display);
}
Exemplo n.º 2
0
 function hoot_logo()
 {
     $display = '';
     $hoot_logo = hoot_get_mod('logo');
     if ('text' == $hoot_logo) {
         $title_icon = hoot_get_mod('site_title_icon', NULL);
         $class = $title_icon ? ' class="site-logo-with-icon"' : '';
         $display .= '<div id="site-logo-text"' . $class . '>';
         if ($title_icon) {
             $title_icon = '<i class="fa ' . sanitize_html_class($title_icon) . '"></i>';
         }
         $display .= '<h1 ' . hoot_get_attr('site-title') . '>' . '<a href="' . home_url() . '" rel="home">' . $title_icon;
         $title = get_bloginfo('name');
         $display .= apply_filters('hoot_site_title', $title);
         $display .= '</a></h1>';
         if (hoot_get_mod('show_tagline')) {
             $display .= hoot_get_site_description();
         }
         $display .= '</div><!--logotext-->';
     } elseif ('image' == $hoot_logo) {
         $display .= hoot_get_logo_image();
     }
     echo apply_filters('hoot_display_logo', $display);
 }
Exemplo n.º 3
0
/**
 * Displays the branding logo
 *
 * @since 1.0
 * @access public
 * @return void
 */
function hoot_logo()
{
    $display = '';
    $hoot_logo = hoot_get_option('logo');
    if ('text' == $hoot_logo || 'custom' == $hoot_logo) {
        $title_icon = hoot_get_option('site_title_icon', NULL);
        $class = $title_icon ? ' class="site-logo-with-icon"' : '';
        $display .= '<div id="site-logo-' . $hoot_logo . '"' . $class . '>';
        if ($title_icon) {
            $title_icon = '<i class="fa ' . sanitize_html_class($title_icon) . '"></i>';
        }
        $display .= '<h1 ' . hoot_get_attr('site-title') . '>' . '<a href="' . home_url() . '" rel="home">' . $title_icon;
        $title = '';
        if ('text' == $hoot_logo) {
            $title = get_bloginfo('name');
        } elseif ('custom' == $hoot_logo) {
            $title = hoot_get_custom_text_logo();
        }
        $display .= apply_filters('hoot_site_title', $title);
        $display .= '</a></h1>';
        if (hoot_get_option('show_tagline')) {
            $display .= hoot_get_site_description();
        }
        $display .= '</div><!--logotext-->';
    } elseif ('mixed' == $hoot_logo || 'mixedcustom' == $hoot_logo) {
        $logo_image = hoot_get_option('logo_image');
        $class = $logo_image ? ' class="site-logo-with-image"' : '';
        $display .= '<div id="site-logo-' . $hoot_logo . '"' . $class . '>';
        if ($logo_image) {
            $logo_image = '<div class="site-logo-mixed-image"><img src="' . esc_url($logo_image) . '" /></div>';
        }
        $display .= '<h1 ' . hoot_get_attr('site-title') . '>' . '<a href="' . home_url() . '" rel="home" class="site-logo-mixed-link">' . $logo_image;
        $title = '';
        if ('mixed' == $hoot_logo) {
            $title = get_bloginfo('name');
        } elseif ('mixedcustom' == $hoot_logo) {
            $title = hoot_get_custom_text_logo();
        }
        $display .= '<div class="site-logo-mixed-text">' . apply_filters('hoot_site_title', $title) . '</div>';
        $display .= '</a></h1>';
        if (hoot_get_option('show_tagline')) {
            $display .= hoot_get_site_description();
        }
        $display .= '</div><!--logotext-->';
    } elseif ('image' == $hoot_logo) {
        $display .= hoot_get_logo_image();
    }
    echo apply_filters('hoot_display_logo', $display);
}