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/depo-masthead/index.php
<?php
/**
 * @package WordPress
 * @subpackage DePo Masthead
 */

get_header(); ?>

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

	<?php $post = $posts[0]; // Set $post so that the_date() works. ?>
	<?php /* If this is a category archive */ if ( is_category() ) { ?>
		<h2 class="pagetitle"><?php printf( __( 'Archive for the &#8216;%s&#8217; Category', 'depo-masthead' ), single_cat_title( '', false ) ); ?></h2>
	<?php /* If this is a tag archive */ } elseif ( is_tag() ) { ?>
		<h2 class="pagetitle"><?php printf( __( 'Posts Tagged &#8216;%s&#8217;', 'depo-masthead' ), single_tag_title( '', false ) ); ?></h2>
	<?php /* If this is a daily archive */ } elseif ( is_day() ) { ?>
		<h2 class="pagetitle"><?php printf( _x( 'Archive for %s|Daily archive page', 'depo-masthead' ), get_the_time( __( 'F jS, Y', 'depo-masthead' ) ) ); ?></h2>
	<?php /* If this is a monthly archive */ } elseif ( is_month() ) { ?>
		<h2 class="pagetitle"><?php printf( _x( 'Archive for %s|Monthly archive page', 'depo-masthead' ), get_the_time( __( 'F, Y', 'depo-masthead' ) ) ); ?></h2>
	<?php /* If this is a yearly archive */ } elseif ( is_year() ) { ?>
		<h2 class="pagetitle"><?php printf( _x( 'Archive for %s|Yearly archive page', 'depo-masthead' ), get_the_time( __( 'Y', 'depo-masthead' ) ) ); ?></h2>
	<?php /* If this is an author archive */ } elseif ( is_author() ) { ?>
		<h2 class="pagetitle"><?php _e( 'Author Archive', 'depo-masthead' ); ?></h2>
	<?php /* If this is a paged archive */ } elseif ( isset( $_GET['paged'] ) && !empty( $_GET['paged'] ) ) { ?>
		<h2 class="pagetitle"><?php _e( 'Blog Archives', 'depo-masthead' ); ?></h2>
 	<?php } ?>
	<?php if ( is_search() ) : ?>
		<h2 class="pagetitle"><?php printf( __( 'Search for &#8220;%s&#8221;', 'depo-masthead' ), get_search_query() ); ?></h2>
	<?php endif; ?>

		<?php while ( have_posts() ) : the_post(); ?>
			<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
				<p class="postmetadata"><?php the_tags( '', ', ', '<br />' ); ?></p>
				<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( __( 'Permanent Link to %s', 'depo-masthead' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></h2>
				<small><?php printf( __( 'In %1$s on %2$s at %3$s', 'depo-masthead' ), get_the_category_list( __( ', ', 'depo-masthead' ) ), '<strong>' . get_the_time( get_option( 'date_format' ) ) . '</strong>', '<strong>' . get_the_time() . '</strong>' ); ?></small>

				<div class="entry">
					<?php the_content( __( 'Read the rest of this entry &raquo;', 'depo-masthead' ) ); ?>
					<?php wp_link_pages(); ?>
					<?php edit_post_link( __( 'Edit this entry.', 'depo-masthead' ), '<p>', '</p>' ); ?>
				</div>
			</div>

			<div id="showcomments" class="archive"><div class="divider"></div><a href="<?php the_permalink(); ?>#comments">&#9654; <?php comments_number( __( 'Comment', 'depo-masthead' ), __( 'View 1 Comment', 'depo-masthead' ), __( 'View % Comments', 'depo-masthead' ) ); ?></a></div>

		<?php endwhile; ?>

		<?php if (  $wp_query->max_num_pages > 1 ) : ?>
			<div class="navigation">
				<div class="previous">
					<?php previous_posts_link( '<span class="arrow">&laquo;</span> <span class="link"><span class="before">' . __( 'Older', 'depo-masthead' ) . '</span><span class="title">' . __( 'Entries', 'depo-masthead' ) . '</span></span>' ); ?>
				</div>
				<div class="next">
					<?php next_posts_link( '<span class="link"><span class="after">' . __( 'Newer', 'depo-masthead' ) . '</span><span class="title">' . __( 'Entries', 'depo-masthead' ) . '</span></span> <span class="arrow">&raquo;</span>' ); ?>
				</div>
				<div class="clear"></div>
			</div>
		<?php endif; ?>

	<?php else : ?>
		<h2 class="pagetitle"><?php _e( 'Nothing Found', 'depo-masthead' ); ?></h2>
		<div class="post" style="text-align: center;">
			<?php get_search_form(); ?>
		</div>
	<?php endif; ?>

	</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>