forked from ozh/ozh-tweet-archive-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
38 lines (27 loc) · 887 Bytes
/
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
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<!-- !BEGIN #tweets -->
<div id="tweets">
<h2>Recent tweets
<?php if( get_option( 'page_for_posts' ) ) echo "and replies"; ?>
<?php if( $paged > 1 ) echo "« page $paged"; ?>
</h2>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="tweet <?php echo otat_get_tweet_style(); ?>">
<?php the_content(); ?>
</div>
<?php get_template_part( 'post_meta' ); ?>
</div>
<?php endwhile; ?>
<div class="pagination">
<div class="older"><?php next_posts_link('« Older tweets') ?></div>
<div class="newer"><?php previous_posts_link('Newer tweets »') ?></div>
</div>
</div>
<!-- END #tweets -->
<?php else : ?>
<h2>No posts found</h2>
<?php get_search_form(); ?>
<?php endif; ?>
<?php get_footer(); ?>