HEX
Server: Apache
System: Linux server.mart2global.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User: henzergrouphenz (1442)
PHP: 7.4.28
Disabled: NONE
Upload Files
File: /home/henzergrouphenz/public_html/wp-content/themes/metro/template-parts/content.php
<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */

namespace radiustheme\Metro;

$thumb_size      = Helper::has_sidebar() ? 'rdtheme-size2' : 'rdtheme-size1';
$has_entry_meta  = ( !has_post_thumbnail() && RDTheme::$options['blog_date'] ) ||( !has_post_thumbnail() && RDTheme::$options['blog_cats'] && has_category() ) || RDTheme::$options['blog_author_name'] || RDTheme::$options['blog_comment_num'] ? true : false;

$comments_number = get_comments_number();
$comments_text   = sprintf( _n( '%s Comment', '%s Comments', $comments_number, 'metro' ), number_format_i18n( $comments_number ) );
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'post-each post-each-1' ); ?>>
	<?php if ( has_post_thumbnail() ): ?>
		<div class="post-thumbnail">
			<a href="<?php the_permalink();?>">
				<?php the_post_thumbnail( $thumb_size );?>
				<?php if ( RDTheme::$options['blog_date'] ): ?>
					<div class="post-date-round updated published"><div class="rtin-d1"><?php the_time( 'd' ); ?></div><div class="rtin-d2"><?php the_time( 'M' ); ?></div></div>
				<?php endif; ?>
			</a>
		</div>
	<?php endif; ?>
	<div class="post-content-area">
		<?php if ( has_post_thumbnail() && RDTheme::$options['blog_cats'] && has_category() ): ?>
			<div class="post-top-cats"><?php the_category( ', ' );?></div>
		<?php endif; ?>
		<h2 class="post-title"><a href="<?php the_permalink();?>" class="entry-title" rel="bookmark"><?php the_title();?></a></h2>
		<?php if ( $has_entry_meta ): ?>
			<ul class="post-meta">
				<?php if ( !has_post_thumbnail() && RDTheme::$options['blog_date'] ): ?>
					<li><i class="fa fa-calendar" aria-hidden="true"></i><span class="updated published"><?php the_time( get_option( 'date_format' ) );?></span></li>
				<?php endif; ?>
				<?php if ( RDTheme::$options['blog_author_name'] ): ?>
					<li><i class="fa fa-user" aria-hidden="true"></i><span class="vcard author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" class="fn"><?php the_author(); ?></a></span></li>
				<?php endif; ?>
				<?php if ( RDTheme::$options['blog_comment_num'] ): ?>
					<li><i class="fa fa-comments" aria-hidden="true"></i><span><?php echo esc_html( $comments_text );?></span></li>
				<?php endif; ?>
				<?php if ( !has_post_thumbnail() && RDTheme::$options['blog_cats'] && has_category() ): ?>
					<li><i class="fa fa-tags" aria-hidden="true"></i><?php the_category( ', ' );?></li>
				<?php endif; ?>
			</ul>
		<?php endif; ?>
		<div class="post-content entry-summary"><?php the_excerpt();?></div>
		<a href="<?php the_permalink();?>" class="read-more-btn"><?php esc_html_e( 'Continue Reading', 'metro' );?><i class="fa fa-arrow-right" aria-hidden="true"></i></a>		
	</div>
</article>