Files
Testing/tbs/wp-content/themes/dt-nimble/dt-slideshow-sidebar.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

46 lines
1.0 KiB
PHP

<?php
/* Template Name: 02. Page with Slideshow and Sidebar */
dt_storage( 'is_homepage', true );
dt_storage( 'have_sidebar', true );
do_action( 'dt_layout_before_header-slideshow' );
get_header();
?>
<?php get_template_part( 'top-bg' ); ?>
<?php get_template_part( 'nav' ); ?>
<?php $slider_options = get_post_meta( get_the_ID(), '_dt_slider_layout_options', true ); ?>
<?php
if ( 'fullscreen_slider' == $slider_options['slider'] ) {
$slider_section_id = 'fs-slideshow';
} else {
$slider_section_id = 'slide';
}
?>
<section id="<?php echo $slider_section_id; ?>"></section>
<?php if ( ! isset( $slider_options['slider'] ) || 'fullscreen_slider' != $slider_options['slider'] || empty( $slider_options['fs_hide_content'] ) ): ?>
<div id="wrapper">
<div id="container"<?php echo dt_get_container_class(); ?>><?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
the_content();
}
}
?></div>
<?php get_sidebar(); ?>
</div>
<?php endif; ?>
<?php get_footer(); ?>