Commits

Doug Stewart  committed e7744a0

Added dropdown code for archives and categories to sidebar.php, altered theloop.php to show UTW tags _only_ if is_single() is true and stripped most of the cruft out of page.php by removing include() of theloop.php.

  • Participants
  • Parent commits ab1a4ca

Comments (0)

Files changed (4)

 
 <div id="wrapper">
 	<div id="content">
-		<?php include( TEMPLATEPATH . '/theloop.php' ); ?>
+	<?php if (have_posts()) : while (have_posts()) : the_post();?>
+	<div id="post-<?php the_ID(); ?>" class="wppost">
+		<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php echo strip_tags(get_the_title()) ?>"><?php the_title(); ?></a></h3>        
+	        <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
+	</div>
+		    <?php endwhile; endif; ?>
+		     <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
 	</div>
 </div>
 
 		}
 	} ?>
 	<?php endif; ?>
+
+	<li><h2>Quick Archives</h2>
+	<form id="archiveform" action="">
+	<select name="archive_chrono" onchange="window.location = (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
+	<option value=''>Select Month</option>
+	<?php wp_get_archives('type=monthly&format=option'); ?>
+	</select>
+	</form>
+	</li>
+
+	<li><h2>Quick Categories</h2>
+	<?php wp_dropdown_categories('orderby=name'); ?>
+	</li>
 </ul>
 
 </div>

File styles/default-inverted.css

 }
 
 #comments li.odd {
-	background: #2d3a70;
+	background: #eee;
 }
 
 #comments li.highlight {
 					} ?>
 					<div class="postinfo">
 						<span class="postcats">Posted in <?php the_category(', '); ?></span>
-						<?php if(function_exists(UTW_ShowTagsForCurrentPost)) { ?>
+						<?php if(function_exists(UTW_ShowTagsForCurrentPost)) { 
+						if(is_single()){ ?>
 						<br />
 						<span class="posttags">Tagged as: <?php UTW_ShowTagsForCurrentPost("commalist"); ?></span>
-					<?php } ?>
+					<?php }} ?>
 					</div>
 					<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
 			</div>