HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: /volume1/web/wp-content/themes/voice-blog/single.php
<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package voice_blog
 */

get_header();
?>

<div id="primary" class="content-area " onLoad="window.scroll(0, 500)">
	<main id="main" class="site-main mt-5">
		<?php
			if(absint(get_theme_mod('voice_blog_sidebar_enable','1')) == 1) : 
			$modes1 = 12 - absint(get_theme_mod('voice_blog_sidebar_width','4'));
			elseif (absint(get_theme_mod('voice_blog_sidebar_enable','1')) == 0) :
			$modes1 = 12;
			endif ;
			?>
	<section class="middle-content inner-content">
		<div class="container-fluid">
			<div id ="scroll-here" class="row">
				<?php if(absint(get_theme_mod('voice_blog_sidebar_position','2')) == 1) : ?>
					<?php if(absint(get_theme_mod('voice_blog_sidebar_enable','1')) == 1) : ?>
					<div class="col-lg-<?php echo esc_attr(get_theme_mod('voice_blog_sidebar_width','4')) ?>">
							<?php get_sidebar()?>
					</div>
					<?php endif; ?>
				<?php endif; ?>
					<div class="col-lg-<?php echo esc_attr($modes1) ?>">
						<?php
						while ( have_posts() ) :
							the_post();
						?>
						<div class="detail-block">
							<section>
								<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

									<div class="thumb text-center">
										<header class="entry-header">
										<?php 
										if ( has_post_format( 'video' )) :
											if ( has_shortcode( get_the_content(), 'video' ) ) {
											?>
												<div class = "embed-responsive-16by9 img-holder ">
												<?php echo voice_blog_get_embedded_media( array('video','iframe') ); ?>
												</div>
											<?php } else { ?>
												<div class = "embed-responsive embed-responsive-16by9 img-holder" >
												<?php echo voice_blog_get_embedded_media( array('video','iframe') ); ?>
												</div>
											<?php }
										else :
											the_post_thumbnail();
										endif ?>
										<?php the_title( '<h1 class="entry-title card-title mt-5">', '</h1>' ); ?>

										</header>
										<div class="thumb-body text-justify">
											
											<footer>
												<div class="coment-share mb-4">
													<div class="tag-date-comment">
														<?php voice_blog_cat(); ?>
														<ul class="date-comment">
														<li> <?php voice_blog_posted_on() ?></li>
														<li><?php voice_blog_post_comment() ?></li>
														<li><?php  voice_blog_edit_post() ?></li>
														</ul>
														<span class ="tag"> <?php voice_blog_post_tag() ?></span>
													</div>
													
												</div>
											</footer>
											<?php 
											if ( has_post_format( 'video' )) :
											$first = voice_blog_get_embedded_media();										
											$content = apply_filters( 'the_content', get_the_content() );
											$first= str_replace($first,'',$content);
											echo apply_filters( 'the_content', $first );
											else :
											the_content();
											endif;								
											?>
										</div>
									</div>
								</article>
							</section>
							<div class =" mt-5 mb-5">
								<?php
								// Previous/next post navigation.
								the_post_navigation( array(
									'next_text' =>  __( 'Next post', 'voice-blog' ),
									'prev_text' =>  __( 'Previous post', 'voice-blog' )
								) );
								?>
							</div>
							<?php if (absint(get_theme_mod('voice_blog_single_page_post_taxonomy_'.__('Author section','voice-blog'),'1'))==1) :
							get_template_part( 'template-parts/template-core/author-section' ); 
							endif ;
							if (absint(get_theme_mod('voice_blog_related_post_enable','1')) ==1) :
								get_template_part( 'template-parts/template-core/related-post' ); 
							endif ; ?>
							<?php if ( comments_open() || get_comments_number() ) :
									comments_template();
							endif; ?>
							
						</div>
						<?php endwhile; ?> 

				</div>
				<?php if(absint(get_theme_mod('voice_blog_sidebar_position','2')) == 2) : ?>
					<?php if(absint(get_theme_mod('voice_blog_sidebar_enable','1')) == 1) : ?>
					<div class="col-lg-<?php echo esc_attr(get_theme_mod('voice_blog_sidebar_width','4')) ?>">
							<?php get_sidebar()?>
					</div>
					<?php endif; ?>
				<?php endif; ?>
			</div>
		</div>	
	</section>	
	</main><!-- #main -->
</div><!-- #primary -->

<?php
get_footer();