Ticket #42087: 42087.4.diff
File 42087.4.diff, 30.3 KB (added by , 7 years ago) |
---|
-
src/wp-admin/about.php
9 9 /** WordPress Administration Bootstrap */ 10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 12 if ( ! wp_is_mobile() ) { 13 wp_enqueue_style( 'wp-mediaelement' ); 14 wp_enqueue_script( 'mediaelement-vimeo' ); 15 wp_enqueue_script( 'wp-mediaelement' ); 16 wp_localize_script( 'mediaelement', '_wpmejsSettings', array( 17 'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ), 18 'classPrefix' => 'mejs-', 19 'stretching' => 'responsive', 20 'pauseOtherPlayers' => '', 21 ) ); 22 } 23 24 $video_url = 'https://videopress.com/embed/AHz0Ca46?hd=true'; 25 $lang_code = str_replace( '_', '-', get_user_locale() ); 26 list( $lang_code ) = explode( '-', $lang_code ); 27 if ( 'en' !== $lang_code ) { 28 $video_url = add_query_arg( 'defaultLangCode', $lang_code, $video_url ); 29 } 12 wp_enqueue_script( 'underscore' ); 13 wp_add_inline_script( 'underscore', ' 30 14 15 ' ); 31 16 $title = __( 'About' ); 32 17 33 18 list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); 34 19 35 20 include( ABSPATH . 'wp-admin/admin-header.php' ); 36 21 ?> 37 <div class="wrap about-wrap ">22 <div class="wrap about-wrap full-width-layout"> 38 23 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> 39 24 40 25 <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s will smooth your design workflow and keep you safe from coding errors.' ), $display_version ); ?></p> … … 62 47 </div> 63 48 </div> 64 49 65 <hr /> 50 <div class="inline-svg full-width"> 51 <picture> 52 <source media="(max-width: 500px)" srcset="<?php echo 'http://svg.redradar.net/core/banner-mobile.svg'; ?>"> 53 <img src="<?php echo 'http://svg.redradar.net/core/banner.svg'; ?>" alt=""> 54 </picture> 55 </div> 66 56 67 <h2> 68 <?php 69 printf( 70 /* translators: %s: wrench emoji */ 71 __( 'Customizer Workflow Improved %s' ), 72 '🔧' 73 ); 74 ?> 75 </h2> 57 <div class="floating-header-section"> 58 <h2><?php _e( 'Customizer Workflow Improved' ); ?></h2> 76 59 77 <div class="headline-feature one-col"> 78 <div class="col"> 79 60 <div class="section-content"> 61 <div class="section-item"> 62 <div class="inline-svg"> 63 <img src="<?php echo 'http://svg.redradar.net/core/draft-and-schedule.svg'; ?>" alt=""> 64 </div> 65 <h3><?php _e( 'Draft and Schedule Site Design Customizations' ); ?></h3> 66 <p><?php _e( 'Yes, you read that right. Just like you can draft and revise posts and schedule them to go live on the date and time you choose, you can now tinker with your site’s design and schedule those design changes to go live as you please.' ); ?></p> 67 </div> 68 <div class="section-item"> 69 <div class="inline-svg"> 70 <img src="<?php echo 'http://svg.redradar.net/core/design-preview-links.svg'; ?>" alt=""> 71 </div> 72 <h3><?php _e( 'Collaborate with Design Preview Links' ); ?></h3> 73 <p><?php _e( 'Need to get some feedback on proposed site design changes? WordPress 4.9 gives you a preview link you can send to your team and customers so that you can collect and integrate feedback before you schedule the changes to go live. Can we say collaboration++?' ); ?></p> 74 </div> 75 <div class="section-item"> 76 <div class="inline-svg"> 77 <img src="<?php echo 'http://svg.redradar.net/core/locking.svg'; ?>" alt=""> 78 </div> 79 <h3><?php _e( 'Design Locking To Guard Your Changes' ); ?></h3> 80 <p><?php _e( 'Ever encounter a scenario where two designers walk into a project and designer A overrides designer B’s beautiful changes? WordPress 4.9’s design lock feature (similar to post locking) secures your draft design so that no one can make changes to it or erase all your hard work.' );?></p> 81 </div> 82 <div class="section-item"> 83 <div class="inline-svg"> 84 <img src="<?php echo 'http://svg.redradar.net/core/prompt.svg'; ?>" alt=""> 85 </div> 86 <h3><?php _e( 'A Prompt to Protect Your Work' ); ?></h3> 87 <p><?php _e( 'Were you lured away from your desk before you saved your new draft design? Fear not, when you return, WordPress 4.9 will politely ask whether or not you’d like to save your unsaved changes.' ); ?></p> 88 </div> 80 89 </div> 81 90 </div> 82 91 83 <div class="feature-section two-col"> 84 <div class="col"> 85 <h3><?php _e( 'Draft and Schedule Site Design Customizations' ); ?></h3> 86 <p><?php _e( 'Yes, you read that right. Just like you can draft and revise posts and schedule them to go live on the date and time you choose, you can now tinker with your site’s design and schedule those design changes to go live as you please.' ); ?></p> 87 </div> 88 <div class="col"> 89 <h3><?php _e( 'Collaborate with Design Preview Links' ); ?></h3> 90 <p><?php _e( 'Need to get some feedback on proposed site design changes? WordPress 4.9 gives you a preview link you can send to your team and customers so that you can collect and integrate feedback before you schedule the changes to go live. Can we say collaboration++?' ); ?></p> 91 </div> 92 <div class="col"> 93 <h3><?php _e( 'Design Locking To Guard Your Changes' ); ?></h3> 94 <p><?php _e( 'Ever encounter a scenario where two designers walk into a project and designer A overrides designer B’s beautiful changes? WordPress 4.9’s design lock feature (similar to post locking) secures your draft design so that no one can make changes to it or erase all your hard work.' );?></p> 95 </div> 96 <div class="col"> 97 <h3><?php _e( 'A Prompt to Protect Your Work' ); ?></h3> 98 <p><?php _e( 'Were you lured away from your desk before you saved your new draft design? Fear not, when you return, WordPress 4.9 will politely ask whether or not you’d like to save your unsaved changes.' ); ?></p> 92 <div class="floating-header-section"> 93 <h2><?php _e( 'Coding Enhancements' ); ?></h2> 94 95 <div class="section-content"> 96 <div class="section-item"> 97 <div class="inline-svg"> 98 <img src="<?php echo 'http://svg.redradar.net/core/syntax-highlighting.svg'; ?>" alt=""> 99 </div> 100 <h3><?php _e( 'Syntax Highlighting and Error Checking? Yes, Please!' ); ?></h3> 101 <p><?php _e( 'You’ve got a display problem but can’t quite figure out exactly what went wrong in the CSS you lovingly wrote. With syntax highlighting and error checking for CSS editing and the Custom HTML widget introduced in WordPress 4.8.1, you’ll pinpoint coding errors quickly. Practically guaranteed to help you scan code more easily and suss out and fix code errors quickly.' ); ?></p> 102 </div> 103 <div class="section-item"> 104 <div class="inline-svg"> 105 <img src="<?php echo 'http://svg.redradar.net/core/sandbox.svg'; ?>" alt=""> 106 </div> 107 <h3><?php _e( 'Sandbox for Safety' ); ?></h3> 108 <p><?php _e( 'The dreaded white screen. You’ll avoid it when working on themes and plugin code because WordPress 4.9 will warn you about saving an error. You’ll sleep better at night.' ); ?></p> 109 </div> 110 <div class="section-item"> 111 <div class="inline-svg"> 112 <img src="<?php echo 'http://svg.redradar.net/core/warning.svg'; ?>" alt=""> 113 </div> 114 <h3><?php _e( 'Warning: Potential Danger Ahead!' ); ?></h3> 115 <p><?php _e( 'When you edit themes and plugins directly, WordPress 4.9 will politely warn you that this is a dangerous practice. It will recommend that you backup your files before saving, so they don’t get overwritten by the next update. Take the safe route: your future self will thank you. Your team and customers will thank you.' );?></p> 116 </div> 99 117 </div> 100 118 </div> 101 119 102 <hr /> 103 104 <h2> 105 <?php 106 printf( 107 /* translators: %s: technologist (woman) emoji */ 108 __( 'Coding Enhancements %s' ), 109 '👩🏾‍💻' 110 ); 111 ?> 112 </h2> 120 <div class="floating-header-section"> 121 <h2><?php _e( 'Even More Widget Updates' ); ?></h2> 113 122 114 <div class="feature-section three-col"> 115 <div class="col"> 116 <h3><?php _e( 'Syntax Highlighting and Error Checking? Yes, Please!' ); ?></h3> 117 <p><?php _e( 'You’ve got a display problem but can’t quite figure out exactly what went wrong in the CSS you lovingly wrote. With syntax highlighting and error checking for CSS editing and the Custom HTML widget introduced in WordPress 4.8.1, you’ll pinpoint coding errors quickly. Practically guaranteed to help you scan code more easily and suss out and fix code errors quickly.' ); ?></p> 118 </div> 119 <div class="col"> 120 <h3><?php _e( 'Sandbox for Safety' ); ?></h3> 121 <p><?php _e( 'The dreaded white screen. You’ll avoid it when working on themes and plugin code because WordPress 4.9 will warn you about saving an error. You’ll sleep better at night.' ); ?></p> 122 </div> 123 <div class="col"> 124 <h3><?php _e( 'Warning: Potential Danger Ahead!' ); ?></h3> 125 <p><?php _e( 'When you edit themes and plugins directly, WordPress 4.9 will politely warn you that this is a dangerous practice. It will recommend that you backup your files before saving, so they don’t get overwritten by the next update. Take the safe route: your future self will thank you. Your team and customers will thank you.' );?></p> 123 <div class="section-content"> 124 <div class="section-item"> 125 <div class="inline-svg"> 126 <img src="<?php echo 'http://svg.redradar.net/core/gallery-widget.svg'; ?>" alt=""> 127 </div> 128 <h3><?php _e( 'The New Gallery Widget' ); ?></h3> 129 <p><?php _e( 'An incremental improvement to the media changes hatched in WordPress 4.8, you can now add a gallery via widget. Yes!' ); ?></p> 130 </div> 131 <div class="section-item"> 132 <div class="inline-svg"> 133 <img src="<?php echo 'http://svg.redradar.net/core/media-button.svg'; ?>" alt=""> 134 </div> 135 <h3><?php _e( 'Press a Button, Add Media' ); ?></h3> 136 <p><?php _e( 'Want to add media to your text widget? Embed images, video, and audio directly into the widget along with your text, with our simple but useful Add Media button. Woo!' ); ?></p> 137 </div> 126 138 </div> 127 139 </div> 128 140 129 <hr /> 130 131 <h2> 132 <?php 133 printf( 134 /* translators: %s: frame with picture emoji */ 135 __( 'Even More Widget Updates %s' ), 136 '🖼' 137 ); 138 ?> 139 </h2> 141 <div class="floating-header-section"> 142 <h2><?php _e( 'Site Building Improvements' ); ?></h2> 140 143 141 <div class="feature-section two-col"> 142 <div class="col"> 143 <h3><?php _e( 'The New Gallery Widget' ); ?></h3> 144 <p><?php _e( 'An incremental improvement to the media changes hatched in WordPress 4.8, you can now add a gallery via widget. Yes!' ); ?></p> 145 </div> 146 <div class="col"> 147 <h3><?php _e( 'Press a Button, Add Media' ); ?></h3> 148 <p><?php _e( 'Want to add media to your text widget? Embed images, video, and audio directly into the widget along with your text, with our simple but useful Add Media button. Woo!' ); ?></p> 144 <div class="section-content"> 145 <div class="section-item"> 146 <div class="inline-svg"> 147 <img src="<?php echo 'http://svg.redradar.net/core/theme-switching.svg'; ?>" alt=""> 148 </div> 149 <h3><?php _e( 'More Reliable Theme Switching' ); ?></h3> 150 <p><?php _e( 'When you switch themes, widgets sometimes think they can just up and move location. Improvements in WordPress 4.9 offer more persistent menu and widget placement when you decide it’s time for a new theme. Additionally, you can preview installed themes or download, install, and preview new themes right. Nothing says handy like being able to preview before you deploy. ' ); ?></p> 151 </div> 152 <div class="section-item"> 153 <div class="inline-svg"> 154 <img src="<?php echo 'http://svg.redradar.net/core/menu-flow.svg'; ?>" alt=""> 155 </div> 156 <h3><?php _e( 'Better Menu Instructions = Less Confusion' ); ?></h3> 157 <p><?php _e( 'Were you confused by the steps to create a new menu? Perhaps no longer! We’ve ironed out the UX for a smoother menu creation process. Newly updated copy will guide you.' ); ?></p> 158 </div> 149 159 </div> 150 160 </div> 151 161 152 <hr /> 153 154 <h2> 155 <?php 156 printf( 157 /* translators: %s: hammer emoji */ 158 __( 'Site Building Improvements %s' ), 159 '🔨' 160 ); 161 ?> 162 </h2> 163 164 <div class="feature-section two-col"> 165 <div class="col"> 166 <h3><?php _e( 'More Reliable Theme Switching' ); ?></h3> 167 <p><?php _e( 'When you switch themes, widgets sometimes think they can just up and move location. Improvements in WordPress 4.9 offer more persistent menu and widget placement when you decide it’s time for a new theme. Additionally, you can preview installed themes or download, install, and preview new themes right. Nothing says handy like being able to preview before you deploy. ' ); ?></p> 168 </div> 169 <div class="col"> 170 <h3><?php _e( 'Better Menu Instructions = Less Confusion' ); ?></h3> 171 <p><?php _e( 'Were you confused by the steps to create a new menu? Perhaps no longer! We’ve ironed out the UX for a smoother menu creation process. Newly updated copy will guide you.' ); ?></p> 172 </div> 162 <div class="inline-svg"> 163 <picture> 164 <source media="(max-width: 500px)" srcset="<?php echo 'http://svg.redradar.net/core/gutenberg-mobile.svg'; ?>"> 165 <img src="<?php echo 'http://svg.redradar.net/core/gutenberg.svg'; ?>" alt=""> 166 </picture> 173 167 </div> 174 168 175 <hr /> 176 177 <div class="feature-section one-col"> 178 <div class="col"> 179 <h2> 180 <?php 181 printf( 182 /* translators: %s: handshake emoji */ 183 __( 'Lend a Hand with Gutenberg %s' ), 184 '🤝' 185 ); 186 ?> 187 </h2> 188 <p><?php printf( 189 __( 'WordPress is working on a new way to create and control your content and we’d love to have your help. Interested in being an <a href="%s">early tester</a> or getting involved with the Gutenberg project? <a href="%s">Contribute on GitHub</a>.' ), 190 __( 'https://wordpress.org/plugins/gutenberg/' ), 191 'https://github.com/WordPress/gutenberg' ); ?></p> 192 </div> 169 <div class="feature-section"> 170 <h2> 171 <?php 172 printf( 173 /* translators: %s: handshake emoji */ 174 __( 'Lend a Hand with Gutenberg %s' ), 175 '🤝' 176 ); 177 ?> 178 </h2> 179 <p><?php printf( 180 __( 'WordPress is working on a new way to create and control your content and we’d love to have your help. Interested in being an <a href="%s">early tester</a> or getting involved with the Gutenberg project? <a href="%s">Contribute on GitHub</a>.' ), 181 __( 'https://wordpress.org/plugins/gutenberg/' ), 182 'https://github.com/WordPress/gutenberg' ); ?></p> 193 183 </div> 194 184 195 185 <hr /> 196 186 197 187 <div class="changelog"> … … 203 193 ); 204 194 ?></h2> 205 195 206 <div class="under-the-hood t hree-col">196 <div class="under-the-hood two-col"> 207 197 <div class="col"> 208 <h3><a href="#"><?php _e( 'Heading' ); ?></a></h3> 209 <p><?php _e( 'Paragraph' ); ?></p> 210 </div> 211 <div class="col"> 212 <h3><a href="#"><?php _e( 'Heading' ); ?></a></h3> 213 <p><?php _e( 'Paragraph' ); ?></p> 214 </div> 215 <div class="col"> 216 <h3><a href="#"><?php _e( 'Heading' ); ?></a></h3> 217 <p><?php _e( 'Paragraph' ); ?></p> 198 <h3><a href="https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/"><?php _e( 'Customizer JS API Improvements' ); ?></a></h3> 199 <p><?php 200 printf( 201 /* translators: %s: https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/ */ 202 __( 'We’ve made numerous improvements to the Customizer JS API in WordPress 4.9, eliminating many pain points and making it just as easy to work with as the PHP API. There are also new base control templates, a date/time control, and section/panel/global notifications to name a few. <a href="%s">Check out the full list.</a>' ), 203 'https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/' 204 ); 205 ?></p> 218 206 </div> 219 207 <div class="col"> 220 <h3><a href=" #"><?php _e( 'Heading' ); ?></a></h3>221 <p><?php _e( ' Paragraph' ); ?></p>208 <h3><a href="https://make.wordpress.org/core/2017/10/22/code-editing-improvements-in-wordpress-4-9/"><?php _e( 'CodeMirror available for use in your themes and plugins' ); ?></a></h3> 209 <p><?php _e( 'We’ve introduced a new code editing library, CodeMirror, for use within core. Use it to improve any code writing or editing experiences within your plugins, like CSS or JavaScript include fields.' ); ?></p> 222 210 </div> 223 211 <div class="col"> 224 <h3><a href=" #"><?php _e( 'Heading' ); ?></a></h3>225 <p><?php _e( ' Paragraph' ); ?></p>212 <h3><a href="https://make.wordpress.org/core/2017/10/30/mediaelement-upgrades-in-wordpress-4-9/"><?php _e( 'MediaElement.js upgraded to 4.2.6' ); ?></a></h3> 213 <p><?php _e( 'WordPress 4.9 includes an upgraded version of MediaElement.js, which removes dependencies on jQuery, improves accessibility, modernizes the UI, and fixes many bugs.' ); ?></p> 226 214 </div> 227 215 <div class="col"> 228 <h3><a href=" #"><?php _e( 'Heading' ); ?></a></h3>229 <p><?php _e( ' Paragraph' ); ?></p>216 <h3><a href="https://make.wordpress.org/core/2017/10/15/improvements-for-roles-and-capabilities-in-4-9/"><?php _e( 'Roles and Capability Improvements' ); ?></a></h3> 217 <p><?php _e( 'New capabilities have been introduced that allow granular management of plugins and translation files. In addition, the site switching process in multisite has been fine-tuned to update the available roles and capabilities in a more reliable and coherent way.' ); ?></p> 230 218 </div> 231 219 </div> 232 220 </div> … … 241 229 <?php endif; ?> 242 230 <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard → Home' ) : _e( 'Go to Dashboard' ); ?></a> 243 231 </div> 244 245 232 </div> 233 234 <script> 235 (function( $ ) { 236 $( function() { 237 var $window = $( window ); 238 var $adminbar = $( '#wpadminbar' ); 239 var $sections = $( '.floating-header-section' ); 240 var offset = 0; 241 242 // Account for Admin bar. 243 if ( $adminbar.length ) { 244 offset += $adminbar.height(); 245 } 246 var i=0; 247 var adjustScrollClass = _.throttle( function adjustScrollClass() { 248 console.log(++i); 249 $sections.each( function( i, section ) { 250 var $section = $( section ); 251 var $header = $section.find( 'h2' ); 252 var width = $header.innerWidth(); 253 254 var sectionStart = $section.offset().top - offset; 255 var sectionEnd = sectionStart + $section.innerHeight() - 60; 256 257 // If we're scrolled into a section, stick the header 258 if ( $window.scrollTop() >= sectionStart && $window.scrollTop() < sectionEnd ) { 259 $header.addClass( 'header-fixed' ); 260 $header.css( { top: offset + 'px', width: width + 'px' } ); 261 } else { 262 $header.removeClass( 'header-fixed' ); 263 $header.css( { top: 0, width: 'auto' } ); 264 } 265 } ); 266 }, 100 ); 267 function enableFixedHeaders() { 268 if ( $window.width() > 782 ) { 269 adjustScrollClass(); 270 $window.on( 'scroll', adjustScrollClass ); 271 } else { 272 $window.off( 'scroll', adjustScrollClass ); 273 $sections.find( 'h2' ) 274 .removeClass( 'header-fixed' ) 275 .css( { top: 0, width: 'auto' } ); 276 } 277 } 278 $( window ).resize( enableFixedHeaders ); 279 enableFixedHeaders(); 280 } ); 281 })( jQuery ); 282 </script> 283 246 284 <?php 247 285 248 286 include( ABSPATH . 'wp-admin/admin-footer.php' ); -
src/wp-admin/credits.php
16 16 17 17 include( ABSPATH . 'wp-admin/admin-header.php' ); 18 18 ?> 19 <div class="wrap about-wrap ">19 <div class="wrap about-wrap full-width-layout"> 20 20 21 21 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> 22 22 … … 31 31 <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a> 32 32 </h2> 33 33 34 <div class="about-wrap-content"> 34 35 <?php 35 36 36 37 $credits = wp_credits(); … … 44 45 ); 45 46 echo '</p>'; 46 47 echo '</div>'; 48 echo '</div>'; 47 49 include( ABSPATH . 'wp-admin/admin-footer.php' ); 48 50 exit; 49 51 } … … 107 109 ?></p> 108 110 109 111 </div> 112 </div> 110 113 <?php 111 114 112 115 include( ABSPATH . 'wp-admin/admin-footer.php' ); -
src/wp-admin/css/about.css
8 8 2.0 About Page 9 9 2.1 Typography 10 10 2.2 Structure 11 2.3 Floating Header Layout 11 12 3.0 Credits & Freedoms Pages 12 13 ------------------------------------------------------------------------------*/ 13 14 … … 22 23 font-size: 15px; 23 24 } 24 25 26 .about-wrap.full-width-layout { 27 max-width: 1200px; 28 } 29 30 .about-wrap-content { 31 max-width: 1050px; 32 } 33 25 34 .about-wrap div.updated, 26 35 .about-wrap div.error, 27 36 .about-wrap .notice { … … 173 182 max-width: 700px; 174 183 } 175 184 185 .about-wrap .inline-svg img { 186 max-width: 100%; 187 width: 100%; 188 height: auto; 189 } 190 191 .about-wrap .inline-svg.full-width { 192 margin-bottom: 120px; 193 } 194 176 195 .about-wrap [class$="-col"] .col { 177 196 -webkit-box-flex: 1; 178 197 flex: 1; … … 335 354 padding: 0 5px; 336 355 } 337 356 357 /* 2.3 Floating Header Layout */ 358 359 .about-wrap .floating-header-section { 360 display: grid; 361 grid-gap: 0 60px; 362 grid-template-columns: 5fr 11fr; 363 max-width: 1020px; 364 margin: 0 auto 120px; 365 } 366 367 .about-wrap .floating-header-section h2 { 368 grid-column: 1; 369 text-align: left; 370 margin: 0; 371 } 372 373 .about-wrap .floating-header-section .header-fixed { 374 position: fixed; 375 width: 300px; 376 } 377 378 .about-wrap .floating-header-section .section-content { 379 display: grid; 380 grid-gap: 60px; 381 grid-template-columns: 5fr 5fr; 382 grid-column: 2; 383 } 384 385 .about-wrap .floating-header-section .section-item:nth-of-type(odd) { 386 grid-column: 1; 387 } 388 389 .about-wrap .floating-header-section .section-item:nth-of-type(even) { 390 grid-column: 2; 391 } 392 338 393 /*------------------------------------------------------------------------------ 339 394 3.0 - Credits & Freedoms Pages 340 395 ------------------------------------------------------------------------------*/ … … 441 496 display: block; 442 497 margin: 0 auto; 443 498 } 499 500 .about-wrap .floating-header-section { 501 grid-template-columns: 1fr; 502 grid-gap: 60px 0; 503 } 504 505 .about-wrap .floating-header-section h2, 506 .about-wrap .floating-header-section .section-content { 507 grid-column: 1; 508 } 444 509 } 445 510 446 511 @media only screen and (max-width: 500px) { … … 485 550 .about-wrap .under-the-hood:nth-of-type(3n) h3 { 486 551 margin-top: 0; 487 552 } 553 554 .about-wrap .floating-header-section { 555 margin-bottom: 60px; 556 grid-gap: 30px 0; 557 } 558 559 .about-wrap .inline-svg.full-width { 560 margin-bottom: 60px; 561 } 562 563 .about-wrap .floating-header-section .section-content { 564 grid-template-columns: 1fr; 565 grid-gap: 60px 0; 566 } 567 568 .about-wrap .floating-header-section .section-content .section-item { 569 grid-column: 1; 570 } 488 571 } -
src/wp-admin/freedoms.php
15 15 16 16 include( ABSPATH . 'wp-admin/admin-header.php' ); 17 17 ?> 18 <div class="wrap about-wrap ">18 <div class="wrap about-wrap full-width-layout"> 19 19 20 20 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> 21 21 … … 30 30 <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a> 31 31 </h2> 32 32 33 <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> 33 <div class="about-wrap-content"> 34 <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> 34 35 35 <ol start="0">36 <li><p><?php _e( 'You have the freedom to run the program, for any purpose.' ); ?></p></li>37 <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>38 <li><p><?php _e( 'You have the freedom to redistribute copies of the original program so you can help your neighbor.' ); ?></p></li>39 <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>40 </ol>36 <ol start="0"> 37 <li><p><?php _e( 'You have the freedom to run the program, for any purpose.' ); ?></p></li> 38 <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> 39 <li><p><?php _e( 'You have the freedom to redistribute copies of the original program so you can help your neighbor.' ); ?></p></li> 40 <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> 41 </ol> 41 42 42 <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’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>43 <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’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> 43 44 44 <p><?php45 <p><?php 45 46 46 $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );47 $themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );47 $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' ); 48 $themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' ); 48 49 49 printf( __( 'Every plugin and theme in WordPress.org’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’s GPL</a> first. If they don’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' ); ?></p>50 printf( __( 'Every plugin and theme in WordPress.org’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’s GPL</a> first. If they don’t respect the WordPress license, we don’t recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' ); ?></p> 50 51 51 <p><?php _e( 'Don’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> 52 <p><?php _e( 'Don’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> 53 </div> 52 54 53 55 </div> 54 56 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> -
src/wp-admin/privacy.php
15 15 16 16 include( ABSPATH . 'wp-admin/admin-header.php' ); 17 17 ?> 18 <div class="wrap about-wrap ">18 <div class="wrap about-wrap full-width-layout"> 19 19 20 20 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> 21 21 … … 30 30 <a href="privacy.php" class="nav-tab nav-tab-active"><?php _e( 'Privacy' ); ?></a> 31 31 </h2> 32 32 33 <p class="about-description"><?php _e( 'From time to time, your WordPress site may send data to WordPress.org — including, but not limited to — the version of WordPress you are using, and a list of installed plugins and themes.' ); ?></p> 33 <div class="about-wrap-content"> 34 <p class="about-description"><?php _e( 'From time to time, your WordPress site may send data to WordPress.org — including, but not limited to — the version of WordPress you are using, and a list of installed plugins and themes.' ); ?></p> 34 35 35 <p><?php printf( __( 'This data is used to provide general enhancements to WordPress, which includes helping to protect your site by finding and automatically installing new updates. It is also used to calculate statistics, such as those shown on the <a href="%s">WordPress.org stats page</a>.' ), 'https://wordpress.org/about/stats/' ); ?></p>36 <p><?php printf( __( 'This data is used to provide general enhancements to WordPress, which includes helping to protect your site by finding and automatically installing new updates. It is also used to calculate statistics, such as those shown on the <a href="%s">WordPress.org stats page</a>.' ), 'https://wordpress.org/about/stats/' ); ?></p> 36 37 37 <p><?php printf( __( 'We take privacy and transparency very seriously. To learn more about what data we collect, and how we use it, please visit <a href="%s">WordPress.org/about/privacy</a>.' ), 'https://wordpress.org/about/privacy/' ); ?></p> 38 <p><?php printf( __( 'We take privacy and transparency very seriously. To learn more about what data we collect, and how we use it, please visit <a href="%s">WordPress.org/about/privacy</a>.' ), 'https://wordpress.org/about/privacy/' ); ?></p> 39 </div> 38 40 39 41 </div> 40 42 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>