| Server IP : 89.248.107.232 / Your IP : 216.73.217.70 Web Server : Apache System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : seg ( 10005) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/seg-sa.es/peyco.es/wp-content/themes/StoreFront/layouts/ |
Upload File : |
<?php
/**
*
* Template elements before the page content
*
**/
// create an access to the template main object
global $gk_tpl, $woocommerce;
// woocommerce check
$wc_check = 'disable';
if(isset($woocommerce)) {
if(is_woocommerce()) {
$wc_check = 'enable';
}
else {
$wc_check = 'disable';
}
}
// disable direct access to the file
defined('GAVERN_WP') or die('Access denied');
// check if the sidebar is set to be a left column
$args = array();
$args_val = $args == null || ($args != null && $args['sidebar'] == true || $args['sidebar_wc'] == true );
$gk_mainbody_class = '';
if(get_option($gk_tpl->name . '_page_layout', 'right') == 'left' && gk_is_active_sidebar('sidebar') && $args_val && $wc_check == 'disable') {
$gk_mainbody_class .= ' class= "gk-column-left"';
}
if(get_option($gk_tpl->name . '_wooc_layout', 'right') == 'left' && gk_is_active_sidebar('sidebar_wc') && $args_val && $wc_check == 'enable') {
$gk_mainbody_class .= ' class= "gk-column-wc-left"';
}
?>
<div class="gk-page-wrap<?php if(get_option($gk_tpl->name . '_template_homepage_mainbody', 'N') == 'N' && is_home()) : ?> gk-is-homepage<?php endif; ?>">
<div class="gk-page">
<div id="gk-mainbody-columns"<?php echo $gk_mainbody_class; ?>>
<section>
<?php if(gk_is_active_sidebar('top1')) : ?>
<div id="gk-top1">
<div class="widget-area">
<?php gk_dynamic_sidebar('top1'); ?>
<!--[if IE 8]>
<div class="ie8clear"></div>
<![endif]-->
</div>
</div>
<?php endif; ?>
<!-- Mainbody -->
<?php if(gk_is_active_sidebar('mainbody_top')) : ?>
<div id="gk-mainbody-top">
<?php gk_dynamic_sidebar('mainbody_top'); ?>
</div>
<?php endif; ?>