140 lines
5.4 KiB
PHP
140 lines
5.4 KiB
PHP
<?php
|
|
if ( ! defined('ABSPATH') ){ die(); }
|
|
|
|
global $avia_config;
|
|
|
|
$lightbox_option = avia_get_option( 'lightbox_active' );
|
|
$avia_config['use_standard_lightbox'] = empty( $lightbox_option ) || ( 'lightbox_active' == $lightbox_option ) ? 'lightbox_active' : 'disabled';
|
|
/**
|
|
* Allow to overwrite the option setting for using the standard lightbox
|
|
* Make sure to return 'disabled' to deactivate the standard lightbox - all checks are done against this string
|
|
*
|
|
* @added_by Günter
|
|
* @since 4.2.6
|
|
* @param string $use_standard_lightbox 'lightbox_active' | 'disabled'
|
|
* @return string 'lightbox_active' | 'disabled'
|
|
*/
|
|
$avia_config['use_standard_lightbox'] = apply_filters( 'avf_use_standard_lightbox', $avia_config['use_standard_lightbox'] );
|
|
|
|
$style = $avia_config['box_class'];
|
|
$responsive = avia_get_option('responsive_active') != "disabled" ? "responsive" : "fixed_layout";
|
|
$blank = isset($avia_config['template']) ? $avia_config['template'] : "";
|
|
$av_lightbox = $avia_config['use_standard_lightbox'] != "disabled" ? 'av-default-lightbox' : 'av-custom-lightbox';
|
|
$preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
|
|
$sidebar_styling = avia_get_option('sidebar_styling');
|
|
$filterable_classes = avia_header_class_filter( avia_header_class_string() );
|
|
$av_classes_manually = "av-no-preview"; /*required for live previews*/
|
|
$av_classes_manually .= avia_is_burger_menu() ? " html_burger_menu_active" : " html_text_menu_active";
|
|
|
|
/**
|
|
* @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.
|
|
*/
|
|
$rtl_support = 'yes' == apply_filters( 'avf_rtl_column_support', 'yes' ) ? ' rtl_columns ' : '';
|
|
|
|
?><!DOCTYPE html>
|
|
<html <?php language_attributes(); ?> class="<?php echo "html_{$style} ".$responsive." ".$preloader." ".$av_lightbox." ".$filterable_classes." ".$av_classes_manually ?> ">
|
|
<head>
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
|
<?php
|
|
/*
|
|
* outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
|
|
* located in framework/php/function-set-avia-frontend.php
|
|
*/
|
|
if (function_exists('avia_set_follow')) { echo avia_set_follow(); }
|
|
|
|
?>
|
|
|
|
|
|
<!-- mobile setting -->
|
|
<?php
|
|
|
|
if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
|
|
?>
|
|
|
|
|
|
<!-- Scripts/CSS and wp_head hook -->
|
|
<?php
|
|
/* Always have wp_head() just before the closing </head>
|
|
* tag of your theme, or you will break many plugins, which
|
|
* generally use this hook to add elements to <head> such
|
|
* as styles, scripts, and meta tags.
|
|
*/
|
|
|
|
wp_head();
|
|
|
|
?>
|
|
<style type="text/css">
|
|
a.rs-thumbnail-link{position:relative;width:70px;height:70px;overflow:hidden;display:inline-block;float:left;top:3px;margin-right:10px;}
|
|
a.rs-thumbnail-link img{
|
|
object-fit: cover; /* Do not scale the image */
|
|
object-position: center; /* Center the image within the element */
|
|
height: 70px;
|
|
}
|
|
|
|
li.feed-item .image-overlay {
|
|
display:none !important;
|
|
}
|
|
|
|
/* theme wide for content font color and background color */
|
|
.main_color, .main_color .site-background, .main_color .first-quote, .main_color .related_image_wrap, .main_color .gravatar img .main_color .hr_content, .main_color .news-thumb, .main_color .post-format-icon, .main_color .ajax_controlls a, .main_color .tweet-text.avatar_no, .main_color .toggler, .main_color .toggler.activeTitle:hover, .main_color #js_sort_items, .main_color.inner-entry, .main_color .grid-entry-title, .main_color .related-format-icon, .grid-entry .main_color .avia-arrow, .main_color .avia-gallery-big, .main_color .avia-gallery-big, .main_color .avia-gallery img, .main_color .grid-content, .main_color .av-share-box ul, #top .main_color .av-related-style-full .related-format-icon, .main_color .related_posts.av-related-style-full a:hover {
|
|
color: #DEB887;
|
|
/* background-color:#3f140b; */
|
|
|
|
background: url(/wp-content/uploads/2017/05/blog-bg_mini.jpg);
|
|
background-size: contain;
|
|
/*
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
*/
|
|
background-repeat: repeat;
|
|
}
|
|
|
|
#commentform .wpgdprc-checkbox{padding-bottom:20px;}
|
|
#commentform .wpgdprc-checkbox label {display:inline !important;position:relative !important;left:0px !important;}
|
|
|
|
#commentform .comment-form-comment {padding-bottom:5px;}
|
|
.comment-form-cookies-consent{display:none !important;}
|
|
|
|
#socket .sub_menu_socket li {line-height:20px;}
|
|
</style>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body id="top" <?php body_class( $rtl_support . $style." ".$avia_config['font_stack']." ".$blank." ".$sidebar_styling); avia_markup_helper(array('context' => 'body')); ?>>
|
|
|
|
<?php
|
|
|
|
do_action( 'ava_after_body_opening_tag' );
|
|
|
|
if("av-preloader-active av-preloader-enabled" === $preloader)
|
|
{
|
|
echo avia_preload_screen();
|
|
}
|
|
|
|
?>
|
|
|
|
<div id='wrap_all'>
|
|
|
|
<?php
|
|
if(!$blank) //blank templates dont display header nor footer
|
|
{
|
|
//fetch the template file that holds the main menu, located in includes/helper-menu-main.php
|
|
get_template_part( 'includes/helper', 'main-menu' );
|
|
|
|
} ?>
|
|
|
|
<div id='main' class='all_colors' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'>
|
|
|
|
<?php
|
|
|
|
if(isset($avia_config['temp_logo_container'])) echo $avia_config['temp_logo_container'];
|
|
do_action('ava_after_main_container');
|
|
|
|
?>
|
|
<div class="clearfix" style="clear:both;"></div>
|