Advertisement
Guest User

BoldR Lite WP Theme - Menu ao lado header.php

a guest
Feb 11th, 2014
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.02 KB | None | 0 0
  1. <?php
  2. /**
  3.  *
  4.  * BoldR Lite WordPress Theme by Iceable Themes | http://www.iceablethemes.com
  5.  *
  6.  * Copyright 2013 Mathieu Sarrasin - Iceable Media
  7.  *
  8.  * Header Template
  9.  *
  10.  */
  11. ?><!DOCTYPE html>
  12. <!--[if lt IE 7 ]><html class="ie ie6" <?php language_attributes(); ?>> <![endif]-->
  13. <!--[if IE 7 ]><html class="ie ie7" <?php language_attributes(); ?>> <![endif]-->
  14. <!--[if IE 8 ]><html class="ie ie8" <?php language_attributes(); ?>> <![endif]-->
  15. <!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->
  16. <head>
  17. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  18. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  19. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  20. <title><?php wp_title( '|', true, 'right' ); ?></title>
  21. <link rel="profile" href="http://gmpg.org/xfn/11" />
  22. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  23. <?php $favicon = boldr_get_option('favicon');
  24. if ($favicon): ?><link rel="shortcut icon" href="<?php echo esc_url($favicon); ?>" /><?php endif; ?>
  25. <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
  26. <!--[if lt IE 9]>
  27. <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
  28. <![endif]-->
  29. <?php wp_head(); ?>
  30. </head>
  31. <body <?php body_class(); ?>>
  32.  
  33.     <div id="main-wrap">
  34.         <div id="header">
  35.             <div class="container">
  36.                 <div id="logo">
  37.                 <a href="<?php echo esc_url( home_url() ); ?>">
  38.                
  39.                 <?php $logo_url = boldr_get_option('logo');
  40.             if ( boldr_get_option('header_title') == 'Display Title' || $logo_url == "" ): ?>
  41.                 <span class="site-title"><?php bloginfo('name') ?></span>
  42.             <?php else: ?>
  43.                 <img src="http://www.amagiadoslivros.com.br/wp-content/uploads/2014/02/ACEDE-PNG-CETO-hue-3.png" alt="<?php bloginfo('name') ?>">
  44.             <?php endif; ?>
  45.                
  46.                 </a>
  47.                 </div>
  48.                
  49.         <div id="navbar" class="container">
  50.             <div class="menu-container">
  51.             <?php wp_nav_menu( array( 'theme_location' => 'primary', 'items_wrap' => '<ul id="%1$s" class="%2$s sf-menu">%3$s</ul>', ) ); ?>
  52.             <?php boldr_dropdown_nav_menu(); ?>
  53.             </div>
  54.         </div><!-- End navbar -->
  55.                
  56.                 <?php if ( "On" == boldr_get_option('header_tagline') ): ?>
  57.                 <div id="tagline">
  58.                 <?php bloginfo('description'); ?>
  59.                 </div>
  60.                 <?php endif; ?>
  61.                
  62.             </div>
  63.         </div><!-- End header -->
  64.    
  65.  
  66.        
  67. <?php   if ( get_custom_header()->url ) :
  68.             if ( ( is_front_page() && boldr_get_option('home_header_image') != 'Off' )
  69.                 || ( is_page() && !is_front_page() && boldr_get_option('pages_header_image') != 'Off' )
  70.                 || ( is_single() && boldr_get_option('single_header_image') != 'Off' )
  71.                 || ( !is_front_page() && !is_singular() && boldr_get_option('blog_header_image') != 'Off' )
  72.                 || ( is_404() ) ):
  73. ?>
  74.  
  75.     <div id="header-image" class="container">
  76.         <img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />
  77.     </div>
  78.  
  79. <?php   endif;
  80.     endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement