HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux box12.multicloud.host 4.18.0-553.52.1.el8_10.x86_64 #1 SMP Wed May 14 09:36:12 EDT 2025 x86_64
User: kashmira (1008)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /home/kashmira/public_html/razitahir.com/wp-content/themes/upress/single-video.php
<?php
/**
 * The template for displaying all single posts.
 * Template Name: Urdu Default
 * Template Post Type: post
 * @package UrduPress
 */

get_header(); 
if(function_exists('upress_store_views')) {
	upress_store_views(get_the_ID(), 'video');
}
$translation = upress_translation();
?>
<script>
$(document).ready(function(){
    $(this).scrollTop(0);
});
</script>
<div id="primary" class="content-area pt-10 mt-10">
	
	<div id="main" class="col-lg-11 col-md-10 col-sm-10 col-xs-16 pull-right video-view" role="main">
		<div class="video-content row">
			<div class="single-video-player">
				<?php while ( have_posts() ) : the_post(); ?>
					<?php get_template_part( 'template-parts/content', 'single_video' ); ?>
				<?php endwhile; // End of the loop. ?>
			</div>
		</div>
		<div class="below-post row">
			<?php 
				if ( get_theme_mod('show_related_videos', 'on') == 'on' ) {
			?>
			<div class="related-videos mb-10">
				<div class="related-videos-header">
					<h2><?php echo $translation['section']['related_videos_heading'] ?></h2>
				</div>
				<div class="related-videos-container">
					<?php 
						//$categories = get_the_category();
						$terms = get_the_terms(get_the_ID(), 'video_category');
                        $terms_ids = array_column($terms, 'term_id');;
						$block_cat = $terms_ids;
                        //print_r($terms_ids);
						set_query_var( 'block_cat', $block_cat );
						get_template_part( 'template-parts/video/videos', 'related' );
					?>
				</div>
			</div>
			<?php } ?>
			<?php
			$comment_box_layout = get_theme_mod('single_comments_layout', '1');
			if( $comment_box_layout != '3'): ?>
			<div class="comments-row">
				<?php if($comment_box_layout == '1'): ?>
				<div class="comment-control"><a href="javascript:" id="comment-toggle-video">Load/Hide Comments</a></div>
				<?php endif; ?>
				<div id="comment-box"<?php echo($comment_box_layout == '2' ? ' style="display:block!important;"' : '') ?>>
				<?php
					// 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;
				?>
				</div>
			</div>
			<?php endif; ?>
		</div>
	</div><!-- #main -->
	<div class="video-sidebar col-lg-5 col-md-6 col-sm-6 col-xs-16 pl-0">
        <div class="popular-videos mb-10">
            <h3><img src="<?php echo get_template_directory_uri() ?>/images/fire.png" alt="Flame"> <?php _e('مقبول ترین ویڈیوز', 'urdupress'); ?></h3>
            <div class="widget-body">
                <?php get_template_part('template-parts/video/popular', 'videos') ?>
            </div>
        </div>
		<?php dynamic_sidebar('single-video'); ?>
	</div>
		
</div><!-- #primary -->

<?php get_footer(); ?>