Make WordPress Core

Ticket #34663: 34663.19.diff

File 34663.19.diff, 3.6 KB (added by melchoyce, 9 years ago)
  • src/wp-admin/about.php

     
    8585                                <div class="embed-container">
    8686                                        <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>
    8787                                </div>
     88                        </div>
     89                        <div class="col">
    8890                                <h3><?php _e( 'Embed your WordPress content' ); ?></h3>
    8991                                <p><?php _e( 'Now you can embed your posts on other sites, even other WordPress sites. Simply drop a post URL into the editor and see an instant embed preview, complete with the title, excerpt, and featured image if you&#8217;ve set one. We&#8217;ll even include your site icon and links for comments and sharing.' ); ?></p>
    9092                        </div>
     93                </div>
     94
     95                <hr />
     96
     97                <div class="feature-section two-col">
    9198                        <div class="col">
    92                                 <div class="embed-container">
    93                                         <?php
    94                                         $embed2 = get_site_transient( 'about-page-embed-2' );
    95                                         if ( false === $embed2 ) {
    96                                                 $embed2 = wp_oembed_get( 'https://cloudup.com/cD3duXiAI5k' );
    97                                                 if ( ! $embed2 ) {
    98                                                         $embed2 = '{{unknown}}';
    99                                                 }
    100                                                 set_site_transient( 'about-page-embed-2', $embed2 );
    101                                         }
    102                                         echo '{{unknown}}' !== $embed2 ? $embed2 : '';
    103                                         ?>
     99                                <div class="embed-container embed-reverbnation">
     100                                        <iframe width="640" height="150" scrolling="no" frameborder="no" src="https://www.reverbnation.com/widget_code/html_widget/artist_607?widget_id=55&amp;pwc[song_ids]=3731874&amp;pwc[size]=small"></iframe>
    104101                                </div>
     102                        </div>
     103                        <div class="col">
    105104                                <h3><?php _e( 'Even more embed providers' ); ?></h3>
    106105                                <p><?php _e( 'In addition to post embeds, WordPress 4.4 also adds support for five new oEmbed providers: Cloudup, Reddit&nbsp;Comments, ReverbNation, Speaker&nbsp;Deck, and VideoPress.' ); ?></p>
    107106                        </div>
  • src/wp-admin/css/about.css

     
    141141        margin-right: 4.799999999%;
    142142        width: 47.6%;
    143143}
     144.about-wrap .feature-section.two-col .col {
     145        display: inline-block;
     146        float: none;
     147        margin-right: 4.799999999%;
     148        width: calc( 47.6% - 4px );
     149        vertical-align: middle;
     150}
    144151
    145152.about-wrap .three-col .col {
    146153        margin-right: 4.999999999%;
     
    186193        text-align: left;
    187194}
    188195
     196.about-wrap .feature-section.two-col h3 {
     197        margin-top: 0;
     198}
     199
    189200.about-wrap .feature-list h2 {
    190201        margin: 30px 0 15px;
    191202        text-align: center;
     
    273284        text-align: center;
    274285}
    275286
    276 .about-wrap .embed-cloudup iframe {
    277         height: 299px;
    278 }
    279 
    280287.about-wrap .embed-container iframe {
    281288        max-width: 100%;
    282289}
     
    498505                width: 100%;
    499506        }
    500507
     508        .about-wrap .feature-section.two-col .col,
    501509        .about-wrap .three-col .col,
    502510        .about-wrap .headline-feature .feature-section .col {
    503511                width: 100% !important;
    504512                float: none !important;
    505513        }
     514
     515        .about-wrap .feature-section.two-col .col:last-of-type {
     516                margin-top: 0;
     517        }
     518
     519        .feature-section.under-the-hood.three-col .col,
     520        .feature-section.under-the-hood.one-col .col {
     521                padding-bottom: 0;
     522        }
    506523}
    507524
    508525@media only screen and (max-width: 400px) {