HEX
Server: Apache
System: Linux server.tanduk.space 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: coachou (1042)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: /home/coachou/www/wp-content/themes/colormag/template-parts/content.php
<?php
/**
 * The template used for displaying page content in archive pages.
 *
 * @package ColorMag
 *
 * @since   ColorMag 1.0.0
 */

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

$featured_image_size   = 'colormag-featured-image';
$class_name_layout_two = '';
$archive_search_layout = 'layout-1';

?>

<article id="post-<?php the_ID(); ?>"
	<?php post_class( array( $class_name_layout_two ) ); ?>>
	<?php
	/**
	 * Hook: colormag_before_post_content.
	 */
	do_action( 'colormag_before_post_content' );

	/**
	 * Hook: colormag_before_posts_loop.
	 */
	do_action( 'colormag_before_posts_loop' );
	?>

	<?php
	if ( ! has_post_format( array( 'gallery' ) ) ) :

		if ( has_post_thumbnail() ) :
			?>
			<div class="cm-featured-image">
				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
					<?php the_post_thumbnail( $featured_image_size ); ?>

				<?php
					if ( has_post_format( 'video' ) ) {
						?>
						<span class="play-button-wrapper">
								<i class="fa fa-play" aria-hidden="true"></i>
						</span>
						<?php
					}
				?>
				</a>
			</div>
				<?php
		endif;

	endif;
	?>

	<div class="cm-post-content">
		<?php
		if ( get_post_format() ) :
			if ( ! has_post_format( 'video' ) ) :
				get_template_part( 'inc/post-formats' );
			endif;


			if ( has_post_format( 'video' ) && ! ( has_post_thumbnail() ) ) :

				$video_post_url = get_post_meta( $post->ID, 'video_url', true );

				if ( ! empty( $video_post_url ) ) :
					?>
					<div class="fitvids-video">
						<?php
						$embed_code = wp_oembed_get( $video_post_url );

						echo $embed_code; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
						?>
					</div>
					<?php
				endif;
			endif;

		endif;

		colormag_colored_category();
		?>

		<?php colormag_entry_meta(); ?>

	<?php get_template_part( 'template-parts/entry/entry', 'header' ); ?>


	<?php get_template_part( 'template-parts/entry/entry', 'summary' ); ?>

	</div>

	<?php
	/**
	 * Hook: colormag_after_posts_loop.
	 */
	do_action( 'colormag_after_posts_loop' );

	/**
	 * Hook: colormag_after_post_content.
	 */
	do_action( 'colormag_after_post_content' );
	?>
</article>