WordPress.org

Making WordPress.org


Ignore:
Timestamp:
05/24/2015 08:06:47 PM (4 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/download-sidebar.php

    r465 r1615  
    11<?php
    2     $latest_release = $rosetta->rosetta->get_latest_release();
    3     if (false !== $latest_release):
     2global $rosetta;
     3$latest_release = $rosetta->rosetta->get_latest_release();
     4if ( false !== $latest_release ) :
     5    ?>
     6    <p class="download-meta">
     7        <a class="button download-button button-large button-large" href="<?php echo $latest_release['zip_url']; ?>">
     8            <strong><?php
     9                echo apply_filters( 'no_orphans',
     10                    sprintf(
     11                        __( 'Download WordPress %s', 'rosetta' ),
     12                        $latest_release['version']
     13                    )
     14                );
     15            ?></strong>
     16        </a>
     17        <span><?php printf( __( '.zip &mdash; %s MB', 'rosetta' ), $latest_release['zip_size_mb'] ); ?></span>
     18    </p>
     19
     20    <p class="download-tar">
     21        <a href="<?php echo $latest_release['targz_url']; ?>"><?php printf(
     22            __( 'Download .tar.gz &mdash; %s MB', 'rosetta' ),
     23            $latest_release['tar_size_mb'] );
     24        ?></a>
     25    </p>
     26
     27    <h3><?php _e( 'More download options', 'rosetta' ); ?></h3>
     28    <ul>
     29        <li><a href="/releases/#latest"><?php _e( 'Other file formats', 'rosetta' ); ?></a></li>
     30        <li><a href="/releases/#older"><?php _e( 'Older versions', 'rosetta' ); ?></a></li>
     31        <li><a href="/releases/#beta"><?php _e( 'Beta &amp; RC versions', 'rosetta' ); ?></a></li>
     32    </ul>
     33    <?php
     34endif;
    435?>
    536
    6                     <a class="download-button" href="<?php echo $latest_release['zip_url']; ?>">
    7                         <strong><?php echo apply_filters( 'no_orphans', sprintf(__('Download WordPress %s', 'rosetta'), $latest_release['version']) ); ?></strong>
    8                         <br />
    9                         <span><?php printf(__('.zip &mdash; %s MB', 'rosetta'), $latest_release['zip_size_mb']); ?></span>
    10                     </a>
    11                     <p class="download-tar"><a href="<?php echo $latest_release['targz_url']; ?>"><?php printf(__('Download .tar.gz &mdash; %s MB', 'rosetta'), $latest_release['tar_size_mb']);?></a></p>
     37<h3><?php _e( 'Resources', 'rosetta' ); ?></h3>
    1238
    13                     <h5><?php _e("More download options", 'rosetta'); ?></h5>
    14                     <ul>
    15                         <li><a href="/releases/#latest"><?php _e('Other file formats', 'rosetta'); ?></a></li>
    16                         <li><a href="/releases/#older"><?php _e('Older versions', 'rosetta'); ?></a></li>
    17                         <li><a href="/releases/#beta"><?php _e('Beta &amp; RC versions', 'rosetta'); ?></a></li>
    18                     </ul>
    19 <?php
    20     endif;
    21 ?>
    22                     <h5><?php _e('Resources', 'rosetta'); ?></h5>
     39<p><?php _e( 'For help with installing or using WordPress, consult our documentation in your language.', 'rosetta' ); ?></p>
    2340
    24                     <p><?php _e('For help with installing or using WordPress, consult our documentation in your language.', 'rosetta'); ?></p>
    25 
    26                     <ul>
    27                     <?php wp_list_bookmarks('categorize=0&category_before=&category_after=&title_li=&'); ?>
    28                     </ul>
    29 
     41<ul>
     42    <?php wp_list_bookmarks( 'categorize=0&category_before=&category_after=&title_li=&' ); ?>
     43</ul>
Note: See TracChangeset for help on using the changeset viewer.