Make WordPress Core

Ticket #43865: 43865.4.diff

File 43865.4.diff, 3.2 KB (added by xkon, 7 years ago)
  • src/wp-admin/css/common.css

     
    12861286        float: none;
    12871287}
    12881288
     1289/* Privacy Policy settings for large screen */
     1290.tools-privacy-description {
     1291        max-width: 70%;
     1292}
     1293
    12891294@media only screen and (max-width: 1120px) {
     1295        .tools-privacy-description {
     1296                max-width: 80%;
     1297        }
     1298
    12901299        .filter-drawer {
    12911300                border-bottom: 1px solid #eee;
    12921301        }
     
    13031312}
    13041313
    13051314@media only screen and (max-width: 1000px) {
     1315        .tools-privacy-description {
     1316                max-width: 100%;
     1317        }
     1318
    13061319        .filter-items {
    13071320                float: none;
    13081321        }
  • src/wp-admin/privacy.php

     
    126126        <h1><?php _e( 'Privacy Tools' ); ?></h1>
    127127        <?php settings_errors(); ?>
    128128        <h2><?php _e( 'Privacy Policy page' ); ?></h2>
    129         <p>
     129        <p class="tools-privacy-description">
    130130                <?php _e( 'The first step towards privacy laws compliance is to have a comprehensive Privacy Policy.' ); ?>
    131131                <?php _e( 'If you already have a Privacy Policy page, please select it below. If not, create one.' ); ?>
    132132                <?php _e( 'The new policy will include the suggested privacy text.' ); ?>
    133133        </p>
    134         <p>
     134        <p class="tools-privacy-description">
    135135                <?php _e( 'After your Privacy Policy page is set, we suggest that you edit it.' ); ?>
    136136                <?php _e( 'On the edit page screen you will find additional privacy information added by your plugins.' ); ?>
    137137                <?php _e( 'We would also suggest reviewing your privacy policy from time to time, after a WordPress or a plugin update.' ); ?>
     
    162162                <?php
    163163        }
    164164        ?>
    165         <hr>
    166165        <table class="form-table tools-privacy-policy-page">
    167166                <tr>
    168                         <th scope="row">
    169                                 <?php
    170                                 if ( $privacy_policy_page_exists ) {
    171                                         _e( 'Change your Privacy Policy page' );
    172                                 } else {
    173                                         _e( 'Select a Privacy Policy page' );
    174                                 }
    175                                 ?>
    176                         </th>
    177                         <td>
    178                                 <form method="post" action="">
     167                        <form method="post" action="">
     168                                <th scope="row">
    179169                                        <label for="page_for_privacy_policy">
    180                                                 <?php _e( 'Either select an existing page:' ); ?>
     170                                                <?php _e( 'Select an existing page:' ); ?>
    181171                                        </label>
     172                                </th>
     173                                <td>
    182174                                        <input type="hidden" name="action" value="set-privacy-page" />
    183175                                        <?php
    184176                                        wp_dropdown_pages(
     
    190182                                                        'post_status'       => array( 'draft', 'publish' ),
    191183                                                )
    192184                                        );
    193 
    194185                                        wp_nonce_field( 'set-privacy-page' );
    195 
    196186                                        submit_button( __( 'Use This Page' ), 'primary', 'submit', false, array( 'id' => 'set-page' ) );
    197187                                        ?>
    198                                 </form>
    199 
    200                                 <form method="post" action="">
     188                                </td>
     189                        </form>
     190                </tr>
     191                <tr>
     192                        <form method="post" action="">
     193                                <th scope="row">
    201194                                        <input type="hidden" name="action" value="create-privacy-page" />
    202195                                        <span>
    203                                                 <?php _e( 'Or create a new page: ' ); ?>
     196                                                <?php _e( 'Create a new page: ' ); ?>
    204197                                        </span>
     198                                </th>
     199                                <td>
    205200                                        <?php
    206201                                        wp_nonce_field( 'create-privacy-page' );
    207        
    208202                                        submit_button( __( 'Create New Page' ), 'primary', 'submit', false, array( 'id' => 'create-page' ) );
    209203                                        ?>
    210                                 </form>
    211                         </td>
     204                                </td>
     205                        </form>
    212206                </tr>
    213207        </table>
    214208</div>