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/autofocus/search.php
<?php
/**
 * @package WordPress
 * @subpackage AutoFocus
 */
get_header(); ?>

	<div id="content">

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

			<div id="nav-above">
				<h1 class="assistive-text">
					<?php _e( 'Post navigation', 'autofocus' ); ?>
				</h1><!-- .assistive-text-->
				<div class="nav-previous">
					<?php next_posts_link( __( '&laquo;', 'autofocus' ) ); ?>
				</div><!-- .nav-previous -->
				<div class="nav-next">
					<?php previous_posts_link( __( '&raquo;', 'autofocus' ) ); ?>
				</div><!-- .nav-next -->
			</div><!-- #nav-above -->
			<h2 class="archive-title">
				<?php printf( __( 'Search Results for: <em>%s</em>', 'autofocus' ), get_search_query() ); ?>
			</h2>
			<div class="search-results-form">
				<?php get_search_form(); ?>
			</div><!-- .search-results-form -->
			<?php while ( have_posts() ) : the_post(); ?>
				<div id="post-<?php the_ID(); ?>" <?php post_class( 'featured featured-position-' . $wp_query->current_post ); ?>>
					<a class="featured-trigger" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'autofocus' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
						<?php $has_featured_image = true;
							if ( '' != get_the_post_thumbnail() ) { ?>
								<div class="featured-thumbnail">
									<?php the_post_thumbnail( 'autofocus-595x1200' ); ?>
								</div><!-- .featured-thumbnail -->
						<?php } else {
							$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
							if ( $images ) {
								$image = array_shift( $images ); ?>
								<div class="featured-thumbnail">
									<?php echo wp_get_attachment_image( $image->ID, 'autofocus-595x1200' ); ?>
								</div><!-- .featured-thumbnail -->
							<?php } else {
								$has_featured_image = false; // titles and excerpts will be visible if a post has no featured image or image attachment
								echo '<div class="hide-trigger-background"></div>';
						} } ?>
						<div class="featured-date <?php if ( false === $has_featured_image ) echo 'no-featured-image'; ?>">
							<?php the_time( 'd M' ); ?>
						</div><!-- .entry-date -->
						<div class="featured-banner">
							<h2 class="featured-title">
								<span><?php the_title(); ?></span>
							</h2><!-- .featured-title -->
							<div class="featured-excerpt">
								<?php the_excerpt(); ?>
							</div><!-- .featured-excerpt-->
						</div><!-- .featured-banner-->
					</a>
				</div><!-- #post-<?php the_ID(); ?> -->
				<div class="entry-meta">
					<?php
						if ( is_multi_author() ) {
							printf( __( '%1$s at %2$s <span class="archive-byline">By %3$s</span>', 'autofocus' ),
							get_the_time( get_option( 'date_format' ) ),
							get_the_time( get_option( 'time_format' ) ),
							esc_html( get_the_author() ) );
						} else {
							printf( __( '%1$s at %2$s', 'autofocus' ),
							get_the_time( get_option( 'date_format' ) ),
							get_the_time( get_option( 'time_format' ) ) );
						}
					?>
					<?php if ( comments_open() || '0' != get_comments_number() ) : ?>
						<span class="comments-popup-link">
						<?php comments_popup_link( __( 'Leave a Reply', 'autofocus' ), _x( '1 Reply', 'comments number', 'autofocus' ), _x( '% Replies', 'comments number', 'autofocus' ), 'comments-link', __( 'Comments closed', 'autofocus' ) ); ?>
						</span>
					<?php endif; ?>
				</div><!-- .entry-meta -->
			<?php endwhile; ?>

	<?php else : ?>

		<div id="post-0" class="hentry">
			<h2 class="entry-title">
				<?php _e( 'Not Found', 'autofocus' ); ?>
			</h2><!-- .entry-title -->
			<div id="entry-content">
				<p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'autofocus' ); ?></p>
				<?php get_search_form(); ?>
			</div><!-- #entry-content -->
		</div><!-- #post-0 -->

	<?php endif; ?>

	</div><!-- #content -->

<?php get_footer(); ?>