HEX
Server: Apache/2.4.29 (Ubuntu)
System: Linux bareserver 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User: root (0)
PHP: 7.2.24-0ubuntu0.18.04.17
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,
Upload Files
File: /var/www/html/site/newsite/wp-content/themes/paira/template-parts/content.php
<?php
/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package paira
 */

?>
<div class="<?php if(is_active_sidebar('sidebar-1') && is_active_sidebar('sidebar-2')): ?> col-lg-6 <?php elseif(is_active_sidebar('sidebar-1') OR is_active_sidebar('sidebar-2')) : ?> col-lg-4 <?php else :?> col-lg-3 <?php endif; ?> paira-masonry-item">
	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<!-- Single Post -->
		<div class="paira-single-post margin-top-30">
			<?php if(has_post_thumbnail()) : ?>	
			<div class="paira-single-post__head">
				<div class="paira-single-post__comments"><i class="fa fa-comments"></i><?php echo esc_html(get_comments_number());?></div>
					<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('paira-blog-thumb'); ?></a>
				<?php $paira_categories = get_the_category(get_the_ID());?>
				<div class="paira-single-post__cat"><a href="<?php echo esc_url(get_category_link($paira_categories[0]->term_id));?>"><?php echo esc_html($paira_categories[0]->name); ?></a></div>
			</div>
			<?php endif; ?>
			<div class="paira-single-post__body">
				
				<h2 class="paira-single-post__title">
				<?php if( is_sticky()) :?><span class="paira-sticky"><i class="fa-regular fa-note-sticky"></i></span><?php endif;?>
				<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
				
				<!-- Post Meta -->
				<ul class="paira-post-meta">
					<?php if ( empty (has_post_thumbnail())) : ?>
					<li><i class="fa fa-pencil"></i><?php paira_posted_on(); ?></li>
					<?php endif; ?>
					<li><i class="fa fa-user"></i><a class="paira-post-meta__author" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>"><?php 
					paira_posted_by(); ?></a></li>
					<li><i class="fa fa-calendar"></i><?php echo esc_html(get_the_date());?></li>
				</ul>
				<div class="paira-single-post__content"><?php the_excerpt();?></div>
				<div class="paira-single-post__button">
					<a href="<?php the_permalink(); ?>" class="paira-btn"><?php echo esc_html_e('View Article','paira');?></a>
				</div>
			</div>
		</div>
	</article> <!-- #post-<?php the_ID(); ?> -->
</div>