-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
86 lines (86 loc) · 3.47 KB
/
index.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php get_header(); ?>
<div class="row">
<div class="sideBar">
<div class="pageNav">
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<!-- <h1>Archive</h1> -->
<h1><a href="<?php bloginfo('url'); ?>/feed">Feed</a></h1>
<!-- <h1><img src="<?php bloginfo('template_url'); ?>/images/triangleRight.png" />Topics</h1> -->
</div>
</div><!--sideBar-->
<?php query_posts($query_string . '&cat=-14,-25,-71'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- if it's a tweet display this way - except I removed tweets in the arguments in the above query, because I don't like them anymore -->
<?php if ( in_category('71') ) { ?>
<div class="contentWithSidebar post tweet" 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>
<?php edit_post_link('edit', '', ''); ?>
</div>
</div><!--metadata-->
<div class="entry">
<div class="text">
<a href="http://twitter.com/#!/hughstimson" class="tweetBird"><img src="<?php bloginfo('template_url'); ?>/images/tweet.png" class="tweetBird" /></a>
<?php the_content('Read the rest of this entry »'); ?>
</div>
</div><!-- entry -->
<?php trackback_rdf(); ?>
<div class="commentsThread">
<?php comments_template(); ?>
</div>
</div><!-- post -->
<!-- for all other (non-tweet) posts display the normal way -->
<?php } else { ?>
<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 class="commentsThread">
<?php comments_template(); ?>
</div>
</div><!-- post -->
<?php } ?>
<?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(' · ', '<span class="navArrow">←</span> newer posts', 'older posts <span class="navArrow">→</span>'); ?></h1>
</div>
</div><!--row-->
<?php get_footer(); ?>