Advertisement
Guest User

Untitled

a guest
Sep 13th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.18 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The header for our theme.
  4.  *
  5.  * Displays all of the <head> section and everything up till <div id="content">
  6.  *
  7.  * @package Moesia
  8.  */
  9. ?><!DOCTYPE html>
  10. <html <?php language_attributes(); ?>>
  11. <head>
  12. <meta charset="<?php bloginfo( 'charset' ); ?>">
  13. <meta name="viewport" content="width=device-width, initial-scale=1">
  14. <title><?php wp_title( '|', true, 'right' ); ?></title>
  15. <link rel="profile" href="http://gmpg.org/xfn/11">
  16. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  17. <?php if ( get_theme_mod('site_favicon') ) : ?>
  18.     <link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('site_favicon')); ?>" />
  19. <?php endif; ?>
  20.  
  21. <?php if ( get_theme_mod('apple_touch_144') ) : ?>
  22.     <link rel="apple-touch-icon" sizes="144x144" href="<?php echo esc_url(get_theme_mod('apple_touch_144')); ?>" />
  23. <?php endif; ?>
  24. <?php if ( get_theme_mod('apple_touch_114') ) : ?>
  25.     <link rel="apple-touch-icon" sizes="114x114" href="<?php echo esc_url(get_theme_mod('apple_touch_114')); ?>" />
  26. <?php endif; ?>
  27. <?php if ( get_theme_mod('apple_touch_72') ) : ?>
  28.     <link rel="apple-touch-icon" sizes="72x72" href="<?php echo esc_url(get_theme_mod('apple_touch_72')); ?>" />
  29. <?php endif; ?>
  30. <?php if ( get_theme_mod('apple_touch_57') ) : ?>
  31.     <link rel="apple-touch-icon" href="<?php echo esc_url(get_theme_mod('apple_touch_57')); ?>" />
  32. <?php endif; ?>
  33. <?php if ( is_page_template() ) : ?>
  34.     <script type="text/javascript" src="//maps.google.com/maps/api/js?sensor=false"></script>
  35. <?php endif; ?>
  36.  
  37. <?php wp_head(); ?>
  38. </head>
  39.  
  40. <body <?php body_class(); ?>>
  41. <div id="page" class="hfeed site">
  42.     <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'moesia' ); ?></a>
  43.  
  44.         <?php //Single page header image data
  45.             $himage  = get_post_meta( get_the_ID(), 'wpcf-header-image', true );
  46.             $htitle  = get_post_meta( get_the_ID(), 'wpcf-header-title', true );
  47.             $hlogo   = get_post_meta( get_the_ID(), 'wpcf-header-logo', true );
  48.             $htext   = get_post_meta( get_the_ID(), 'wpcf-header-text', true );
  49.             $hbutton = get_post_meta( get_the_ID(), 'wpcf-header-button-title', true );
  50.             $hlink   = get_post_meta( get_the_ID(), 'wpcf-header-button-link', true );
  51.         ?>
  52.        
  53.         <?php tha_header_before(); ?>
  54.         <?php if ( get_theme_mod('moesia_banner') == 1 && !is_front_page() && $himage == '') : ?>
  55.             <header id="masthead" class="site-header" role="banner">
  56.             <?php tha_header_top(); ?>
  57.         <?php elseif ($himage != '') : ?>
  58.             <header id="masthead" class="site-header has-banner" role="banner">
  59.                 <?php tha_header_top(); ?>
  60.                 <img class="header-image" src="<?php echo esc_url($himage); ?>">
  61.                 <div class="welcome-info">
  62.                     <?php if ( $hlogo ) : ?>
  63.                         <img class="welcome-logo wow bounceInDown" src="<?php echo esc_url($hlogo); ?>" />
  64.                     <?php elseif ( $htitle ) : ?>
  65.                         <div class="welcome-title wow bounceInDown"><?php echo esc_html($htitle); ?></div>
  66.                     <?php endif; ?>
  67.                     <?php if ( $htext ) : ?>
  68.                         <div class="welcome-desc wow bounceInRight" data-wow-delay="0.2s"><?php echo esc_html($htext); ?></div>
  69.                     <?php endif; ?>
  70.                     <?php if ($hbutton && $hlink) : ?>
  71.                         <a href="<?php echo esc_url($hlink); ?>" class="welcome-button wow bounceInUp" data-wow-delay="0.3s"><?php echo esc_html($hbutton); ?></a>
  72.                     <?php endif; ?>
  73.                 </div>         
  74.         <?php else : ?>
  75.             <header id="masthead" class="site-header has-rev" role="banner">
  76.             <?php tha_header_top(); ?>
  77.             <?php $alias = get_theme_mod('rev_alias'); ?>
  78.             <?php if ($alias && function_exists('crellySlider')) : ?>
  79.             <?php
  80.             if( is_page( 3003 ) ){
  81.               crellySlider('home1_es');
  82.             }
  83.  
  84.             if( is_page( 4927 ) ){
  85.               crellySlider('home1_en');
  86.             }
  87.             ?>
  88.             <?php endif; ?>    
  89.         <?php endif; ?>
  90.         <?php tha_header_bottom(); ?>
  91.         </header><!-- #masthead -->
  92.         <?php tha_header_after(); ?>
  93.  
  94.     <?php if ( !is_page_template('page_front-page.php') || ( 'posts' == get_option( 'show_on_front' ) ) ) : ?>
  95.         <?php $container = "container"; ?>
  96.     <?php else : ?>
  97.         <?php $container = ""; ?>
  98.     <?php endif; ?>
  99.     <?php tha_content_before(); ?>
  100.     <div id="content" class="site-content clearfix <?php echo $container; ?>">
  101.         <?php tha_content_top(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement