HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/equalitywalk.org.uk/public_html/wp-content__da8a0a3/themes/construction-hub/page.php
<?php
/**
 * The template for displaying all pages
 *
 * @package Construction Hub
 * @subpackage construction_hub
 */
?>
<?php

while ( have_posts() ) : the_post();
    ?>
    <div id="post-<?php the_ID(); ?>" class="external-div">
        <div class="box-image">
            <?php if( has_post_thumbnail() ) { 
                the_post_thumbnail();
            } else { ?>
                <div class="header-img"></div>
            <?php } ?>
        </div> 
        <div class="box-text">
            <h2><?php the_title();?></h2>  
        </div> 
    </div>
    <?php
endwhile;

get_header();
?>

<main id="tp_content" role="main">
	<div class="container">
	<div id="primary" class="content-area">
		<?php $construction_hub_sidebar_layout = get_theme_mod( 'construction_hub_sidebar_page_layout','right');
	    if($construction_hub_sidebar_layout == 'left'){ ?>
	        <div class="row m-0">
	          	<div class="col-lg-4 col-md-4" id="theme-sidebar"><?php dynamic_sidebar('sidebar-2');?></div>
	          	<div class="col-lg-8 col-md-8 left-sidebar">
	           		<?php while ( have_posts() ) : the_post();

						the_content();

							wp_link_pages( array(
								'before' => '<div class="page-links">' . __( 'Pages:', 'construction-hub' ),
								'after'  => '</div>',
							) );

						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) :
							comments_template();
						endif;

						endwhile; // End of the loop.
					?>
	          	</div>
	        </div>
	        <div class="clearfix"></div>
	    <?php }else if($construction_hub_sidebar_layout == 'right'){ ?>
	        <div class="row m-0">
	          	<div class="col-lg-8 col-md-8 right-sidebar">
		            <?php while ( have_posts() ) : the_post();

						the_content();

							wp_link_pages( array(
								'before' => '<div class="page-links">' . __( 'Pages:', 'construction-hub' ),
								'after'  => '</div>',
							) );

						// If comments are open or we have at least one comment, load up the comment template.
						if ( comments_open() || get_comments_number() ) :
							comments_template();
						endif;

						endwhile; // End of the loop.
					?>
	          	</div>
	          	<div class="col-lg-4 col-md-4" id="theme-sidebar"><?php dynamic_sidebar('sidebar-2');?></div>
	        </div>
	    <?php }else if($construction_hub_sidebar_layout == 'full'){ ?>
	        <div class="full">
	            <?php while ( have_posts() ) : the_post();

					the_content();

							wp_link_pages( array(
								'before' => '<div class="page-links">' . __( 'Pages:', 'construction-hub' ),
								'after'  => '</div>',
							) );

					// If comments are open or we have at least one comment, load up the comment template.
					if ( comments_open() || get_comments_number() ) :
						comments_template();
					endif;

					endwhile; // End of the loop.
				?>
	      	</div>
		<?php }?>
	</div>
  </div>
</main>
<?php get_footer();