public
Description: An elegant, flexible WordPress theme
Homepage: http://tarskitheme.com/
Clone URL: git://github.com/ionfish/tarski.git
tarski / index.php
100644 62 lines (41 sloc) 1.749 kb
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
<?php get_header(); ?>
 
<div class="primary<?php if (!(is_single() || is_page())) echo ' posts'; ?>">
 
<?php if (have_posts()) { ?>
<?php if (is_single() || is_page()) { // Single entries and pages ?>
 
<?php while (have_posts()) { the_post(); ?>
<div <?php post_class('entry'); ?>>
<div class="meta">
<h1 class="title entry-title"><?php the_title(); ?></h1>
<?php if (is_attachment()) { ?>
<p class="metadata"><?php
echo '<span class="date updated">' . get_the_time(get_option('date_format')) . '</span>';
edit_post_link(__('edit','tarski'),' <span class="edit">(',')</span>');
?></p>
<?php } elseif (is_single()) { ?>
<p class="metadata"><?php
echo '<span class="date updated">' . get_the_time(get_option('date_format')) . '</span>';
tarski_post_categories_link();
tarski_author_posts_link();
tarski_comments_link();
edit_post_link(__('edit','tarski'),' <span class="edit">(',')</span>');
?></p>
<?php } else { ?>
<?php edit_post_link(__('edit page','tarski'), '<p class="metadata"><span class="edit">(', ')</span></p>'); ?>
<?php } ?>
</div>
<div class="content clearfix">
<?php the_content(); ?>
</div>
 
<?php th_postend(); ?>
</div> <!-- /entry -->
<?php } // End entry loop ?>
 
<?php } else { ?>
<?php include(TEMPLATEPATH . '/loop.php'); ?>
 
<?php } // End loop types ?>
 
<?php } else { // If no posts ?>
 
<?php include(TARSKIDISPLAY . "/no_posts.php"); ?>
<?php } // End loop ?>
 
 
<?php if (!is_attachment() && (is_single() || is_page())) comments_template(); ?>
 
</div>
<?php get_sidebar(); ?>
 
<?php get_footer(); ?>