-
Notifications
You must be signed in to change notification settings - Fork 8
/
attachment.php
50 lines (34 loc) · 1.76 KB
/
attachment.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
<?php get_header(); ?>
<div id="container">
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h1><?php the_title(); ?></h1>
<small class="meta">
<?php the_time(__('F jS, Y', 'greenpark')) ?> <?php _e('by', 'greenpark'); ?> <?php the_author() ?>
<?php edit_post_link(__( 'Edit this entry', 'greenpark' ), ' | ', ''); ?>
</small>
<div class="entry">
<?php the_content(''); ?>
<?php wp_link_pages('before=<ol class="page-link clearfix"><li><strong>Pages:</strong></li>&after=</ol>&pagelink=<li><span>%</span></li>'); ?>
<ul class="previousnext clearfix">
<?php previous_post_link('<li class="previous_post">%link</li>', '<span>' . (__('Previous Entry', 'greenpark')) . ':</span> %title'); ?>
<?php next_post_link('<li class="next_post">%link</li>', '<span>' . (__('Next Entry', 'greenpark')) . ':</span> %title'); ?>
</ul>
</div>
<div class="postmetadata">
<p class="categories">
<?php _e( 'Posted in ', 'greenpark' ); the_category(', '); ?>
</p>
<?php the_tags( '<p class="tags">Tags: ', ' ', '</p>'); ?>
</div>
<?php get_template_part( 'ads', 'middle' ); ?>
</div>
<?php comments_template('', true); ?>
<?php endwhile; else: ?>
<?php get_template_part( 'content', 'missing' ); ?>
<?php endif; ?>
</div> <!-- #content -->
</div> <!-- #container -->
<?php if(get_option('greenpark2_sidebar_disablesidebar') != true) get_sidebar(); ?>
<?php get_footer(); ?>