/** * Adds site logo from customizer options if available, defaults to site title. */ function taylor_get_logo() { $output = ''; if (get_theme_mod('taylor_customize_logo')) { $output = '<h1 class="site-logo">'; $output .= '<a href="' . esc_url(home_url('/')) . '" rel="home"><img src="' . esc_url(get_theme_mod('taylor_customize_logo')) . '" alt="' . esc_attr(get_bloginfo('name')) . '" class="site-logo-image"/></a>'; $output .= '</h1>'; } else { $output = hybrid_site_title(); } echo $output; // TODO: add apply_filters and docs on how to use }
hybrid_attr('header'); ?> > <div class="wrap"> <?php tha_header_top(); ?> <div <?php hybrid_attr('branding'); ?> > <?php hybrid_site_title(); ?> <?php hybrid_site_description(); ?> </div><!-- #branding --> <?php hybrid_get_sidebar('header-right'); ?> <?php tha_header_bottom(); ?> </div>
/** * Hatch site title. * */ function hatch_site_title() { if (hybrid_get_setting('hatch_logo_url')) { $tag = is_front_page() ? 'h1' : 'div'; echo '<' . $tag . ' id="site-title">' . "\n"; echo '<a href="' . get_home_url() . '" title="' . get_bloginfo('name') . '" rel="Home">' . "\n"; echo '<img class="logo" src="' . esc_url(hybrid_get_setting('hatch_logo_url')) . '" alt="' . get_bloginfo('name') . '" />' . "\n"; echo '</a>' . "\n"; echo '</' . $tag . '>' . "\n"; } else { hybrid_site_title(); } }
<link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <!-- enables older IE browsers to accept HTML5 elements take out the script below if using modernizr or other similar solution =========================================================================--> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?> <?php wp_head(); ?> </head> <body class="<?php hybrid_body_class(); ?>"> <div id="main-wrap"> <div id="header"> <div id="branding"> <?php hybrid_site_title(); ?> <?php hybrid_site_description(); ?> </div><!-- #branding --> <?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?> </div><!-- #header --> <div id="main"> <div class="padder">
/** * Callback for the admin preview output on the "Appearance > Custom Header" screen. * * @since 1.0.0 * @access public * @return void */ function saga_custom_header_admin_preview() { ?> <div <?php hybrid_attr('body'); // Fake <body> class. ?> > <header <?php hybrid_attr('header'); ?> > <?php if (display_header_text()) { // If user chooses to display header text. ?> <div id="branding"> <?php hybrid_site_title(); ?> <?php hybrid_site_description(); ?> </div><!-- #branding --> <?php } // End check for header text. ?> </header><!-- #header --> <?php if (get_header_image() && !display_header_text()) { // If there's a header image but no header text. ?> <a href="<?php echo home_url(); ?> " title="<?php echo esc_attr(get_bloginfo('name')); ?> " rel="home"><img class="header-image" src="<?php header_image(); ?> " width="<?php echo get_custom_header()->width; ?> " height="<?php echo get_custom_header()->height; ?> " alt="" /></a> <?php } elseif (get_header_image()) { // If there's a header image. ?> <img class="header-image" src="<?php header_image(); ?> " width="<?php echo get_custom_header()->width; ?> " height="<?php echo get_custom_header()->height; ?> " alt="" /> <?php } // End check for header image. ?> </div><!-- Fake </body> close. --> <?php }
/** * Callback for the admin preview output on the "Appearance > Custom Header" screen. * * @since 1.0.0 * @access public * @return void */ function ravel_custom_header_admin_preview() { ?> <div <?php hybrid_attr('body'); // Fake <body> class. ?> > <div class="page-container"> <div class="wrap"> <header <?php hybrid_attr('header'); ?> > <div <?php hybrid_attr('branding'); ?> > <?php if (get_header_image()) { // If there's a header image. ?> <h1 <?php hybrid_attr('site-title'); ?> > <a href="<?php echo esc_url(home_url()); ?> "> <img class="header-image" src="<?php header_image(); ?> " width="<?php echo get_custom_header()->width; ?> " height="<?php echo get_custom_header()->height; ?> " alt="" /> </a> </h1> <?php } else { // If there's no header image. ?> <?php hybrid_site_title(); ?> <?php } // End header image check. ?> </div><!-- #branding --> <?php //endif; // End check for header text. ?> </header><!-- #header --> </div><!-- .wrap --> </div><!-- .page-container --> </div><!-- Fake </body> close. --> <?php }
/** * Site title. * * @since 1.0 */ function satu_site_title() { $avatar = get_theme_mod('satu_show_avatar', true); if (get_header_image()) { echo '<div class="site-logo">' . "\n"; echo '<a href="' . esc_url(get_home_url()) . '" title="' . esc_attr(get_bloginfo('name')) . '" rel="home">' . "\n"; echo '<img class="logo" src="' . esc_url(get_header_image()) . '" alt="' . esc_attr(get_bloginfo('name')) . '" />' . "\n"; echo '</a>' . "\n"; echo '</div>' . "\n"; } elseif ($avatar) { echo get_avatar(is_email(get_option('admin_email')), 100, 'mystery', esc_attr(get_bloginfo('name'))); } if (display_header_text()) { hybrid_site_title(); hybrid_site_description(); } }
/** * Oxygen site title. * */ function oxygen_site_title() { $tag = is_front_page() ? 'h1' : 'div'; if (get_header_image()) { echo '<' . $tag . ' id="site-title">' . "\n"; echo '<a href="' . get_home_url() . '" title="' . get_bloginfo('name') . '" rel="Home">' . "\n"; echo '<img class="logo" src="' . get_header_image() . '" alt="' . get_bloginfo('name') . '" />' . "\n"; echo '</a>' . "\n"; echo '</' . $tag . '>' . "\n"; } elseif (hybrid_get_setting('oxygen_logo_url')) { // check for legacy setting echo '<' . $tag . ' id="site-title">' . "\n"; echo '<a href="' . get_home_url() . '" title="' . get_bloginfo('name') . '" rel="Home">' . "\n"; echo '<img class="logo" src="' . esc_url(hybrid_get_setting('oxygen_logo_url')) . '" alt="' . get_bloginfo('name') . '" />' . "\n"; echo '</a>' . "\n"; echo '</' . $tag . '>' . "\n"; } else { hybrid_site_title(); } }
/** * Returns the title of the site. * @return string */ function convergence_site_title() { return hybrid_site_title(); }