Advertisement
Guest User

Untitled

a guest
May 26th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying theme header
  4. *
  5. * Parts: Top bar, Logo, Navigation
  6. */
  7.  
  8. ?><!DOCTYPE html>
  9. <html <?php language_attributes(); ?>>
  10.  
  11. <head>
  12.  
  13. <meta charset="<?php bloginfo('charset'); ?>" />
  14. <meta http-equiv="x-ua-compatible" content="ie=edge" />
  15. <meta name="viewport" content="width=device-width, initial-scale=1" />
  16. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  17. <link rel="profile" href="http://gmpg.org/xfn/11" />
  18.  
  19. <?php wp_head(); ?>
  20.  
  21. </head>
  22.  
  23. <body <?php body_class(); ?>>
  24.  
  25. <div class="main-wrap">
  26.  
  27. <?php if (!Bunyad::options()->header_layout): // Default header ?>
  28.  
  29. <header id="main-head" class="main-head">
  30.  
  31. <?php get_template_part('partials/header/top-bar'); ?>
  32.  
  33. <div class="wrap">
  34.  
  35. <div class="title">
  36.  
  37. <a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home">
  38.  
  39. <?php if (Bunyad::options()->image_logo): // custom logo ?>
  40.  
  41. <?php Bunyad::get('helpers')->mobile_logo(); ?>
  42.  
  43. <img <?php
  44. /**
  45. * Get escaped attributes and add optionally add srcset for retina
  46. */
  47. Bunyad::markup()->attribs('image-logo', array(
  48. 'src' => Bunyad::options()->image_logo,
  49. 'class' => 'logo-image',
  50. 'alt' => get_bloginfo('name', 'display'),
  51. 'srcset' => array(Bunyad::options()->image_logo => '', Bunyad::options()->image_logo_2x => '2x')
  52. )); ?> />
  53.  
  54. <?php else: ?>
  55.  
  56. <span class="text"><?php echo esc_html(get_bloginfo('name', 'display')); ?></span>
  57.  
  58. <?php endif; ?>
  59.  
  60. </a>
  61. <span class="description"><?php echo esc_html(get_bloginfo('description', 'display')); ?></span>
  62. </div>
  63.  
  64. </div>
  65.  
  66. </header> <!-- .main-head -->
  67.  
  68. <?php else: ?>
  69.  
  70. <?php get_template_part('partials/header/layout-' . Bunyad::options()->header_layout); ?>
  71.  
  72. <?php endif; ?>
  73.  
  74. <?php do_action('bunyad_pre_main_content'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement