Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Header for our theme.
- *
- * Displays all of the <head> section and everything up till <div id="main">
- *
- * @package Minimosity
- * @since Minimosity 1.0
- */
- ?><!DOCTYPE html>
- <html <?php language_attributes(); ?><?php get_template_part( 'partials/part', 'background');?>>
- <head>
- <meta charset="<?php bloginfo( 'charset' ); ?>" />
- <meta name="viewport" content="width=device-width">
- <script>(function(w){var dpr=((w.devicePixelRatio===undefined)?1:w.devicePixelRatio);if(!!w.navigator.standalone){var r=new XMLHttpRequest();r.open('GET','inc/retina-images.php?devicePixelRatio='+dpr,false);r.send()}else{document.cookie='devicePixelRatio='+dpr+'; path=/'}})(window)</script>
- <title><?php
- /*
- * Print the <title> tag based on what is being viewed.
- */
- global $page, $paged;
- wp_title( '|', true, 'right' );
- // Add the blog name.
- bloginfo( 'name' );
- // Add the blog description for the home/front page.
- $site_description = get_bloginfo( 'description', 'display' );
- if ( $site_description && ( is_home() || is_front_page() ) )
- echo " | $site_description";
- // Add a page number if necessary:
- if ( $paged >= 2 || $page >= 2 )
- echo ' | ' . sprintf( __( 'Page %s', 'minimosity' ), max( $paged, $page ) );
- ?></title>
- <link rel="profile" href="http://gmpg.org/xfn/11" />
- <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
- <!--[if lt IE 9]>
- <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
- <![endif]-->
- <!--[if (gte IE 6)&(lte IE 8)]>
- <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/selectivizr.min.js"></script>
- <![endif]-->
- <!-- Include jQuery -->
- <?php wp_enqueue_script('jquery'); ?>
- <?php wp_head(); ?>
- </head>
- <body <?php body_class(); ?>>
- <noscript><style id="devicePixelRatio" media="only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)">#devicePixelRatio{background-image:url("inc/retina-images.php?devicePixelRatio=2")}</style></noscript>
- <div id="page" class="hfeed site">
- <header id="utilities">
- <div id="top-banner"></div>
- <div id="inner-utilities">
- <div id="secondary-menu">
- <?php wp_nav_menu( array('theme_location' => 'utilities', 'depth' => 1, 'fallback_cb' => false, 'menu_class' => 'menu-utilities') ); ?>
- </div><!--#secondary-menu-->
- <div id="search">
- <?php get_search_form(); ?>
- </div><!--#search-->
- <div id="socials">
- <?php get_template_part( 'partials/part', 'socials');?>
- </div><!--#socials-->
- </div><!--#inner-utilities-->
- <div class="clear"></div>
- </header>
- <div id="wrapper">
- <?php do_action( 'before' ); ?>
- <header id="masthead" class="site-header" role="banner">
- <div id="branding">
- <div id="logo">
- <hgroup>
- <h1 class="site-title">
- <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
- <?php
- if ( of_get_option('mm_logo_uploader') ) {
- echo '<img src="' . of_get_option('mm_logo_uploader') . '">';
- } else {
- get_template_part('partials/part', 'demo-logo');
- }; ?>
- </a></h1>
- <!--<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>-->
- </hgroup>
- </div><!-- #logo -->
- <div id="top-ad">
- <?php
- $adsensecode = of_get_option('mm_top_ad_code');
- if ( of_get_option('mm_top_ad') AND strlen($adsensecode) > 0) {
- echo ( of_get_option('mm_top_ad_code') );
- }
- else {
- echo '<img src="' . get_template_directory_uri() . '/images/banner_468.png">';
- }; ?>
- </div><!--#top-ad-->
- <div class="clear"></div>
- </div><!--#branding-->
- <nav role="navigation" class="site-navigation main-navigation">
- <h1 class="assistive-text"><?php _e( 'Navigation', 'minimosity' ); ?></h1>
- <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'minimosity' ); ?>"><?php _e( 'Skip to content', 'minimosity' ); ?></a></div>
- <?php //wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
- <?php wp_nav_menu( array('theme_location' => 'primary') ); ?>
- <!-- Latest Revews Ticker -->
- <?php if (of_get_option('mm_rw_ticker')) echo get_template_part ('partials/part', 'rw-ticker') ;?>
- </nav>
- </header><!-- #masthead .site-header -->
- <!-- Custom Slider -->
- <?php if (of_get_option('mm_cslider') AND is_home()) echo get_template_part( 'partials/part', 'cslider' ) ;?>
- <!-- Big Featured Slider -->
- <?php if (of_get_option('mm_fslider') AND is_home() AND of_get_option('mm_fslider_size') == 'mm_big_fslider' ) {echo get_template_part( 'partials/part', 'fslider' ) ;}?>
- <!--Newsletter Toggle-->
- <?php if (is_home() AND of_get_option('mm_fslider_size') == 'mm_big_fslider' ) echo '<div class="home-toggle">' ?>
- <?php if (of_get_option('mm_toggle_display') AND is_home() AND of_get_option('mm_fslider_size') == 'mm_big_fslider') {echo get_template_part( 'partials/part', 'hometoggle' ) ;}?>
- <?php if (is_home() AND of_get_option('mm_fslider_size') == 'mm_big_fslider' ) echo '</div>' ?>
- <!-- Singular Big Featured Image -->
- <?php if (is_singular() AND has_post_thumbnail() AND of_get_option('mm_big_featured') == 'big_post') {echo get_template_part ( 'partials/part', 'singular' ) ;}?>
- <!-- 404 Image -->
- <?php if (is_404() AND of_get_option('mm_404_image') ) {echo get_template_part ( 'partials/part', '404-image' ) ;}?>
- <div class="clear"></div>
- <div id="main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement