Advertisement
Mihalytch

Untitled

Oct 10th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.10 KB | None | 0 0
  1. if ( ! function_exists( 'catcheverest_header_left' ) ) :
  2. /**
  3.  * Shows Header Left content
  4.  *
  5.  * Shows the site logo, title and description
  6.  * @uses catcheverest_header action to add it in the header
  7.  */
  8. function catcheverest_header_left() {
  9.     global $_wp_default_headers;
  10.     ?>
  11.     <div id="header-left">
  12.  
  13.     <?php if (file_exists(get_template_directory() . '/images/logo.png')): ?>
  14.         <h1 id="site-logo">
  15.             <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
  16.                 <img src="<?php echo get_template_directory_uri();?>/images/logo.png" alt="" />
  17.             </a>
  18.         </h1>
  19.         <div id="hgroup" class="with-logo">
  20.     <?php else: ?>
  21.         <?php echo '<div id="hgroup">'; ?>
  22.     <?php endif; ?>
  23.             <h1 id="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  24.             <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
  25.         </div><!-- #hgroup -->
  26.     </div><!-- #header-left -->
  27. <?php
  28. }
  29. endif; // catcheverest_header_left
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement