Guest User

Header

a guest
Jan 24th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.47 KB | None | 0 0
  1. <?php
  2.     if ( !defined('ABSPATH') ){ die(); }
  3.    
  4.     global $avia_config;
  5.  
  6.     $style              = $avia_config['box_class'];
  7.     $responsive         = avia_get_option('responsive_active') != "disabled" ? "responsive" : "fixed_layout";
  8.     $blank              = isset($avia_config['template']) ? $avia_config['template'] : ""; 
  9.     $av_lightbox        = avia_get_option('lightbox_active') != "disabled" ? 'av-default-lightbox' : 'av-custom-lightbox';
  10.     $preloader          = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
  11.     $sidebar_styling    = avia_get_option('sidebar_styling');
  12.     $filterable_classes = avia_header_class_filter( avia_header_class_string() );
  13.  
  14.    
  15. ?><!DOCTYPE html>
  16. <html <?php language_attributes(); ?> class="<?php echo "html_{$style} ".$responsive." ".$preloader." ".$av_lightbox." ".$filterable_classes ?> ">
  17. <head>
  18. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  19. <?php
  20. /*
  21.  * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
  22.  * located in framework/php/function-set-avia-frontend.php
  23.  */
  24.  if (function_exists('avia_set_follow')) { echo avia_set_follow(); }
  25.  
  26. ?>
  27.  
  28.  
  29. <!-- mobile setting -->
  30. <?php
  31.  
  32. if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
  33. ?>
  34.  
  35.  
  36. <!-- Scripts/CSS and wp_head hook -->
  37. <?php
  38. /* Always have wp_head() just before the closing </head>
  39.  * tag of your theme, or you will break many plugins, which
  40.  * generally use this hook to add elements to <head> such
  41.  * as styles, scripts, and meta tags.
  42.  */
  43.  
  44. wp_head();
  45.  
  46. ?>
  47.  
  48. </head>
  49.  
  50.  
  51.  
  52.  
  53. <body id="top" <?php body_class($style." ".$avia_config['font_stack']." ".$blank." ".$sidebar_styling); avia_markup_helper(array('context' => 'body')); ?>>
  54.  
  55.     <?php
  56.        
  57.     if("av-preloader-active av-preloader-enabled" === $preloader)
  58.     {
  59.         echo avia_preload_screen();
  60.     }
  61.        
  62.     ?>
  63.  
  64.     <div id='wrap_all'>
  65.  
  66.     <?php
  67.     if(!$blank) //blank templates dont display header nor footer
  68.     {
  69.          //fetch the template file that holds the main menu, located in includes/helper-menu-main.php
  70.          get_template_part( 'includes/helper', 'main-menu' );
  71.  
  72.     } ?>
  73.        
  74.     <div id='main' class='all_colors' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'>
  75.  
  76.     <?php
  77.        
  78.         if(isset($avia_config['temp_logo_container'])) echo $avia_config['temp_logo_container'];
  79.         do_action('ava_after_main_container');
  80.        
  81.     ?>
  82. do_action('ava_after_main_menu');
Advertisement
Add Comment
Please, Sign In to add comment