<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> </header><!-- #header -->
<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">
/** * 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(); } }
/** * 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 }
/** * Returns the description of the site. * @return string */ function convergence_site_description() { return hybrid_site_description(); }