-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
81 lines (67 loc) · 2.7 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
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!-- post -->
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php if( is_single() ) { ?>
<h1 class="post-title"><?php the_title(); ?></h1>
<?php } else {
// post thumbnail if it exist
if ( has_post_thumbnail() && is_sticky() ) {
the_post_thumbnail('sticky-thumb');
}?>
<h1 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php } ?>
<div class="post-text">
<?php
the_content(__('Read the full post','comet').' »');
wp_link_pages('before=<div class="post-pages">'.__('Pages','comet').':&after=</div>&next_or_number=number&pagelink=<span>%</span>');
?>
</div>
<?php // if sticky, don't bother with meta
if ( ! ( has_post_thumbnail() && is_sticky() ) ) {
?>
<div class="post-meta">
<div class="row">
<?php if ( comments_open() ) { ?>
<div class="alignright"><?php comments_popup_link(__('No Comments','comet'),__('1 Comment','comet'),__('% Comments','comet')); ?></div>
<?php } ?>
<span class="post-author">by <?php the_author() ?> on </span><em><?php the_time('F j, Y') ?></em>
• <a href="<?php the_permalink() ?>" rel="bookmark">Permalink</a>
<?php edit_post_link(__('Edit Post','comet'), ' • ', ''); ?>
</div>
<div class="row"><?php _e('Posted in','comet'); ?> <?php the_category(', ') ?></div>
<div class="row"><?php the_tags(__('Tagged ','comet').' ', ', ', '');?></div>
</div>
<div class="print-view"
<p><em>Posted by <?php the_author() ?> on <?php the_time('F j, Y') ?></em></p>
<p><?php the_permalink(); ?></p>
</div>
<?php
/* end if sticky */
}
?>
</div>
<!--/post -->
<?php if (is_single()) { ?>
<div class="post post-nav">
<?php previous_post_link('<div class="alignleft"><i>'.__('Previous Post','comet').'</i><br />%link</div>'); ?>
<?php next_post_link('<div class="alignright"><i>'.__('Next Post','comet').'</i><br />%link</div>'); ?>
</div>
<?php } ?>
<div class="sep"></div>
<?php comments_template(); ?>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« '.__('Older Posts','comet')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Posts','comet').' »') ?></div>
</div>
<?php else : ?>
<div class="post">
<h1 class="post-title"><?php _e('Post not found','comet'); ?></h1>
<div class="post-text">
<p><?php _e('The post you were looking for could not be found.','comet'); ?></p>
</div>
</div>
<?php endif; ?>
<?php get_footer(); ?>