HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/britsurf.co.uk/public_html/wp-content/themes/accesspress-mag/content.php
<?php
/**
 * @package AccessPress Mag
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header">
		<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>

		<?php if ( 'post' == get_post_type() ) { ?>
    		<div class="entry-meta">
                <?php
                 $show_cat = of_get_option( 'archive_cat', '1' );
                if($show_cat){
                    do_action( 'accesspress_mag_post_categories' );
                }
                    accesspress_mag_posted_on();
                    do_action( 'accesspress_mag_post_meta' )
                ;?>
    		</div><!-- .entry-meta -->
		<?php } ?>
	</header><!-- .entry-header -->

	<div class="entry-content">
        <?php
            $archive_template = of_get_option( 'global_archive_template', 'archive-default' );
            switch ( $archive_template ) {
            	case 'archive-default':
            		$image_size = 'accesspress-mag-singlepost-default';
            		break;
            
            	case 'archive-style1':
            		$image_size = 'accesspress-mag-singlepost-style1';
                    break;
                    
            	default:
            		$image_size = 'accesspress-mag-singlepost-default';
            		break;
            }
            $image_id = get_post_thumbnail_id();
            $image_path = wp_get_attachment_image_src( $image_id, $image_size , true );
            $image_alt = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true );
            if( has_post_thumbnail() ){ 
         ?>
                <div class="post-image non-zoomin">
                    <a href="<?php the_permalink();?>"><img src="<?php echo esc_url( $image_path[0] );?>" alt="<?php echo esc_attr( $image_alt );?>" /></a>
                    <a class="big-image-overlay" href="<?php the_permalink();?>"><i class="fa fa-external-link"></i></a>
                </div>
        <?php } ?>
		<?php
			/* translators: %s: Name of current post */
			/*the_content( sprintf(
				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'accesspress-mag' ),
				the_title( '<span class="screen-reader-text">"', '"</span>', false )
			) );
            */
            
            if( has_excerpt() ) {
                the_excerpt();
            } else {
                accesspress_mag_excerpt();   
            }
		?>

		<?php
			wp_link_pages( array(
				'before' => '<div class="page-links">' . __( 'Pages:', 'accesspress-mag' ),
				'after'  => '</div>',
			) );
		?>
	</div><!-- .entry-content -->

	<footer class="entry-footer">
		<?php accesspress_mag_entry_footer(); ?>
	</footer><!-- .entry-footer -->
</article><!-- #post-## -->