HEX
Server: LiteSpeed
System: Linux s12873.lon1.stableserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: jairicem (1242)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/jairicem/public_html/wp-content/themes/ewebot/index.php
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( !post_password_required() ) {
    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 = '';
    }
    if ($sidebar == '') {
        $layout = 'none';
    }
    $row_class = 'sidebar_'.esc_attr($layout);

	$category_archive_layout = gt3_option('category_archive_layout');
	if (is_null($category_archive_layout)) {
		$category_archive_layout = 1;
	}

    ?>
    <div class="container container-<?php echo esc_attr($row_class); ?>">
        <div class="row <?php echo esc_attr($row_class); ?>">
            <div class="content-container span<?php echo (int)esc_attr($column); ?>">
                <section id='main_content' class="gt3_module_blog items_per_line<?php echo esc_attr($category_archive_layout); ?>">
                    <?php
                        echo '<div class="gt3_archive_container">';
                        while (have_posts()) : the_post();
                            get_template_part("bloglisting");
                        endwhile;
                        wp_reset_postdata();
						echo '</div>';
                        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();

} else {
    get_header();
    ?>
    <div class="pp_block">
        <div class="container_vertical_wrapper">
            <div class="container a-center pp_container">
                <h1><?php echo esc_html__('Password Protected', 'ewebot'); ?></h1>
                <?php the_content(); ?>
            </div>
        </div>
    </div>
    <?php
    get_footer();
} ?>