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/chaoticsoul/home.php
<?php get_header(); ?>

	<div id="content" class="narrowcolumn">

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

		<!-- First Post -->
  	<?php $top_query = new WP_Query('showposts=1'); ?>
  	<?php while($top_query->have_posts()) : $top_query->the_post(); $first_post = $post->ID; ?>
			<?php
			$url 	= $_SERVER['REQUEST_URI'];
			$find = "page";
			$pos 	= strpos($url, $find);
			if ( $pos == false ) : ?>
			<?php if(!$stickied or is_sticky()) $stickied = true; ?>
			<div class="post top" id="post-<?php the_ID(); ?>">
			<h2 class="first"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent Link to %s', 'chaoticsoul'  ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a></h2>
				&bull;<?php the_time(get_option("date_format")); ?>  &bull; <?php comments_popup_link(__('Leave a Comment', 'chaoticsoul'), __('1 Comment', 'chaoticsoul'), __('% Comments', 'chaoticsoul')); ?> <?php edit_post_link(__('Edit', 'chaoticsoul'), '(', ')'); ?>
				<div class="entry">
					<?php the_content("<span class=\"continue\">" . __('Continue reading', 'chaoticsoul') . " '" . the_title('', '', false) . "'</span>"); ?>

					<p class="postmetadata"><?php printf(__('Posted in %s', 'chaoticsoul'), get_the_category_list(', ')); ?>
						<?php print get_the_term_list( $post->ID, 'post_tag', '<br />' . __( 'Tags' ) . ': ', ', ', ''); ?>
					</p>
				</div>
			</div>
			<?php endif; ?>
		<?php endwhile; ?>

		<!-- Next few posts -->
		<?php

		while(have_posts()) : the_post(); if(!($first_post == $post->ID) && !is_sticky()) : ?>

			<div class="post lastfive" id="post-<?php the_ID(); ?>">
			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent Link to %s', 'chaoticsoul'  ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a></h2>
				&bull;<?php the_time(get_option("date_format")); ?>  &bull; <?php comments_popup_link(__('Leave a Comment', 'chaoticsoul'), __('1 Comment', 'chaoticsoul'), __('% Comments', 'chaoticsoul')); ?> <?php edit_post_link(__('Edit', 'chaoticsoul'), '(', ')'); ?>
				<div class="entry">
					<?php the_content("<span class=\"continue\">" . __('Continue reading', 'chaoticsoul') . " '" . the_title('', '', false) . "'</span>"); ?>

					<p class="postmetadata"><?php printf(__('Posted in %s', 'chaoticsoul'), get_the_category_list(', ')); ?>
						<?php the_tags('<br />' .  __( 'Tags' ) . ': ', ', ', '');  ?>
					</p>
				</div>
			</div>

		<?php endif; endwhile; ?>

	<?php else : ?>

		<h2 class="center"><?php _e('Not Found', 'chaoticsoul'); ?></h2>
		<p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'chaoticsoul'); ?></p>
		<?php get_search_form(); ?>

	<?php endif; ?>

	<div class="navigation clearfix">
	<?php $_SERVER['REQUEST_URI']  = preg_replace("/(.*?).php(.*?)&(.*?)&(.*?)&_=/","$2$3",$_SERVER['REQUEST_URI']); ?>
		<div class="left"><?php next_posts_link('<span>&laquo;</span> '.__('Previous Entries', 'chaoticsoul').''); ?></div>
		<div class="right"><?php previous_posts_link(''.__('Next Entries', 'chaoticsoul').' <span>&raquo;</span>'); ?></div>
		<div class="clear"></div>
	</div>

	</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>