HEX
Server: LiteSpeed
System: Linux altar40.supremepanel40.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: sescorpcl (4477)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /home/sescorpcl/public_html/wp-content/themes/onepress/template-parts/content.php
<?php

/**
 * Template part for displaying posts.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package OnePress
 */

$show_thumbnail = true;
if (get_theme_mod('onepress_hide_thumnail_if_not_exists', false)) {
	if (!has_post_thumbnail()) {
		$show_thumbnail = false;
	}
}

$post_classes = array( 'list-article', 'clearfix' );
if ( onepress_loop_get_prop( 'blog_posts_layout' ) === 'grid' ) {
	$post_classes[] = 'list-article--posts-grid';
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $post_classes ); ?>>
	<?php if ($show_thumbnail) { ?>
		<div class="list-article-thumb">
			<a href="<?php echo esc_url(get_permalink()); ?>">
				<?php
				if (has_post_thumbnail()) {
					the_post_thumbnail('onepress-blog-small');
				} else {
					echo '<img alt="" src="' . esc_url(get_template_directory_uri() . '/assets/images/placholder2.png') . '">';
				}
				?>
			</a>
		</div>
	<?php } ?>

	<div class="list-article-content">
		<?php
		/**
		 * Hook before article content
		 *
		 * @since 2.3.4
		 */
		do_action('onepress_loop_content_before');

		?>
		<div class="list-article-meta">
			<?php the_category(' / '); ?>
		</div>
		<header class="entry-header">
			<?php the_title(sprintf('<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>'); ?>
		</header>
		<div class="entry-excerpt">
			<?php
			the_excerpt();
			?>
			<?php
			wp_link_pages(
				array(
					'before' => '<div class="page-links">' . esc_html__('Pages:', 'onepress'),
					'after'  => '</div>',
				)
			);
			?>
		</div>
		<?php

		/**
		 * Hook after article content
		 *
		 * @since 2.3.4
		 */
		do_action('onepress_loop_content_after');

		?>
	</div>

</article>