Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.61 KB | None | 0 0
  1. <?php
  2. if ( ! defined('ABSPATH') ){ die(); }
  3.  
  4. global $avia_config;
  5.  
  6. $lightbox_option = avia_get_option( 'lightbox_active' );
  7. $avia_config['use_standard_lightbox'] = empty( $lightbox_option ) || ( 'lightbox_active' == $lightbox_option ) ? 'lightbox_active' : 'disabled';
  8. /**
  9. * Allow to overwrite the option setting for using the standard lightbox
  10. * Make sure to return 'disabled' to deactivate the standard lightbox - all checks are done against this string
  11. *
  12. * @added_by Günter
  13. * @since 4.2.6
  14. * @param string $use_standard_lightbox 'lightbox_active' | 'disabled'
  15. * @return string 'lightbox_active' | 'disabled'
  16. */
  17. $avia_config['use_standard_lightbox'] = apply_filters( 'avf_use_standard_lightbox', $avia_config['use_standard_lightbox'] );
  18.  
  19. $style = $avia_config['box_class'];
  20. $responsive = avia_get_option('responsive_active') != "disabled" ? "responsive" : "fixed_layout";
  21. $blank = isset($avia_config['template']) ? $avia_config['template'] : "";
  22. $av_lightbox = $avia_config['use_standard_lightbox'] != "disabled" ? 'av-default-lightbox' : 'av-custom-lightbox';
  23. $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
  24. $sidebar_styling = avia_get_option('sidebar_styling');
  25. $filterable_classes = avia_header_class_filter( avia_header_class_string() );
  26. $av_classes_manually = "av-no-preview"; /*required for live previews*/
  27. $av_classes_manually .= avia_is_burger_menu() ? " html_burger_menu_active" : " html_text_menu_active";
  28.  
  29. /**
  30. * @since 4.2.3 we support columns in rtl order (before they were ltr only). To be backward comp. with old sites use this filter.
  31. */
  32. $rtl_support = 'yes' == apply_filters( 'avf_rtl_column_support', 'yes' ) ? ' rtl_columns ' : '';
  33.  
  34. ?><!DOCTYPE html>
  35. <html <?php language_attributes(); ?> class="<?php echo "html_{$style} ".$responsive." ".$preloader." ".$av_lightbox." ".$filterable_classes." ".$av_classes_manually ?> ">
  36. <head>
  37. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  38. <?php
  39. /*
  40. * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
  41. * located in framework/php/function-set-avia-frontend.php
  42. */
  43. if (function_exists('avia_set_follow')) { echo avia_set_follow(); }
  44.  
  45. ?>
  46.  
  47.  
  48. <!-- mobile setting -->
  49. <?php
  50.  
  51. if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
  52. ?>
  53.  
  54.  
  55. <!-- Scripts/CSS and wp_head hook -->
  56. <?php
  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. </head>
  68.  
  69.  
  70.  
  71.  
  72. <body id="top" <?php body_class( $rtl_support . $style." ".$avia_config['font_stack']." ".$blank." ".$sidebar_styling); avia_markup_helper(array('context' => 'body')); ?>>
  73.  
  74. <?php
  75.  
  76. if("av-preloader-active av-preloader-enabled" === $preloader)
  77. {
  78. echo avia_preload_screen();
  79. }
  80.  
  81. ?>
  82.  
  83. <div id='wrap_all'>
  84.  
  85. <?php
  86. if(!$blank) //blank templates dont display header nor footer
  87. {
  88. //fetch the template file that holds the main menu, located in includes/helper-menu-main.php
  89. get_template_part( 'includes/helper', 'main-menu' );
  90.  
  91. } ?>
  92.  
  93. <div id='main' class='all_colors' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'>
  94.  
  95. <?php
  96.  
  97. if(isset($avia_config['temp_logo_container'])) echo $avia_config['temp_logo_container'];
  98. do_action('ava_after_main_container');
  99.  
  100. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement