Making WordPress.org


Ignore:
Timestamp:
05/24/2015 08:06:47 PM (10 years ago)
Author:
ocean90
Message:

Rosetta Theme: Responsive and other improvements.

  • Add template for 404 error.
  • Add template for front page which was previously the index template.
  • Update index template to support static front page and page for posts.
  • Update comments template to use wp_list_comments() and comment_form().
  • Update styling of blog posts.

see #1049.

File:
1 edited

Legend:

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

    r465 r1615  
    11<?php get_header(); ?>
    2     <div class="outer" id="mid-wrapper">
    3         <div class="wrapper">
    4             <div class="section blog">
    5                 <h3><?php _e('Blog', 'rosetta');?></h3>
     2
     3<div id="pagebody">
     4    <div class="wrapper">
     5        <div class="col-9">
     6            <?php
     7            if ( have_posts()) :
     8                while (have_posts() ) : the_post(); ?>
     9                    <h2 class="fancy"><?php the_title(); ?></h2>
     10
     11                    <div class="meta">
     12                        <?php rosetta_entry_meta(); ?>
     13                    </div>
     14
     15                    <div class="storycontent">
     16                        <?php the_content( 'Read on for more &raquo;', 'rosetta' ); ?>
     17                    </div>
     18
     19                    <?php comments_template(); ?>
     20                <?php endwhile;
     21            else: ?>
     22                <p><?php _e( 'Sorry, no posts matched your criteria.', 'rosetta' ); ?></p>
     23            <?php endif; ?>
     24
     25            <?php posts_nav_link(' &#8212; ', __( '&laquo; Newer Posts', 'rosetta' ), __( 'Older Posts &raquo;', 'rosetta' ) ); ?>
     26        </div>
     27        <div class="col-3">
     28            <div class="blog-categories">
     29                <h4><?php _e( 'Categories', 'rosetta' ); ?></h4>
     30                <ul>
     31                    <?php wp_list_categories( 'title_li=&show_count=1&orderby=count&order=DESC&number=10' ); ?>
     32                </ul>
    633            </div>
    734        </div>
    835    </div>
    9     <?php if (have_posts()) : ?>
    10         <?php while (have_posts()) : the_post(); ?>
    11         <div class="wrapper">
    12         <div class="section blog">
    13                 <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
     36</div>
    1437
    15                 <p><small><em><?php the_time(__('F j, Y', 'rosetta')); ?>, <?php the_author_link(); ?></em></small></p>
    16 
    17                 <?php the_content(__('Read the rest of this entry &raquo;', 'rosetta')); ?>
    18 
    19                 <?php comments_template(); ?>
    20                 <div class="navigation">
    21                         <div class="nav-previous"><?php previous_post_link('&larr; %link') ?></div>
    22                         <div class="nav-next"><?php next_post_link('%link &rarr;') ?></div>
    23                 </div>
    24 
    25         </div>
    26         </div>
    27 
    28         <?php endwhile; ?>
    29 
    30     <?php endif; ?>
    31 <?php get_footer(); ?>
     38<?php get_footer();
Note: See TracChangeset for help on using the changeset viewer.