Make WordPress Core

Changeset 35840


Ignore:
Timestamp:
12/08/2015 11:28:27 PM (9 years ago)
Author:
ocean90
Message:

About Page: Add release video and update post embed.

Merge of [35839] to the 4.4 branch.

Props camikaos, siobhan, rosso99, wonderboymusic.
Fixes #34663.

Location:
branches/4.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

  • branches/4.4/src/wp-admin/about.php

    r35835 r35840  
    2222}
    2323
     24$video_url = 'https://videopress.com/embed/J44FHXvg?hd=true';
     25$locale    = str_replace( '_', '-', get_locale() );
     26list( $locale ) = explode( '-', $locale );
     27if ( 'en' !== $locale ) {
     28    $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url );
     29}
    2430
    2531wp_oembed_add_host_js();
     
    4248            <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
    4349        </h2>
     50
     51        <div class="headline-feature feature-video">
     52            <iframe width="1050" height="591" src="<?php echo esc_url( $video_url ); ?>" frameborder="0" allowfullscreen></iframe>
     53            <script src="https://videopress.com/videopress-iframe.js"></script>
     54        </div>
     55
     56        <hr>
    4457
    4558        <div class="headline-feature feature-section one-col">
     
    8497            <div class="col">
    8598                <div class="embed-container">
    86                     <blockquote data-secret="OcUe7B6Edh" class="wp-embedded-content"><a href="https://make.wordpress.org/core/2015/10/28/new-embeds-feature-in-wordpress-4-4/">New Embeds Feature in WordPress 4.4</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="display:none;" src="https://make.wordpress.org/core/2015/10/28/new-embeds-feature-in-wordpress-4-4/embed/#?secret=OcUe7B6Edh" data-secret="OcUe7B6Edh" width="600" height="338" title="Embedded WordPress Post" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
     99                    <blockquote data-secret="OcUe7B6Edh" class="wp-embedded-content"><a href="https://wordpress.org/news/2015/12/clifford/">WordPress 4.4 &ldquo;Clifford&rdquo;</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="display:none;" src="https://wordpress.org/news/2015/12/clifford/embed/#?secret=OcUe7B6Edh" data-secret="OcUe7B6Edh" width="600" height="338" title="<?php esc_attr_e( 'Embedded WordPress Post' ); ?>" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
    87100                </div>
    88101            </div>
  • branches/4.4/src/wp-admin/css/about.css

    r35835 r35840  
    182182
    183183.about-wrap .headline-feature h2 {
    184     margin: 50px 0 30px;
     184    margin: 30px 0 30px;
    185185    font-size: 2.2em;
    186186    font-weight: 300;
     
    227227/* 2.2 - Structure */
    228228
    229 .about-wrap .feature-video {
     229.about-wrap .headline-feature.feature-video {
    230230    position: relative;
    231231    margin: 40px 0;
    232     padding-bottom: 56.25%; /* video is 1280 x 720 */
     232    padding-bottom: 56.25%;
    233233    width: 100%;
     234    max-width: 100%;
    234235    height: 0;
    235236    text-align: center;
Note: See TracChangeset for help on using the changeset viewer.