header.php 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php ?>
  2. <!DOCTYPE html>
  3. <!--[if IE 8 ]> <html class="ie ie8" <?php language_attributes(); ?>> <![endif]-->
  4. <!--[if gt IE 8]><!--> <html <?php language_attributes(); ?>> <!--<![endif]-->
  5. <head>
  6. <meta charset="<?php bloginfo( 'charset' ); ?>">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <title><?php wp_title(); ?></title>
  9. <link rel="profile" href="http://gmpg.org/xfn/11">
  10. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  11. <?php wp_head(); ?>
  12. </head>
  13. <body <?php body_class(); ?>>
  14. <div id="page" class="hfeed container">
  15. <?php do_action( 'foto_before' ); ?>
  16. <header id="masthead" class="site-header clearfix" role="banner">
  17. <div class="site-branding col-8">
  18. <?php if( of_get_option('foto_custom_logo') ) :
  19. $logotag = (is_home() || is_front_page())? 'h1':'div';?>
  20. <<?php echo $logotag; ?> class="site-logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img alt="<?php bloginfo('name'); ?>" src="<?php echo esc_url( of_get_option('foto_custom_logo') ); ?>"><span><?php bloginfo('name'); ?></span></a></<?php echo $logotag; ?>>
  21. <?php
  22. else :
  23. $titletag = (is_home() || is_front_page())? 'h1':'div'; // only display h1 tag on home page, SEO reason ?>
  24. <<?php echo $titletag; ?> class="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></<?php echo $titletag; ?>>
  25. <div class="site-tagline"><?php bloginfo( 'description' ); ?></div>
  26. <?php endif; ?>
  27. </div><!-- end .site-branding -->
  28. <div class="header-right-area col-16 last">
  29. <div class="site-social col-10">
  30. <?php if( of_get_option('foto_rss_custom') ) { ?>
  31. <span class="feed"><a href="<?php echo esc_url( of_get_option('foto_rss_custom') ); ?>" title="<?php esc_attr_e('Subscribe our rss feed', 'foto'); ?>"><?php _e('Rss Feed', 'foto'); ?></a></span>
  32. <?php } else { ?>
  33. <span class="feed"><a href="<?php echo get_feed_link( 'rss2' ); ?>" title="<?php esc_attr_e('Subscribe our rss feed', 'foto'); ?>"><?php _e('Rss Feed', 'foto'); ?></a></span>
  34. <?php }
  35. if( of_get_option('foto_gplus_username') ) { ?>
  36. <span class="gplus"><a href="<?php echo esc_url( of_get_option('foto_gplus_username') ); ?>" title="<?php esc_attr_e('Add me to your circle', 'foto'); ?>"><?php _e('Google Plus', 'foto'); ?></a></span>
  37. <?php } if( of_get_option('foto_fb_username') ) { ?>
  38. <span class="fb"><a href="<?php echo esc_url( of_get_option('foto_fb_username') ); ?>" title="<?php esc_attr_e('Add me as your friend', 'foto'); ?>"><?php _e('Facebook', 'foto'); ?></a></span>
  39. <?php } if( of_get_option('foto_twitter_username') ) { ?>
  40. <span class="tw"><a href="<?php echo esc_url( of_get_option('foto_twitter_username') ); ?>" title="<?php esc_attr_e('Follow Me', 'foto'); ?>"><?php _e('Twitter', 'foto'); ?></a></span>
  41. <?php } ?>
  42. </div><!-- end .site-social -->
  43. <?php get_search_form(); ?>
  44. </div><!-- end .header-right-area -->
  45. <?php do_action( 'foto_header' ); ?>
  46. </header><!-- #masthead .site-header -->
  47. <?php do_action( 'foto_after_header' ); ?>
  48. <section class="header-text">
  49. <?php
  50. $tag = ( is_home() || is_front_page() )? 'p':'h1';
  51. $class = ( is_singular() )? 'entry-title':'page-title';
  52. ?>
  53. <<?php echo $tag; ?> class="<?php echo $class; ?> col-18">
  54. <?php foto_page_title(); ?>
  55. </<?php echo $tag; ?>>
  56. </section><!-- end .header-text -->
  57. <?php do_action( 'foto_before_main' ); ?>
  58. <div id="main" class="main-content clearfix">
  59. <?php do_action( 'foto_main' ); ?>