HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/themes/themorningafter/archive.php
<?php
/**
 * The template for displaying Archive pages.
 *
 * @package WordPress
 * @subpackage The Morning After
 */
get_header(); ?>

<?php get_template_part( 'top-banner' ); ?>

<?php $content_width = 540; // to override $content_width for the narrower column ?>

<?php $morningafter_options = morningafter_get_theme_options(); ?>

<div id="arch_content" class="column full-width">

	<?php if ( have_posts() ) : ?>

		<div class="column archive-info first">

			<?php if ( is_category() ) { ?>

				<h1 class="archive_name"><?php echo single_cat_title(); ?></h1>

				<div class="archive_meta">

					<div class="archive_feed">
						<?php
							$cat_obj = $wp_query->get_queried_object();
							$cat_id = $cat_obj->term_id;
							printf( __( '<a href="%s">RSS feed for this section</a>', 'woothemes' ),
								get_category_feed_link( $cat, '' )
							);
						?>
					</div>

					<?php $cat_count = $cat_obj->count; ?>

					<div class="archive_number">
						<?php
							if( $cat_count == 1 ){
								printf( __( 'This category contains %s post', 'woothemes' ), $cat_count );
							}else{
								printf( __( 'This category contains %s posts', 'woothemes' ), $cat_count );
							}
						?>
					</div>

				</div><!-- end .archive_meta -->

			<?php } elseif ( is_tag() ) { ?>

				<h1 class="archive_name"><?php single_tag_title(); ?></h1>

				<div class="archive_meta">

					<div class="archive_number">
						<?php
							$tag = $wp_query->get_queried_object();
							$tag_count = $tag->count;
							if( $tag_count == 1 ){
								printf( __( 'This tag is associated with %s post', 'woothemes' ), $tag_count );
							}else{
								printf( __( 'This tag is associated with %s posts', 'woothemes' ), $tag_count );
							}
						?>
					</div>

				</div>

			<?php } elseif ( is_day() ) { ?>
				<h1 class="archive_name"><?php _e( 'Archive for','woothemes' ); ?> <?php the_date(); ?></h1>

			<?php } elseif ( is_month() ) { ?>
				<h1 class="archive_name"><?php _e( 'Archive for','woothemes' ); ?> <?php the_date( 'F Y' ); ?></h1>

			<?php } elseif ( is_year() ) { ?>
				<h1 class="archive_name"><?php _e( 'Archive for','woothemes' ); ?> <?php the_date( 'Y' ); ?></h1>

			<?php } ?>

		</div><!-- end .archive-info -->

		<div class="column mid-column">

			<?php while ( have_posts() ) : the_post(); ?>

				<div class="archive_post_block clear-fix">

					<h3 class="archive_title" id="post-<?php the_ID(); ?>">
						<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'woothemes' ), the_title_attribute( 'echo=0' ) ) ); ?>">
							<?php the_title(); ?>
						</a>
					</h3>

					<div class="archive_post_meta">
						<?php morning_after_post_meta(); ?>
						<?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?>
							<span class="comment-link"><span class="dot">&sdot;</span> <?php comments_popup_link( __( 'Leave a Comment', 'woothemes' ), __( '1 Comment', 'woothemes' ), __( '% Comments', 'woothemes' ) ); ?></span>
						<?php endif; ?>
					</div>

					<?php if ( $morningafter_options['show_full_archive'] == "1" ) the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'woothemes' ) ); else the_excerpt(); ?>

					<?php wp_link_pages( array( 'before' => '<div class="page-navigation"><p><strong>'.__( 'Pages','woothemes' ).':</strong> ', 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>

				</div><!-- end .archive_post_block -->

			<?php endwhile; ?>

			<?php if (  $wp_query->max_num_pages > 1 ) : ?>
				<div id="nav-below" class="post-navigation clear-fix">
					<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&laquo;</span> Older posts', 'woothemes' ) ); ?></div>
					<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&raquo;</span>', 'woothemes' ) ); ?></div>
				</div>
			<?php endif; ?>

		</div><!-- end .mid-column -->

		<?php get_sidebar(); ?>

	<?php else : ?>

		<?php
			printf( __( '<p>Lost? Go back to the <a href="%s">home page</a></p>', 'woothemes' ),
				get_home_url()
			);
		?>

	<?php endif; ?>

</div><!-- end #arch_content -->

<?php get_footer(); ?>