HEX
Server: LiteSpeed
System: Linux premium321.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: paksjuts (1314)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/paksjuts/apkhoop.com/wp-content/themes/hitmag/template-parts/content.php
<?php
/**
 * Template part for displaying posts
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package HitMag
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class( 'hitmag-post' ); ?>>

	<?php do_action( 'hitmag_inside_post_top' ); ?>
	
	<?php if (has_post_thumbnail()) : ?>
		<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
			<div class="archive-thumb">
			<?php 
				$hitmag_thumb_size = hitmag_thumb_size();
				the_post_thumbnail( $hitmag_thumb_size );
			?>
			</div><!-- .archive-thumb -->
		</a>
	<?php endif; ?>
	
	<div class="archive-content">

		<?php do_action( 'hitmag_before_entry_header' ); ?>

		<header class="entry-header">
			<?php
				hitmag_category_list();

				the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );

			if ( 'post' === get_post_type() ) : ?>
			<div class="entry-meta">
				<?php hitmag_posted_on(); ?>
			</div><!-- .entry-meta -->
			<?php
			endif; ?>
		</header><!-- .entry-header -->

		<div class="entry-summary">
			<?php

				if ( true == get_theme_mod( 'excerpt_display', true ) ) {
					// Display content instead of excerpt.
					if ( true == get_theme_mod( 'archive_show_content', false ) ) {
						the_content();
					} else {
						// If content is disabled display excerpt.
						the_excerpt();
					}
				}

				if ( true == get_theme_mod( 'show_readmore', true ) ) {
					$readmore_text = get_theme_mod( 'readmore_text', esc_html__( 'Read More', 'hitmag' ) ); ?>
					<a href="<?php the_permalink(); ?>" class="th-readmore"><span class="screen-reader-text"><?php the_title(); ?></span> <?php echo esc_html( $readmore_text ); ?></a>
				<?php } ?>

		</div><!-- .entry-summary -->
		
	</div><!-- .archive-content -->

	<?php do_action( 'hitmag_inside_post_bottom' ); ?>

</article><!-- #post-## -->