HEX
Server: LiteSpeed
System: Linux node612.namehero.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: dfwparty (1186)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/dfwparty/bizcoach.biz/wp-content/themes/mh-magazine/content-list.php
<?php


/* Template for displaying content in MH Posts List widget and on archives */
$category = get_the_category();

?>
<article <?php post_class('mh-posts-list-item clearfix'); ?>>
	<figure class="mh-posts-list-thumb">
		<a class="mh-thumb-icon mh-thumb-icon-small-mobile" href="<?php the_permalink(); ?>" title="<?php echo !empty($category) ? esc_attr($category[0]->cat_name) : ''; ?>"><?php
		if (has_post_thumbnail()) {
			the_post_thumbnail('mh-magazine-medium');
		} else {
			echo '<img class="mh-image-placeholder" src="' . get_template_directory_uri() . '/includes/core/assets/images/placeholder-medium.png' . '" alt="' . esc_html__('No Picture', 'mh-magazine') . '" />';
		} ?>
	</a>
		<?php if (has_category()) { ?>
			<div class="mh-image-caption mh-posts-list-caption">
				<?php echo esc_attr($category[0]->cat_name); ?>
			</div>
		<?php } ?>
	</figure>
	<div class="mh-posts-list-content clearfix">
		<header class="mh-posts-list-header">
			<h3 class="entry-title mh-posts-list-title">
				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
					<?php the_title(); ?>
				</a>
			</h3>
			<?php 
			global $widget_instance, $widget_instance_saved;
			if (isset($widget_instance) && is_array($widget_instance)) {
			    mh_widget_meta($widget_instance, $widget_instance_saved ?? null);
			} else {
			    mh_post_meta();
			}
			?>
		</header>
		<div class="mh-posts-list-excerpt clearfix">
			<?php the_excerpt(); ?>
		</div>
	</div>
</article>