-
Notifications
You must be signed in to change notification settings - Fork 2
/
tag-photoblog.php
83 lines (60 loc) · 2.62 KB
/
tag-photoblog.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
<?php get_header(); ?>
<?php query_posts($query_string.'&posts_per_page='.(get_option('photoblog_thumb_count')+1)); ?>
<div id="content-container">
<div id="content">
<div id="body">
<?php if (have_posts()) : ?>
<!-- first item -->
<?php the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="date">
<span class="month"><?php the_time('M') ?></span>
<span class="day"><?php the_time('j') ?></span>
<span class="year"><?php the_time('Y') ?></span>
</div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'elegant-grunge'), get_the_title()); ?>"><?php the_title(); ?></a></h2>
<?php if ( get_option("show_author") ) : ?>
<div class="author"><?php the_author() ?></div>
<?php endif ;?>
<!-- <div class="info">by <?php the_author() ?></div> -->
<div class="entry">
<?php the_content(__('Continue reading', 'elegant-grunge')); ?>
</div>
<div class="clear"></div>
<p class="metadata">
<?php comments_popup_link(__('no comments', 'elegant-grunge'), __('1 comment', 'elegant-grunge'), __('% comments', 'elegant-grunge')); ?>
<?php the_tags(' | '.__('tags:', 'elegant-grunge').' ', ', ', ''); ?>
<?php if ( count(($categories=get_the_category())) > 1 || $categories[0]->cat_ID != 1 ) : ?>
| <?php _e('posted in', 'elegant-grunge')?> <?php the_category(', ') ?>
<?php endif; ?>
<?php edit_post_link(__('Edit', 'elegant-grunge'), ' | ', ''); ?>
</p>
</div>
<div class="hr"><hr /></div>
<!-- remaining items -->
<?php while (have_posts()) : the_post(); ?>
<?php if ( !has_image() ) continue; ?>
<?php if ( get_option('photoblog_frames') ) : ?>
<span class="frame-outer small"><span><span><span><span>
<?php endif; ?>
<?php the_thumbnail(get_option('photoblog_thumb_width'), get_option('photoblog_thumb_height')); ?>
<?php if ( get_option('photoblog_frames') ) : ?>
</span></span></span></span></span>
<?php endif; ?>
<?php endwhile; ?>
<div class="clear"></div>
<div class="navigation">
<div class="next"><?php next_posts_link(__('« Older Entries', 'elegant-grunge')) ?></div>
<div class="previous"><?php previous_posts_link(__('Newer Entries »', 'elegant-grunge')) ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e('Not Found', 'elegant-grunge') ?></h2>
<p class="center"><?php _e('Sorry, but you are looking for something that isn\'t here.', 'elegant-grunge') ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<div class="clear"></div>
</div>
<?php get_footer(); ?>