Guest User

Byblos child theme header.php

a guest
Mar 8th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.88 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 avenue
  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.  
  18.         <?php wp_head(); ?>
  19.     </head>
  20.  
  21.     <body <?php body_class(); ?>>
  22.         <div id="page" class="hfeed site <?php echo is_front_page() ? 'byblos-frontpage' : ''; ?>">
  23.             <header id="masthead" class="site-header" role="banner">
  24.                 <div class="site-branding <?php echo of_get_option('sc_theme_skin'); ?>">
  25.                     <!--<div class="row ">-->
  26.                             <div class="col-xs-12 center">
  27.                                 <h2 class="site-title">
  28.                                     <a href="<?php echo esc_url(home_url('/')); ?>" rel="home">
  29.                                         <?php if (of_get_option('sc_logo_image') != '') : ?>
  30.                                         <img src="<?php echo of_get_option('sc_logo_image'); ?>" alt="" id="sc_logo"/>
  31.                                         <?php else : ?>
  32.                                         <?php bloginfo('name');?>
  33.                                         <?php endif; ?>                                        
  34.                                     </a>
  35.                                 </h2>
  36.                                 <?php if (of_get_option('sc_logo_image') == '') : ?>
  37.                                     <h3 class="site-description"><?php bloginfo('description'); ?></h3>
  38.                                 <?php endif; ?>
  39.                             </div>
  40.                            
  41.                             <div class="col-xs-12 menu-bar center bs_nopad">
  42.                                 <nav id="site-navigation" class="main-navigation" role="navigation">
  43.                                     <?php wp_nav_menu(array('theme_location' => 'primary')); ?>
  44.                                 </nav>
  45.                             </div>
  46.                             <div class="col-xs-12 search-bar center">
  47.                                 <!-- header right -->
  48.                                 <?php get_sidebar('header-right'); ?>
  49.                             </div>
  50.                             <div class="col-xs-12">
  51.                                 <?php sc_toolbar(); ?>
  52.                             </div>
  53.                     <!--</div>-->
  54.                 </div>
  55.                 <div class="site-branding-mobile <?php echo of_get_option('sc_theme_skin'); ?>">
  56.                     <div class="col-xs-2">
  57.                         <div id="tasty-mobile-toggle">
  58.                             <i class="fa fa-bars"></i>
  59.                             <?php wp_nav_menu(array('theme_location' => 'primary')); ?>
  60.                         </div>  
  61.  
  62.                                              
  63.                     </div>
  64.                     <div class="col-xs-10">
  65.                         <h2 class="site-title-mobile">
  66.                             <a href="<?php echo esc_url(home_url('/')); ?>" rel="home">
  67.                                 <?php if (of_get_option('sc_logo_image') != '') : ?>
  68.                                 <img src="<?php echo of_get_option('sc_logo_image'); ?>" alt="" id="sc_logo"/>
  69.                                 <?php else : ?>
  70.                                 <?php bloginfo('name');?>
  71.                                 <?php endif; ?>                                        
  72.                             </a>  
  73.                         </h2>
  74.                     </div>
  75.                 </div>
  76.             </header><!-- #masthead -->
Advertisement
Add Comment
Please, Sign In to add comment