Make WordPress Core


Ignore:
Timestamp:
09/04/2014 03:04:02 PM (10 years ago)
Author:
helen
Message:

Final about page for 4.0. Enjoy the videos!

props ryelle, melchoyce, smashcut, wonderboymusic, helen.
fixes #29494.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/about.php

    r29684 r29706  
    1212wp_enqueue_style( 'wp-mediaelement' );
    1313wp_enqueue_script( 'wp-mediaelement' );
    14 add_action( 'admin_footer', 'wp_underscore_playlist_templates', 0 );
     14wp_localize_script( 'mediaelement', '_wpmejsSettings', array(
     15    'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
     16    'pauseOtherPlayers' => ''
     17) );
    1518
    1619$title = __( 'About' );
     
    4144<div class="changelog">
    4245    <div class="about-overview">
    43         <h2 class="about-headline-callout"><?php _e( 'Manage your media with style' ); ?></h2>
    44         <!-- media-grid-cropped.png -->
    45         <img class="about-overview-img" src="https://i.cloudup.com/gFjdHZjkbI.png" />
    46         <p><?php _e( 'Explore your uploads in a beautiful, endless grid. A new details preview makes viewing and editing any amount of media in sequence a snap.' ); ?></p>
     46        <?php if ( ( $locale = get_locale() ) && 'en_' === substr( $locale, 0, 3 ) ) : ?>
     47            <embed src="//v.wordpress.com/bUdzKMro" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true" wmode="transparent"></embed>
     48        <?php else : ?>
     49            <img class="about-overview-img" src="//s.w.org/images/core/4.0/wp40.png" width="640" height="360" />
     50        <?php endif; ?>
    4751    </div>
    4852
     
    5155    <div class="feature-section col two-col">
    5256        <div class="col-1">
    53             <!-- oembed.mp4 -->
    54             <?php
    55                 echo wp_video_shortcode( array(
    56                     'mp4'      => 'https://i.cloudup.com/IdZ7t3ixES.mp4',
    57                     // 'ogv'      => '//s.w.org/images/core/3.9/widgets.ogv',
    58                     // 'webm'     => '//s.w.org/images/core/3.9/widgets.webm',
    59                     'loop'     => true,
    60                     'autoplay' => true,
    61                     'width'    => 499
    62                 ) );
    63             ?>
     57            <h3><?php _e( 'Manage your media with style' ); ?></h3>
     58            <p><?php _e( 'Explore your uploads in a beautiful, endless grid. A new details preview makes viewing and editing any amount of media in sequence a snap.' ); ?></p>
     59        </div>
     60        <div class="col-2 last-feature">
     61            <img src="//s.w.org/images/core/4.0/media.jpg" />
     62        </div>
     63    </div>
     64
     65    <hr />
     66
     67    <div class="feature-section col two-col">
     68        <div class="col-1">
     69            <div class="about-video about-video-embed">
     70                <?php
     71                    echo wp_video_shortcode( array(
     72                        'mp4'      => '//s.w.org/images/core/4.0/embed.mp4',
     73                        'ogv'      => '//s.w.org/images/core/4.0/embed.ogv',
     74                        'webm'      => '//s.w.org/images/core/4.0/embed.webm',
     75                        'loop'     => true,
     76                        'autoplay' => true,
     77                        'width'    => 500,
     78                        'height'   => 352
     79                    ) );
     80                ?>
     81            </div>
    6482        </div>
    6583        <div class="col-2 last-feature">
     
    7896        </div>
    7997        <div class="col-2 last-feature">
    80             <!-- focus.png -->
    81             <img src="https://i.cloudup.com/DhokGXMLmR.png" />
     98            <div class="about-video about-video-focus">
     99                <?php
     100                    echo wp_video_shortcode( array(
     101                        'mp4'      => '//s.w.org/images/core/4.0/focus.mp4',
     102                        'ogv'      => '//s.w.org/images/core/4.0/focus.ogv',
     103                        'webm'      => '//s.w.org/images/core/4.0/focus.webm',
     104                        'loop'     => true,
     105                        'autoplay' => true,
     106                        'width'    => 500,
     107                        'height'   => 281
     108                    ) );
     109                ?>
     110            </div>
    82111        </div>
    83112    </div>
     
    87116    <div class="feature-section col two-col">
    88117        <div class="col-1">
    89             <!-- plugins.png -->
    90             <img src="https://i.cloudup.com/6hlYGuLiTq.png" />
     118            <img src="//s.w.org/images/core/4.0/plugins.png" />
    91119        </div>
    92120        <div class="col-2 last-feature">
    93             <h3><?php _e( 'Finding the right plugin' ); ?></h3>
     121            <h3 class="higher"><?php _e( 'Finding the right plugin' ); ?></h3>
    94122            <p><?php _e( 'There are more than 30,000 free and open source plugins in the WordPress plugin directory. WordPress 4.0 makes it easier to find the right one for your needs, with new metrics, improved search, and a more visual browsing experience.' ); ?></p>
    95123            <a href="<?php echo admin_url( 'plugin-install.php' ); ?>" class="button button-large button-primary"><?php _e( 'Browse plugins' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.