Making WordPress.org

Ticket #1542: meta-1542.patch

File meta-1542.patch, 1.6 KB (added by chris_dev, 9 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/single.php

     
     1<?php
     2/**
     3 * Single post template.
     4 *
     5 * @package P2
     6 */
     7?>
     8<?php get_header(); ?>
     9
     10<div class="sleeve_main">
     11
     12        <div id="main">
     13
     14                <?php if ( have_posts() ) : ?>
     15
     16                        <?php while ( have_posts() ) : the_post(); ?>
     17
     18                                <div class="controls">
     19                                        <a href="#" id="togglecomments"><?php _e( 'Toggle Comment Threads', 'p2' ); ?></a>
     20                                        <span class="sep">&nbsp;|&nbsp;</span>
     21                                        <a href="#directions" id="directions-keyboard"><?php  _e( 'Keyboard Shortcuts', 'p2' ); ?></a>
     22                                        <span class="single-action-links"><?php do_action( 'p2_action_links' ); ?></span>
     23                                </div>
     24
     25                                <ul id="postlist">
     26                                <?php p2_load_entry(); ?>
     27                                </ul>
     28
     29                        <?php endwhile; ?>
     30
     31                <?php else : ?>
     32
     33                        <ul id="postlist">
     34                                <li class="no-posts">
     35                                <h3><?php _e( 'No posts yet!', 'p2' ); ?></h3>
     36                                </li>
     37                        </ul>
     38
     39                <?php endif; ?>
     40
     41                <div class="navigation">
     42                        <p class="nav-older"><?php previous_post_link( '%link', _x( '&larr; %title', 'Previous post link', 'p2' ) ); ?></p>
     43                        <p class="nav-newer"><?php next_post_link( '%link', _x( '%title &rarr;', 'Next post link', 'p2' ) ); ?></p>
     44                </div>
     45
     46        </div> <!-- main -->
     47
     48</div> <!-- sleeve -->
     49
     50<?php get_footer(); ?>
     51 No newline at end of file