HEX
Server: Apache
System: Linux r5.a1center.net 4.18.0-513.5.1.lve.el8.x86_64 #1 SMP Tue Nov 21 10:14:49 UTC 2023 x86_64
User: redpsiju (1623)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /home/redpsiju/public_html/wp-content/themes/vastart/template-parts/entry/meta.php
<?php
/**
 * Template part for displaying meta in entry post.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Vastart
 * @since 1.0
 * @version 1.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( is_search() ) {
	return;
}
?>

<div class="entry__meta-author">
	<div class="entry__meta-author__gravatar">
		<?php echo wp_kses_post( get_avatar( get_the_author_meta( 'user_email' ), 40 ) ); ?>
	</div>

	<div class="entry__meta-author__info" itemscope>
		<div class="meta-author" itemprop="name"><?php echo wp_kses_data( the_author_posts_link() ); ?></div>
		<div class="meta-date" itemprop="datePublished">
			<?php
			$vastart_title = get_the_title();
			if ( empty( $vastart_title ) ) {
				?>
					<a href="<?php echo esc_url( get_permalink() ); ?>"> <?php echo wp_kses_data( get_the_date() ); ?> </a>
				<?php
			} else {
				echo wp_kses_data( get_the_date() );
			}
			?>
		</div>
	</div>
</div>