SHARE
TWEET

header code

a guest Sep 12th, 2017 135 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 sparkling
  8.  */
  9. ?><!doctype html>
  10.     <!--[if !IE]>
  11.     <html class="no-js non-ie" <?php language_attributes(); ?>> <![endif]-->
  12.     <!--[if IE 7 ]>
  13.     <html class="no-js ie7" <?php language_attributes(); ?>> <![endif]-->
  14.     <!--[if IE 8 ]>
  15.     <html class="no-js ie8" <?php language_attributes(); ?>> <![endif]-->
  16.     <!--[if IE 9 ]>
  17.     <html class="no-js ie9" <?php language_attributes(); ?>> <![endif]-->
  18.     <!--[if gt IE 9]><!-->
  19. <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
  20. <head>
  21. <meta name="google-site-verification" content="Vh6E5Rm9Pl4V9Nv_NG1iVxCcPw4h6MuIWrSYQjbOlZE" />
  22. <meta charset="<?php bloginfo( 'charset' ); ?>">
  23. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  24. <meta name="viewport" content="width=device-width, initial-scale=1">
  25. <link rel="profile" href="http://gmpg.org/xfn/11">
  26. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  27.  
  28. <script>
  29.  
  30. if(navigator.userAgent.indexOf("Speed Insights") == -1) {
  31.  
  32.   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  33.   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  34.   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  35.   })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  36.  
  37.   ga('create', 'UA-81895591-1', 'auto');
  38.   ga('set', 'anonymizeIp', true);      
  39.   ga('send', 'pageview');
  40.  
  41. }
  42. </script>
  43.  
  44. <?php wp_head();
  45. global $region;
  46. ?>
  47.  
  48. </head>
  49.  
  50. <body <?php body_class(); ?>>
  51. <div id="page" class="hfeed site">
  52.  
  53.     <header id="masthead" class="site-header" role="banner">
  54.         <nav class="navbar navbar-default" role="navigation">
  55.             <div class="container">
  56.                 <div class="row">
  57.                     <div class="site-navigation-inner col-sm-12">
  58.                 <div class="navbar-header">
  59.                     <button type="button" class="btn navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
  60.                         <span class="sr-only">Toggle navigation</span>
  61.                         <span class="icon-bar"></span>
  62.                         <span class="icon-bar"></span>
  63.                         <span class="icon-bar"></span>
  64.                     </button>
  65.  
  66.                     <div id="logo1">
  67.                         <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>"  height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="<?php bloginfo( 'name' ); ?>"/></a>
  68.                     </div><!-- end of #logo -->
  69.  
  70.                     <div id="logo2" style="float: left;">
  71.                         <span class="site-name"><a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
  72.                     </div><!-- end of #logo -->
  73.  
  74.                 </div>
  75.                     <?php wp_nav_menu(array(
  76.                         'menu'              => $region,
  77.                         'theme_location'    => 'primary',
  78.                         'depth'             => 3,
  79.                         'container'         => 'div',
  80.                         'container_class'   => 'collapse navbar-collapse navbar-ex1-collapse',
  81.                         'menu_class'        => 'nav navbar-nav',
  82.                         'fallback_cb'       => 'wp_bootstrap_navwalker::fallback',
  83.                         'walker'            => new wp_bootstrap_navwalker()
  84.                       )); ?>
  85.                    <?php echo do_shortcode("[responsive_menu_pro menu_to_use='$region']"); ?>
  86.                     </div>
  87.             </div>
  88.           </div>
  89.         </nav><!-- .site-navigation -->
  90.     </header><!-- #masthead -->
  91.  
  92.     <div id="content" class="site-content">
  93.  
  94.         <div class="top-section">
  95.             <?php /*?><?php echo do_shortcode( '[advps-slideshow optset="1"]' ); ?><?php */?><?php benelux_featured_slider(); ?>
  96.             <?php sparkling_call_for_action(); ?>
  97.         </div>
  98.  
  99.         <div class="container main-content-area">
  100.             <div class="row">
  101.                 <div class="main-content-inner <?php echo sparkling_main_content_bootstrap_classes(); ?> <?php echo of_get_option( 'site_layout' ); ?>">
  102.  
  103.   <!-- breadcrumbs: start -->
  104. <?php if ( function_exists('yoast_breadcrumb') ) {
  105.     $opt = get_option("wpseo_internallinks");
  106.     $sep = ( isset($opt['breadcrumbs-sep']) && $opt['breadcrumbs-sep'] != '' ) ? $opt['breadcrumbs-sep'] : 'ยป';
  107.     $breadcrumbs = yoast_breadcrumb('','',false);
  108.     $linksArr = explode($sep, $breadcrumbs);
  109.     array_pop($linksArr);
  110.     echo '<p id="breadcrumbs">'.implode($sep,$linksArr).'</p>';
  111. } ?>
  112. <!-- breadcrumbs: end -->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top