-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
46 lines (27 loc) · 1.36 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
<?php get_header(); ?>
<div class="primary<?php if (!is_singular()) echo ' posts'; ?>">
<?php if (have_posts()) { ?>
<?php if (is_singular()) { // Single entries and pages ?>
<?php while (have_posts()) { the_post(); ?>
<div <?php post_class('entry'); ?>>
<div class="meta">
<?php the_title('<h1 class="title entry-title">', '</h1>'); ?>
<?php echo th_post_metadata(); ?>
</div>
<div class="content clearfix">
<?php if (!get_tarski_option('featured_header')) echo tarski_post_thumbnail(); ?>
<?php the_content(); ?>
</div>
<?php th_postend(); ?>
</div> <!-- /entry -->
<?php } // End entry loop ?>
<?php } else { ?>
<?php get_template_part('app/templates/loop'); ?>
<?php } // End loop types ?>
<?php } else { // If no posts ?>
<?php get_template_part('app/templates/no_posts'); ?>
<?php } // End loop ?>
<?php comments_template(); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>