Making WordPress.org


Ignore:
Timestamp:
05/25/2015 10:30:18 PM (11 years ago)
Author:
ocean90
Message:

Rosetta Theme: Responsive and other improvements.

  • Fix missing content on single posts.
  • Update archive template.
  • Update contact page template.
  • Add previous/next post navigation to single posts.
  • Make more link text translatable.

see #1049.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/single.php

    r1615 r1624  
    1414
    1515                                        <div class="storycontent">
    16                                                 <?php the_content( 'Read on for more &raquo;', 'rosetta' ); ?>
     16                                                <?php the_content(); ?>
    1717                                        </div>
    1818
    19                                         <?php comments_template(); ?>
    20                                 <?php endwhile;
     19                                        <?php
     20                                        // Previous/next post navigation.
     21                                        the_post_navigation( array(
     22                                                'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'rosetta' ) . '</span> ' .
     23                                                        '<span class="screen-reader-text">' . __( 'Next post:', 'rosetta' ) . '</span> ' .
     24                                                        '<span class="post-title">%title</span>',
     25                                                'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'rosetta' ) . '</span> ' .
     26                                                        '<span class="screen-reader-text">' . __( 'Previous post:', 'rosetta' ) . '</span> ' .
     27                                                        '<span class="post-title">%title</span>',
     28                                        ) );
     29
     30                                        // If comments are open or we have at least one comment, load up the comment template.
     31                                        if ( comments_open() || get_comments_number() ) {
     32                                                comments_template();
     33                                        }
     34
     35                                endwhile;
    2136                        else: ?>
    2237                                <p><?php _e( 'Sorry, no posts matched your criteria.', 'rosetta' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.