-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
47 lines (47 loc) · 1.92 KB
/
category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php get_header(); ?>
<div class="row">
<div class="sideBar">
<h1 class="backLink"><a href="<?php bloginfo('url'); ?>">← back to blog</a></h1>
<p>showing posts in <span class="topics"><?php single_cat_title(); ?></p>
</div><!--sideBar-->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="contentWithSidebar post" id="post-<?php the_ID(); ?>">
<div class="metadata">
<div class="bar"></div>
<div class="date">
<?php the_time('j M Y') ?>
</div>
<ul class="topics">
<?php
foreach((get_the_category()) as $category) {
if ($category->cat_name != 'Uncategorized') {echo '<a href="'. get_category_link( $category->term_id ).'" title="' . sprintf( __( "View all posts in %s" ), $category->name ).'"'.'><li>'.$category->name.'</li></a>'; } }
?>
</ul>
<div class="commentsLink">
<?php comments_popup_link ('comment', '<span class="blue">1</span> comment', '<span class="blue">%</span> comments', ''); ?>
</div>
<div>
<?php edit_post_link('edit', '', ''); ?>
</div>
</div><!--metadata-->
<div class="entry">
<h2>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<div class="text">
<?php the_content('Read the rest of this entry »'); ?>
</div>
</div><!-- entry -->
<?php trackback_rdf(); ?>
</div><!-- post -->
<?php comments_template(); ?>
<?php endwhile; else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<!-- <?php include (TEMPLATEPATH . "/searchform.php"); ?> -->
<?php endif; ?>
<div class="contentWithDoubleSidebar" id="postsNav">
<h1><?php posts_nav_link(' · ', '← newer posts', 'older posts →'); ?></h1>
</div>
</div><!--row-->
<?php get_footer(); ?>