Files
Testing/tbs/wp-content/themes/dt-nimble/dt-videogal-sidebar.php
sean 343b4a3f3f
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-19 18:32:17 -05:00

52 lines
1.3 KiB
PHP

<?php
/* Template Name: 13. Video Gallery with Sidebar */
dt_storage('have_sidebar', true);
do_action( 'dt_layout_before_header-video' );
get_header();
?>
<?php get_template_part('top-bg'); ?>
<div id="wrapper">
<?php get_template_part('nav'); ?>
<div id="container"<?php echo dt_get_container_class(); ?>>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); // main loop ?>
<h1><?php the_title(); ?></h1>
<div class="hr hr-wide gap-big"></div>
<div class="gallery">
<?php
$opts = get_post_meta( get_the_ID(), '_dt_video_layout_options', true );
$cats = get_post_meta( get_the_ID(), '_dt_video_layout_category', true );
dt_category_list( array(
'post_type' => 'dt_video',
'taxonomy' => 'dt_video_category',
'select' => $cats['select'],
'layout' => $opts['layout'],
'layout_switcher' => false,
'show' => ( 'on' == $opts['show_cat_filter'] ) ? true : false,
'terms' => isset( $cats['video_cats'] ) ? $cats['video_cats'] : array()
) );
?>
<div class="gallery-inner t-l dt-ajax-content video-gal"></div>
</div>
<?php endwhile; endif; // end main loop ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>