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/ajpartyfun.com/wp-content/themes/mh-magazine/content-ticker-top.php
<?php /* Template for displaying content of news ticker above header */
$mh_magazine_options = mh_magazine_theme_options();
$ticker_loop = new WP_Query(array('posts_per_page' => $mh_magazine_options['ticker_posts'], 'cat' => $mh_magazine_options['ticker_cats'], 'tag' => $mh_magazine_options['ticker_tags'], 'offset' => $mh_magazine_options['ticker_offset'], 'ignore_sticky_posts' => $mh_magazine_options['ticker_sticky'])); ?>
<div class="mh-ticker-top">
	<?php if ($mh_magazine_options['ticker_title']) { ?>
		<div class="mh-ticker-title mh-ticker-title-top">
			<?php echo esc_attr($mh_magazine_options['ticker_title']) . '<i class="fa fa-chevron-right"></i>'; ?>
		</div>
	<?php } ?>
	<div class="mh-ticker-content mh-ticker-content-top">
		<ul id="mh-ticker-loop-top"><?php
			while ($ticker_loop->have_posts()) : $ticker_loop->the_post(); ?>
				<li class="mh-ticker-item mh-ticker-item-top">
					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
						<span class="mh-ticker-item-date mh-ticker-item-date-top">
                        	<?php echo '[ ' . get_the_date() . ' ]'; ?>
                        </span>
						<span class="mh-ticker-item-title mh-ticker-item-title-top">
							<?php the_title(); ?>
						</span>
						<?php if (has_category()) { ?>
							<span class="mh-ticker-item-cat mh-ticker-item-cat-top">
								<i class="fa fa-caret-right"></i>
								<?php $category = get_the_category(); ?>
								<?php echo esc_attr($category[0]->cat_name); ?>
							</span>
						<?php } ?>
					</a>
				</li><?php
			endwhile;
			wp_reset_postdata(); ?>
		</ul>
	</div>
</div>