source: trunk/www.guidonia.net/wp/wp-content/themes/default/single.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 2.8 KB
Line 
1<?php
2/**
3 * @package WordPress
4 * @subpackage Default_Theme
5 */
6
7get_header();
8?>
9
10 <div id="content" class="widecolumn" role="main">
11
12 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
13
14 <div class="navigation">
15 <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
16 <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
17 </div>
18
19 <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
20 <h2><?php the_title(); ?></h2>
21
22 <div class="entry">
23 <?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'kubrick') . '</p>'); ?>
24
25 <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
26 <?php the_tags( '<p>' . __('Tags:', 'kubrick') . ' ', ', ', '</p>'); ?>
27
28 <p class="postmetadata alt">
29 <small>
30 <?php /* This is commented, because it requires a little adjusting sometimes.
31 You'll need to download this plugin, and follow the instructions:
32 http://binarybonsai.com/wordpress/time-since/ */
33 /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); $time_since = sprintf(__('%s ago', 'kubrick'), time_since($entry_datetime)); */ ?>
34 <?php printf(__('This entry was posted %1$s on %2$s at %3$s and is filed under %4$s.', 'kubrick'), $time_since, get_the_time(__('l, F jS, Y', 'kubrick')), get_the_time(), get_the_category_list(', ')); ?>
35 <?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "kubrick"), get_post_comments_feed_link()); ?>
36
37 <?php if ( comments_open() && pings_open() ) {
38 // Both Comments and Pings are open ?>
39 <?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); ?>
40
41 <?php } elseif ( !comments_open() && pings_open() ) {
42 // Only Pings are Open ?>
43 <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); ?>
44
45 <?php } elseif ( comments_open() && !pings_open() ) {
46 // Comments are open, Pings are not ?>
47 <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'kubrick'); ?>
48
49 <?php } elseif ( !comments_open() && !pings_open() ) {
50 // Neither Comments, nor Pings are open ?>
51 <?php _e('Both comments and pings are currently closed.', 'kubrick'); ?>
52
53 <?php } edit_post_link(__('Edit this entry', 'kubrick'),'','.'); ?>
54
55 </small>
56 </p>
57
58 </div>
59 </div>
60
61 <?php comments_template(); ?>
62
63 <?php endwhile; else: ?>
64
65 <p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p>
66
67<?php endif; ?>
68
69 </div>
70
71<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.