Advertisement
Guest User

Untitled

a guest
May 6th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. <?php
  2. global $avia_config;
  3.  
  4. $style = $avia_config['box_class'];
  5. $responsive = avia_get_option('responsive_layout','responsive');
  6. ?>
  7.  
  8. <!DOCTYPE html>
  9. <html <?php language_attributes(); ?> class="<?php echo " html_$style ".$responsive;?> ">
  10. <head>
  11. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  12. <?php
  13.  
  14. /*
  15. * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
  16. * located in framework/php/function-set-avia-frontend.php
  17. */
  18. if (function_exists('avia_set_follow') && empty($avia_config['deactivate_seo'])) { echo avia_set_follow(); }
  19.  
  20.  
  21. /*
  22. * outputs a favicon if defined
  23. */
  24. if (function_exists('avia_favicon')) { echo avia_favicon(avia_get_option('favicon')); }
  25.  
  26.  
  27. echo "\n\n\n<!-- page title, displayed in your browser bar -->\n";
  28.  
  29. if(!empty($avia_config['deactivate_seo']))
  30. {
  31. $avia_page_title = wp_title('', false);
  32. }
  33. else
  34. {
  35. $avia_page_title = get_bloginfo('name') . ' | ' . (is_home() ? get_bloginfo('description') : wp_title('', false));
  36. }
  37.  
  38. echo "<title>$avia_page_title</title>";
  39. ?>
  40.  
  41.  
  42.  
  43. <!-- add feeds, pingback and stuff-->
  44. <link rel="profile" href="http://gmpg.org/xfn/11" />
  45. <link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> RSS2 Feed" href="<?php avia_option('feedburner',get_bloginfo('rss2_url')); ?>" />
  46. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  47.  
  48.  
  49. <!-- mobile setting -->
  50. <?php
  51. if($responsive === 'responsive') echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
  52. ?>
  53.  
  54.  
  55. <?php
  56.  
  57. /* Always have wp_head() just before the closing </head>
  58. * tag of your theme, or you will break many plugins, which
  59. * generally use this hook to add elements to <head> such
  60. * as styles, scripts, and meta tags.
  61. */
  62.  
  63. wp_head();
  64. ?>
  65.  
  66.  
  67.  
  68.  
  69. </head>
  70.  
  71.  
  72.  
  73. <?php
  74. /*
  75. * prepare big slideshow if available
  76. * If we are displaying a dynamic template the slideshow might already be set
  77. * therefore we dont need to call it here
  78. */
  79.  
  80. if(!avia_is_dynamic_template(avia_get_the_ID()))
  81. {
  82. if(isset($post))
  83. {
  84. $slider = new avia_slideshow(avia_get_the_ID());
  85. $slider->customClass('stretch_full');
  86.  
  87. $avia_config['slide_output'] = $slider->display_big();
  88. }
  89. }
  90. else
  91. {
  92. $style .= " dynamic-title-".$avia_config['dynamic_title'];
  93. }
  94.  
  95.  
  96. ?>
  97.  
  98.  
  99. <body id="top" <?php body_class($style." ".$avia_config['font_stack']); ?>>
  100.  
  101. <?php
  102.  
  103. /*
  104. * display the themes social media icons, defined in the wordpress backend
  105. * the avia_social_media_icons function is located in includes/helper-social-media-php
  106. */
  107. $args = array('outside'=>'ul', 'inside'=>'li', 'append' => '');
  108. avia_social_media_icons($args);
  109.  
  110. ?>
  111.  
  112. <div id='wrap_all'>
  113.  
  114. <!-- ####### HEAD CONTAINER ####### -->
  115. <div id='header'>
  116.  
  117. <div class='container_wrap container_wrap_logo header_color <?php avia_is_dark_bg('header_color'); ?>'>
  118.  
  119. <div class='container' id='logo_container'>
  120.  
  121. <?php
  122. /*
  123. * display the theme logo by checking if the default logo was overwritten in the backend.
  124. * the function is located at framework/php/function-set-avia-frontend-functions.php in case you need to edit the output
  125. */
  126. echo avia_logo(AVIA_BASE_URL.'images/layout/logo.png');
  127.  
  128. /*
  129. * display the main navigation menu
  130. * check if a description for submenu items was added and change the menu class accordingly
  131. * modify the output in your wordpress admin backend at appearance->menus
  132. */
  133.  
  134. /*
  135. * Hook that can be used for plugins and theme extensions like the wpml language selector
  136. */
  137. do_action('avia_meta_header');
  138.  
  139. echo "<div class='header_meta'>";
  140.  
  141. if(avia_woocommerce_enabled()) echo avia_woocommerce_cart_dropdown();
  142.  
  143. /*
  144. * Display the search form
  145. */
  146.  
  147. if(!avia_woocommerce_enabled() || avia_get_option('header_search') != 'product')
  148. {
  149. get_search_form();
  150. }
  151. else
  152. {
  153. get_product_search_form();
  154. }
  155.  
  156. echo "</div>";
  157.  
  158. //display the small submenu
  159. echo "<div class='sub_menu'>";
  160. $args = array('theme_location'=>'avia2', 'fallback_cb' => '', 'container'=>'');
  161. if(avia_woocommerce_enabled()) $args['fallback_cb'] ='avia_shop_nav';
  162. wp_nav_menu($args);
  163. echo "</div>";
  164.  
  165. echo "<div class='main_menu' data-selectname='".__('Select a page','avia_framework')."'>";
  166. $args = array('theme_location'=>'avia', 'fallback_cb' => 'avia_fallback_menu', 'walker' => new avia_responsive_mega_menu());
  167. wp_nav_menu($args);
  168.  
  169.  
  170. echo "</div>";
  171.  
  172. ?>
  173.  
  174. </div>
  175.  
  176. </div><!-- end container_wrap-->
  177.  
  178. <!-- ####### END HEAD CONTAINER ####### -->
  179. </div>
  180.  
  181.  
  182. <?php
  183. //display slideshow big if one is available
  184. if(!empty($avia_config['slide_output']))
  185. {
  186. if(!empty($avia_config['slide_output_before'])) echo $avia_config['slide_output_before'];
  187.  
  188. echo "<!-- ####### SLIDESHOW CONTAINER ####### -->";
  189. echo "<div id='slideshow_big' class='slideshow_color container_wrap ".avia_is_dark_bg('slideshow_color', true)."'>";
  190. echo "<div class='container slideshow_big_container'>".$avia_config['slide_output']."</div></div>";
  191. }
  192. ?>
  193.  
  194.  
  195.  
  196.  
  197. <!-- ####### MAIN CONTAINER ####### -->
  198. <div id='main'>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement