Advertisement
Guest User

header

a guest
Aug 13th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. <?php
  2. /**
  3. * Permatex
  4. * (c) Web factory Ltd, 2013
  5. */
  6. ?>
  7. <!DOCTYPE html>
  8. <!--[if lt IE 7 ]><html class="ie ie6" <?php language_attributes(); ?>> <![endif]-->
  9. <!--[if IE 7 ]><html class="ie ie7" <?php language_attributes(); ?>> <![endif]-->
  10. <!--[if IE 8 ]><html class="ie ie8" <?php language_attributes(); ?>> <![endif]-->
  11. <!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->
  12. <head>
  13. <meta charset="<?php bloginfo('charset'); ?>" />
  14. <title><?php wf_theme_title(); ?></title>
  15. <meta name="description" content="<?php wf_theme_description(); ?>" />
  16. <meta name="keywords" content="<?php wf_theme_keywords(); ?>" />
  17. <meta name="author" content="<?php wf_theme_option('meta_author'); ?>" />
  18. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  19. <link rel="shortcut icon" href="<?php wf_theme_option('favicon'); ?>">
  20. <!--[if lt IE 9]>
  21. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  22. <![endif]-->
  23. <?php
  24. wp_head();
  25. ?>
  26. </head>
  27. <?php
  28. echo '<body ';
  29. body_class();
  30. echo '>';
  31.  
  32. if (!is_front_page()) {
  33. ?>
  34. <header id="top">
  35. <div class="container">
  36. <div class="row">
  37. <div class="span12">
  38. <h1 id="logo"><a href="<?php echo home_url(); ?>">
  39. <?php
  40. if (wf_theme_get_option('logo_icon')) {
  41. ?>
  42. <span class="logo-fontcon <?php wf_theme_option('logo_icon'); ?>"></span>
  43. <?php
  44. }
  45. if (wf_theme_get_option('logo')) {
  46. ?>
  47. <img src="<?php wf_theme_option('logo'); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>"></a>
  48. <?php
  49. }
  50. ?>
  51. </h1>
  52. <div id="navigation">
  53. <?php
  54. global $primary_menu_options;
  55. $menu = wp_nav_menu($primary_menu_options);
  56. echo $menu;
  57.  
  58. if ($menu) {
  59. ?>
  60. <select id="primary_menu_mobile" class="menu_mobile hidden-desktop hidden-tablet">
  61. <option value="">- main menu -</option>
  62. </select>
  63. <?php
  64. } // if $menu
  65. ?>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </header>
  71. <?php
  72. } else {
  73. ?>
  74. <header id="top">
  75. <div class="container">
  76. <div class="row">
  77. <div class="span12">
  78. <h1 id="logo"><a href="<?php echo home_url(); ?>">
  79. <?php
  80. if (wf_theme_get_option('logo_icon')) {
  81. ?>
  82. <span class="logo-fontcon <?php wf_theme_option('logo_icon'); ?>"></span>
  83. <?php
  84. }
  85. if (wf_theme_get_option('logo')) {
  86. ?>
  87. <img src="<?php wf_theme_option('logo'); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>"></a>
  88. <?php
  89. }
  90. ?>
  91. </h1>
  92. <div id="navigation">
  93. <?php
  94. global $front_page_menu_options;
  95. $menu = wp_nav_menu($front_page_menu_options);
  96. echo $menu;
  97.  
  98. if ($menu) {
  99. ?>
  100. <select id="primary_menu_mobile" class="menu_mobile hidden-desktop hidden-tablet">
  101. <option value="">- main menu -</option>
  102. </select>
  103. <?php
  104. } // if $menu
  105. ?>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </header>
  111. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement