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/wordpress/wp-content/themes/sullivan/content-search.php
<li <?php post_class( 'content-search' ); ?> id="post-<?php the_ID(); ?>">

	<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">

		<?php

		if ( sullivan_is_woocommerce_activated() ) {
			$image_size = apply_filters( 'single_product_archive_thumbnail_size', 'shop_catalog' );
		} else {
			$image_size = 'post-thumbnail';
		}

		$image_url = get_the_post_thumbnail_url( $image_size ) && ! post_password_required() ? get_the_post_thumbnail_url( $image_size ) : sullivan_get_fallback_image_url(); ?>

		<img src="<?php echo esc_url( $image_url ); ?>" />

		<?php the_title( '<h2>', '</h2>' ); ?>

		<?php if ( get_post_type() === 'post' ) : ?>

			<p class="post-date"><?php the_date( get_option( 'date_format' ) ); ?></p>

		<?php endif; ?>

	</a>

</article>