-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
executable file
·38 lines (38 loc) · 1.74 KB
/
single.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
<?php // Setup read more url variable
$template_url = get_bloginfo('template_url');
$read_more = "<img src=\"$template_url/images/entry-more.png\" alt=\"Read more\"/>";
?>
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<div id="main-top">
<div class="main-top-left">
<h4><?php the_time(__('F j, Y')) ?></h4>
<div class="single-comments">
<a href="#comments"><?php comments_number('', '1', '%'); ?></a>
</div>
</div>
<?php if (is_file(STYLESHEETPATH . '/subscribe.php')) include(STYLESHEETPATH . '/subscribe.php'); else include(TEMPLATEPATH . '/subscribe.php'); ?>
</div>
<div id="main" class="clear">
<div id="content">
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('clear single'); ?>>
<h1 class="title"><?php the_title(); ?></h1>
<div class="entry single">
<?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail('index-thumb', array('class' => 'single-post-thm alignright border') ); ?>
<?php the_content(__('Read more', 'traction') . $read_more); ?>
<?php edit_post_link('<p>' . __('Edit This', 'traction').'</p>'); ?>
<?php wp_link_pages(); ?>
</div><!--end entry-->
<div class="meta clear">
<div class="cats"><?php _e('<em>Read more from</em>', 'traction') ?> <?php the_category(', '); ?></div>
<div class="tags"><?php the_tags(''); ?></div>
</div><!--end meta-->
</div><!--end post-->
<?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
<?php comments_template('', true); ?>
<?php else : ?>
<?php endif; ?>
</div><!--end content-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>