HEX
Server: LiteSpeed
System: Linux cde2.duelhost.dk 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: dtptviut (1121)
PHP: 8.0.30
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/dtptviut/domains/sparpengeihverdagen.dk/private_html/wp-content/themes/souje/page.php
<?php get_header();

	/* Checkbox Default Values */
	$souje_show_sidebar_static = get_theme_mod( 'souje_show_sidebar_static', 1 );
	$souje_show_sidebar_page = get_theme_mod( 'souje_show_sidebar_page', 1 );
	$souje_show_page_comments = get_theme_mod( 'souje_show_page_comments', 1 );
	/* */

	?>
	<div class="main-container<?php echo souje_apply_layout(); ?>">
    	<article <?php post_class( 'clearfix' ); ?>>

			<?php
            if ( have_posts() ) :
                while ( have_posts() ) : the_post();

				$meta_sidebar = get_post_meta( get_the_ID(), 'souje-sidebar-meta-box-checkbox', true ); ?>

				<?php if ( get_theme_mod( 'souje_map_page_id' ) == get_the_ID() ) { ?>
                    <div id="googleMap"></div>
                <?php } else {
                    ?><div class="article-featured-image"><?php the_post_thumbnail(); ?></div><?php
                } ?>
                <div class="article-content-outer<?php echo souje_apply_layout(); ?>">
                    <div class="article-content-inner">
                    	<h1 class="article-title"><?php the_title(); ?></h1>
                        <div class="article-pure-content clearfix"><?php the_content(); ?></div>
                        <?php
												if ( function_exists( 'WC' ) ) { if ( !is_cart() && !is_checkout() && !is_account_page() ) { get_template_part( 'social-bar' ); } }
                        get_template_part( 'pager-bar' );
                        ?>
                    </div>
                </div>

            <?php

            endwhile;

            else :

                echo souje_nothing_found();

            endif; ?>

        </article>
        <?php if ( $souje_show_page_comments ) { comments_template(); } ?>
	</div><!-- /main-container -->

    <!-- sidebar -->

    <?php

		if ( function_exists( 'WC' ) && ( is_cart() || is_checkout() || is_account_page() ) ) {

			// Hide Sidebar on WooCommerce Pages

		} else {

			$souje_s_type = 'home';

			if ( is_front_page() ) {

				if ( $souje_show_sidebar_static && !$meta_sidebar ) {

					if ( get_theme_mod( 'souje_enable_sidebar_static', 0 ) ) { $souje_s_type = 'static'; }
					souje_insert_sidebar( $souje_s_type );

				}

			} else {

				if ( $souje_show_sidebar_page && !$meta_sidebar ) {

					if ( get_theme_mod( 'souje_enable_sidebar_page', 0 ) ) { $souje_s_type = 'page'; }
					souje_insert_sidebar( $souje_s_type );

				}

			}

		}

    ?>

    <!-- /sidebar -->

</div><!-- /site-mid -->

<?php get_footer(); ?>