| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/aifortoday.co.uk/wwwroot/wp-content/themes/medicare-clinic/ |
Upload File : |
<?php
/**
* The template for displaying all pages
*
* @package Medicare Clinic
* @subpackage medicare_clinic
*/
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="external-div">
<div class="box-image-page">
<?php if ( has_post_thumbnail() ) : ?>
<!-- If post has thumbnail, apply parallax background with header settings -->
<div class="featured-image"
style="background-image: url('<?php echo esc_url( get_the_post_thumbnail_url( get_the_ID(), 'full' ) ); ?>');
background-size: cover;
background-position: <?php echo esc_attr( get_theme_mod( 'medicare_clinic_header_background_position', 'center' ) ); ?>;
background-attachment: <?php echo (get_theme_mod( 'medicare_clinic_header_background_attachment', 1 ) ? 'fixed' : 'scroll'); ?>;
height: <?php echo esc_attr( get_theme_mod( 'medicare_clinic_header_image_height', 400 ) ); ?>px;">
</div>
<?php else : ?>
<!-- Fallback image for pages with no thumbnail -->
<div class="single-page-img">
</div>
<?php endif; ?>
</div>
<div class="box-text">
<h2><?php the_title();?></h2>
</div>
</div>
<?php endwhile; ?>
<main id="tp_content" role="main">
<div class="container">
<div id="primary" class="content-area">
<?php $medicare_clinic_sidebar_layout = get_theme_mod( 'medicare_clinic_sidebar_page_layout','right');
if($medicare_clinic_sidebar_layout == 'left'){ ?>
<div class="row">
<div class="col-md-4 col-sm-4" id="theme-sidebar"><?php dynamic_sidebar('sidebar-2');?></div>
<div class="col-md-8 col-sm-8 left-sidebar">
<?php while ( have_posts() ) : the_post();
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'medicare-clinic' ),
'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($medicare_clinic_sidebar_layout == 'right'){ ?>
<div class="row">
<div class="col-md-8 col-sm-8 right-sidebar">
<?php while ( have_posts() ) : the_post();
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'medicare-clinic' ),
'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-md-4 col-sm-4" id="theme-sidebar"><?php dynamic_sidebar('sidebar-2');?></div>
</div>
<?php }else if($medicare_clinic_sidebar_layout == 'full'){ ?>
<div class="full">
<?php while ( have_posts() ) : the_post();
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'medicare-clinic' ),
'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();