| Server IP : 14.225.204.176 / Your IP : 216.73.216.252 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/iamv-cms/wp-content/themes/agrosector/ |
Upload File : |
<?php
get_header();
$layout = gt3_option('page_sidebar_layout');
$sidebar = gt3_option('page_sidebar_def');
$column = 12;
if ( ($layout == 'left' || $layout == 'right') && is_active_sidebar( $sidebar ) ) {
$column = 9;
}else{
$sidebar = '';
}
$row_class = ' sidebar_'.$layout;
?>
<div class="container">
<div class="row<?php echo esc_attr($row_class); ?>">
<div class="content-container span<?php echo (int)esc_attr($column); ?>">
<section id='main_content'>
<?php
while (have_posts()) : the_post();
get_template_part("bloglisting");
endwhile;
wp_reset_postdata();
echo gt3_get_theme_pagination();
?>
</section>
</div>
<?php
if ($layout == 'left' || $layout == 'right') {
echo '<div class="sidebar-container span'.(12 - (int)esc_attr($column)).'">';
if (is_active_sidebar( $sidebar )) {
echo "<aside class='sidebar'>";
dynamic_sidebar( $sidebar );
echo "</aside>";
}
echo "</div>";
}
?>
</div>
</div>
<?php get_footer(); ?>