WordPress.org

Make WordPress Core

Ticket #45386: 45386.3.diff

File 45386.3.diff, 6.9 KB (added by gziolo, 21 months ago)

Updated version with a local image

  • src/wp-admin/css/about.css

     
    476476        margin: 0.6em 0;
    477477}
    478478
     479.freedoms-php .about-wrap .col .freedoms-image {
     480        background-image: url('../images/freedoms.png');
     481        background-size: 100%;
     482        padding-top: 100%;
     483}
     484.freedoms-php .about-wrap .col:nth-of-type(2) .freedoms-image {
     485        background-position: 0 34%;
     486}
     487.freedoms-php .about-wrap .col:nth-of-type(3) .freedoms-image {
     488        background-position: 0 66%;
     489}
     490.freedoms-php .about-wrap .col:nth-of-type(4) .freedoms-image {
     491        background-position: 0 100%;
     492}
     493
    479494/*------------------------------------------------------------------------------
    480495  4.0 - Media Queries
    481496------------------------------------------------------------------------------*/
     
    507522        .about-wrap .four-col .col {
    508523                min-width: 48% !important;
    509524        }
    510        
     525
    511526        .about-wrap .eight-col .col {
    512527                min-width: 24% !important;
    513528        }
     
    518533                display: block;
    519534                margin: 0 auto;
    520535        }
    521        
     536
    522537        .about-wrap figcaption {
    523538                position: relative;
    524539                margin-top: 10px;
  • src/wp-admin/freedoms.php

     
    4444</div>
    4545
    4646<?php else : ?>
    47 <div class="about-wrap-content">
    48         <p class="about-description"><?php printf( __( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ), 'https://wordpress.org/about/license/' ); ?></p>
     47<div class="about-wrap-content">       
     48        <div class="feature-section one-col">
     49                <div class="col">
     50                        <h2><?php _e( 'Freedoms' ); ?></h2>
     51                        <p class="about-description"><?php printf( __( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ), 'https://wordpress.org/about/license/' ); ?></p>
     52                </div>
     53        </div>
     54       
     55        <div class="feature-section four-col">
     56                <div class="col">
     57                        <div class="freedoms-image"></div>
     58                        <h3><?php _e( 'The 1st Freedom' ); ?></h3>
     59                        <p><?php _e( 'To run the program for any purpose.' ); ?></p>
     60                </div>
     61                <div class="col">
     62                        <div class="freedoms-image"></div>
     63                        <h3><?php _e( 'The 2nd Freedom' ); ?></h3>
     64                        <p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
     65                </div>
     66                <div class="col">
     67                        <div class="freedoms-image"></div>
     68                        <h3><?php _e( 'The 3rd Freedom' ); ?></h3>
     69                        <p><?php _e( 'To redistribute.' ); ?></p>
     70                </div>
     71                <div class="col">
     72                        <div class="freedoms-image"></div>
     73                        <h3><?php _e( 'The 4th Freedom' ); ?></h3>
     74                        <p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
     75                </div>
     76        </div>
    4977
    50         <ol start="0">
    51                 <li><p><?php _e( 'You have the freedom to run the program, for any purpose.' ); ?></p></li>
    52                 <li><p><?php _e( 'You have access to the source code, the freedom to study how the program works, and the freedom to change it to make it do what you wish.' ); ?></p></li>
    53                 <li><p><?php _e( 'You have the freedom to redistribute copies of the original program so you can help your neighbor.' ); ?></p></li>
    54                 <li><p><?php _e( 'You have the freedom to distribute copies of your modified versions to others. By doing this you can give the whole community a chance to benefit from your changes.' ); ?></p></li>
    55         </ol>
    56 
    57         <p><?php printf( __( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We&#8217;re flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ), 'https://wordpressfoundation.org/trademark-policy/' ); ?></p>
    58 
    59         <p><?php
    60 
    61         $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
    62         $themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
    63 
    64         printf( __( 'Every plugin and theme in WordPress.org&#8217;s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' ); ?></p>
    65 
    66         <p><?php _e( 'Don&#8217;t you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>
     78        <div class="feature-section one-col">
     79                <div class="col">
     80                        <p><?php printf( __( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We&#8217;re flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ), 'https://wordpressfoundation.org/trademark-policy/' ); ?></p>
     81               
     82                        <p><?php
     83               
     84                        $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
     85                        $themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
     86               
     87                        printf( __( 'Every plugin and theme in WordPress.org&#8217;s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' ); ?></p>
     88               
     89                        <p><?php _e( 'Don&#8217;t you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>
     90                </div>
     91        </div>
    6792</div>
    6893
    6994<?php endif; ?>