HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux Droplet-NYC1-3 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.3-4ubuntu2.29
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/apwire.net/wp-content/themes/shopire/single.php
<?php
/**
 * The template for displaying archive pages.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Shopire
 */

get_header();
$shopire_enable_post_cat		= get_theme_mod('shopire_enable_post_cat','1'); 
$shopire_enable_post_date		= get_theme_mod('shopire_enable_post_date','1'); 
$shopire_enable_post_author		= get_theme_mod('shopire_enable_post_author','1'); 
$shopire_enable_post_comments	= get_theme_mod('shopire_enable_post_comments'); 
$shopire_enable_post_views		= get_theme_mod('shopire_enable_post_views'); 
$shopire_enable_post_rt			= get_theme_mod('shopire_enable_post_rt'); 
$shopire_enable_post_tag		= get_theme_mod('shopire_enable_post_tag'); 
$shopire_enable_post_ttl		= get_theme_mod('shopire_enable_post_ttl','1'); 
?>
<section id="wf_posts" class="wf_posts wf-py-default">
	<div class="wf-container">
		<div class="wf-row wf-g-4">
			<?php if (  !is_active_sidebar( 'shopire-sidebar-primary' ) ): ?>
				<div class="wf-col-lg-12 wf-col-md-12 wf-col-12 wow fadeInUp">
			<?php else: ?>	
				<div id="wf-main" class="wf-col-lg-8 wf-col-md-12 wf-col-12 wow fadeInUp">
			<?php endif; ?>	
				<div class="wf-row wf-g-4">
					<div class="wf-col-lg-12 wf-col-sm-12 wf-col-12"> 
						<?php 
							if( have_posts() ): 
							// Start the loop.
							while( have_posts() ): the_post();
						?>
						<article class="post single-post wf-mb-4">
							<?php if ( has_post_thumbnail() ) { ?>
								<div class="image">
									<?php the_post_thumbnail(); ?>
									<a href="<?php echo esc_url( get_permalink() ); ?>"></a>
								</div>
							<?php } ?>
							
							<div class="inner">
								<?php     
									if($shopire_enable_post_ttl=='1'):
										the_title('<h3 class="title">', '</h3>' );
									endif; 
								?> 
								<div class="meta">
									<ul>    
										<?php if($shopire_enable_post_date=='1'): ?>
											<li>
												<div class="date">
													<i class="far fa-calendar" aria-hidden="true"></i> 
													<?php echo esc_html(get_the_date('M, d, Y')); ?>
												</div>
											</li>
										<?php endif; ?>	
										
										<?php if($shopire_enable_post_author=='1'): ?>
											<li>
												<div class="author">                                                    
													<i class="far fa-user" aria-hidden="true"></i>
													<a href="<?php echo esc_url(get_author_posts_url( absint(get_the_author_meta( 'ID' )) ));?>"><span><?php esc_html(the_author()); ?></span></a>
												</div>
											</li>
										<?php endif; ?>	
										
										<?php if($shopire_enable_post_cat=='1'): ?>
											<li>
												<div class="catetag">
													<i class="far fa-tags"></i>
													<a href="<?php echo esc_url( get_permalink() ); ?>" rel="category tag"><?php the_category(' , '); ?></a>
												</div>
											</li>
										<?php endif; ?>
										
										<?php if($shopire_enable_post_comments=='1'): ?>
											<li><i class="far fa-comments"></i> <?php echo esc_html(get_comments_number($post->ID)); ?></li>
										<?php endif; ?>	
										
										<?php if($shopire_enable_post_views=='1'): ?>
											<li><i class="far fa-eye"></i> <?php echo wp_kses_post(shopire_get_post_view(get_the_ID())); ?></li>
										<?php endif; ?>	
										
										<?php if($shopire_enable_post_rt=='1'): ?>
											<li><i class="fa-solid fa-eye"></i> <?php echo esc_html(shopire_read_time()); ?></li>
										<?php endif; ?>
									</ul>
								</div>
								<div class="content clear">
									<?php the_content(); ?>
								</div>
							</div>
						</article>
						<?php 
							endwhile; // End the loop.
							endif; 
						?>
						<div class="wf-row nextprev-post-wrapper">
							<?php
							  the_post_navigation(array(
								'prev_text' => '<div class="nextprev-post prev"><h5 class="post-title"><i class="fas fa-angle-left"></i> %title </h5></div>',
								'next_text' => '<div class="nextprev-post prev"><h5 class="post-title"> %title <i class="fas fa-angle-right"></i></h5></div>',
								'in_same_term' => true,
							  ));
							?>
						</div>
					</div>
						<?php comments_template( '', true ); // show comments  ?>
					</div>
				</div>
			<?php get_sidebar(); ?>
		</div>
	</div>
</section>
<?php get_footer(); ?>