Guest User

header.php

a guest
Apr 29th, 2016
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1. <!doctype html>
  2. <!--[if IE 7 ]> <html lang="en-gb" class="isie ie7 oldie no-js"> <![endif]-->
  3. <!--[if IE 8 ]> <html lang="en-gb" class="isie ie8 oldie no-js"> <![endif]-->
  4. <!--[if IE 9 ]> <html lang="en-gb" class="isie ie9 no-js"> <![endif]-->
  5. <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en-gb" class="no-js"> <!--<![endif]-->
  6. <head>
  7. <html <?php language_attributes(); ?>
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>" charset="<?php bloginfo('charset'); ?>" />
  11. <meta name="generator" content="WordPress <?php bloginfo('version'); ?>"/>
  12. <meta name="keywords" content="" />
  13. <meta name="description" content="" />
  14. <?php $wl_theme_options=get_option('guardian_options_pro'); ?>
  15. <?php if($wl_theme_options['upload_image_favicon']!=''){ ?>
  16. <link rel="shortcut icon" href="<?php echo $wl_theme_options['upload_image_favicon']; ?>" />
  17. <?php } ?>
  18. <?php wp_head(); ?>
  19. </head>
  20. <?php if($wl_theme_options['layout_type']=="off") { ?>
  21. <body style='background-image: url("<?php echo WL_TEMPLATE_DIR_URI; ?>/images/elements/<?php echo $wl_theme_options['back_image']; ?>.png");' >
  22. <?php } else { ?>
  23. <body <?php body_class(); ?>>
  24. <?php } ?>
  25.  
  26. <div <?php if($wl_theme_options['layout_selector'] == "wide") { echo "class='site_wrapper'"; } else { echo "class='wrapper_boxed'"; } ?> id="change_layout">
  27. <div id="topHeader" class="col-md-12">
  28. <div class="wrapper">
  29. <div class="top_nav">
  30. <div class="container">
  31. <div class="right">
  32. <ul> <?php if($wl_theme_options['contact_email']!=''){ ?>
  33. <li><a href="mailto:<?php echo $wl_theme_options['contact_email']; ?>"><i class="fa fa-envelope"></i> <?php echo $wl_theme_options['contact_email']; ?></a></li> <?php } ?>
  34. <?php if($wl_theme_options['contact_phone_no']!=''){ ?>
  35. <li><i class="fa fa-phone"></i> + <?php echo $wl_theme_options['contact_phone_no']; ?></li>
  36. <?php } ?>
  37. <?php if($wl_theme_options['header_section_social_media_enbled'] =='on'){
  38. if($wl_theme_options['facebook_link']!=''){ ?>
  39. <li><a href="<?php echo $wl_theme_options['facebook_link']; ?>"><i class="fa fa-facebook"></i></a></li>
  40. <?php } if($wl_theme_options['twitter_link']!=''){ ?>
  41. <li><a href="<?php echo $wl_theme_options['twitter_link']; ?>"><i class="fa fa-twitter"></i></a></li>
  42. <?php } if($wl_theme_options['google_plus']!=''){ ?>
  43. <li><a href="<?php echo $wl_theme_options['google_plus']; ?>"><i class="fa fa-google-plus"></i></a></li>
  44. <?php } if($wl_theme_options['linkedin_link']!=''){ ?>
  45. <li><a href="<?php echo $wl_theme_options['linkedin_link']; ?>"><i class="fa fa-linkedin"></i></a></li>
  46. <?php } if($wl_theme_options['flicker_link']!=''){ ?>
  47. <li><a href="<?php echo $wl_theme_options['flicker_link']; ?>"><i class="fa fa-flickr"></i></a></li>
  48. <?php } if($wl_theme_options['youtube_link']!=''){ ?>
  49. <li><a href="<?php echo $wl_theme_options['youtube_link']; ?>"><i class="fa fa-youtube"></i></a></li>
  50. <?php } if($wl_theme_options['rss_link']!=''){ ?>
  51. <li><a href="<?php echo $wl_theme_options['rss_link']; ?>"><i class="fa fa-rss"></i></a></li>
  52. <?php }
  53. } ?>
  54. </ul>
  55. </div><!-- end right social links -->
  56. </div>
  57. </div>
  58. </div>
  59. </div><!-- end top navigation -->
  60. <header id="header" data-spy="affix" data-offset-top="50">
  61. <div class="navbar navbar-inverse" role="banner">
  62. <div class="container">
  63. <div class="navbar-header col-md-4">
  64. <a class="navbar-brand" href="<?php echo esc_url(home_url( '/' )); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" id="logo">
  65. <?php if($wl_theme_options['upload_image_logo']!='')
  66. { ?>
  67. <img src="<?php echo esc_url($wl_theme_options['upload_image_logo']); ?>" style="height:<?php if($wl_theme_options['height']!='') { echo $wl_theme_options['height']; } else { "50"; } ?>px; width:<?php if($wl_theme_options['width']!='') { echo $wl_theme_options['width']; } else { "180"; } ?>px;" alt="<?php echo $wl_theme_options['upload_image_logo']; ?>" />
  68. <?php } else { echo get_bloginfo('name'); } ?>
  69. </a>
  70. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  71. <span class="sr-only">Menu</span>
  72. <span class="icon-bar"></span>
  73. <span class="icon-bar"></span>
  74. <span class="icon-bar"></span>
  75. </button>
  76. </div>
  77. <!-- Menu -->
  78. <div class="collapse navbar-collapse col-md-8">
  79. <?php
  80. wp_nav_menu( array(
  81. 'theme_location' => 'primary',
  82. 'container' => '',
  83. 'menu_class' => 'nav navbar-nav navbar-right',
  84. 'fallback_cb' => 'weblizar_fallback_page_menu',
  85. 'walker' => new wp_bootstrap_navwalker()
  86. )
  87. );
  88. ?>
  89. </div><!-- end menu -->
  90. </div>
  91. </div>
  92. </header>
  93. <div class="clearfix"></div>
Add Comment
Please, Sign In to add comment