HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/drakkar_site_dev/wp-content/themes/spiko/page.php
<?php
/**
 * The template for displaying all pages
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site may use a
 * different template.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package spiko
 */
get_header();?>
<section class="section-space page bg-default">
    <div class="container<?php echo esc_html(spiko_container());?>">
        <div class="row">	
            <?php
            if (class_exists('WooCommerce')) {

                if (is_account_page() || is_cart() || is_checkout()) {
                    echo '<div class="col-lg-' . (!is_active_sidebar("woocommerce") ? "12" : "8" ) . ' col-md-' . (!is_active_sidebar("woocommerce") ? "12" : "7" ) . ' col-xs-12">';
                } else {

                    echo '<div class="col-lg-' . (!is_active_sidebar("sidebar-1") ? "12" : "8" ) . ' col-md-' . (!is_active_sidebar("sidebar-1") ? "12" : "7" ) . ' col-xs-12">';
                }
            } else {
                echo '<div class="col-lg-' . (!is_active_sidebar("sidebar-1") ? "12" : "8" ) . ' col-md-' . (!is_active_sidebar("sidebar-1") ? "12" : "7" ) . ' col-xs-12">';
            }
            ?>
            <?php
            if (class_exists('WooCommerce')) {

                if (is_account_page() || is_cart() || is_checkout()) {

                    while (have_posts()) : the_post();
                        get_template_part('template-parts/content', 'page');
                        if (comments_open() || get_comments_number()) :
                            comments_template();
                        endif;
                    endwhile;
                } else {
                    while (have_posts()) : the_post();
                        get_template_part('template-parts/content', 'page');
                        if (comments_open() || get_comments_number()) :
                            comments_template();
                        endif;
                    endwhile;
                }
            } else {
                while (have_posts()) : the_post();
                    get_template_part('template-parts/content', 'page');
                    if (comments_open() || get_comments_number()) :
                        comments_template();
                    endif;
                endwhile;
            }
            ?>
        </div>	
        <?php
        if (class_exists('WooCommerce')) {

            if (is_account_page() || is_cart() || is_checkout()) {
                get_sidebar('woocommerce');
            } else {
                get_sidebar();
            }
        } else {
            get_sidebar();
        }
        ?>
    </div>
</section>
<?php get_footer(); ?>