Changeset 26737
- Timestamp:
- 12/06/2013 07:35:25 PM (9 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/about.php
r26723 r26737 22 22 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> 23 23 24 <div class="about-text"><?php printf( __( 'Thank you for updating to WordPress 3.8! We’re happy to bring youthe most beautiful WordPress yet.' ), $display_version ); ?></div>24 <div class="about-text"><?php printf( __( 'Thank you for updating to WordPress %s, the most beautiful WordPress yet.' ), $display_version ); ?></div> 25 25 26 26 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> … … 37 37 38 38 <div class="changelog"> 39 <h2 class="about-headline-callout"><?php echo ( 'Introducing a new, modern admindesign' ); ?></h2>39 <h2 class="about-headline-callout"><?php echo ( 'Introducing a modern new design' ); ?></h2> 40 40 <img class="about-overview-img" src="<?php echo admin_url( 'images/about-overview.png' ); ?>" /> 41 41 42 42 <div class="feature-section col three-col about-updates"> 43 43 <div class="col-1"> 44 < p style="margin-top: 20px; background-color: grey; padding: 1em; color: white; min-height: 150px;">Image</p>45 <h3><?php echo ( 'Modern aesthetic s' ); ?></h3>46 <p><?php echo ( ' Goodbye decoration, hello simplicity. We removed extraneous details, focusing on a cleaner, more streamlined admin design.' ); ?></p>44 <img src="images/about-modern-aesthetics.png" /> 45 <h3><?php echo ( 'Modern aesthetic' ); ?></h3> 46 <p><?php echo ( 'The new admin has a fresh, simple design that puts clarity and simplicity ahead of web design flourishes.' ); ?></p> 47 47 </div> 48 48 <div class="col-2"> 49 < p style="margin-top: 20px; background-color: grey; padding: 1em; color: white; min-height: 150px;">Image</p>50 <h3><?php echo ( ' Improvedtypography' ); ?></h3>51 <p><?php echo ( ' You might notice the type is a little bit bigger. We improved the typography, crafting a better reading experience.' ); ?></p>49 <img src="images/about-typography.png" /> 50 <h3><?php echo ( 'Clean typography' ); ?></h3> 51 <p><?php echo ( 'Open Sans meets open source. WordPress’s new typography is upright, friendly, and optimized for web and mobile interfaces.' ); ?></p> 52 52 </div> 53 53 <div class="col-3 last-feature"> 54 < p style="margin-top: 20px; background-color: grey; padding: 1em; color: white; min-height: 150px;">Image</p>55 <h3><?php echo ( ' Highercontrast' ); ?></h3>56 <p><?php echo ( 'W ith bigger typography and both high and low contrast color schemes, our new admin design is great for users of all ages.' ); ?></p>54 <img src="images/about-contrast.png" /> 55 <h3><?php echo ( 'Refined contrast' ); ?></h3> 56 <p><?php echo ( 'What good is beautiful design if you can’t see it? Improved contrast gives you a better reading experience.' ); ?></p> 57 57 </div> 58 58 </div> … … 61 61 <hr> 62 62 63 <!-- Image example -->64 <!-- <img alt="" src="<?php echo admin_url( 'images/about-search-2x.png' ); ?>" /> -->65 66 63 <div class="changelog"> 67 64 <div class="feature-section col two-col"> 68 65 <div> 69 <h3><?php echo ( ' Take WordPress with you anywhere with our responsive design' ); ?></h3>70 <p><?php echo ( ' The WordPress admin is now completely responsive: you can work on your website easily from your smartphone or tablet. The full power of WordPress is at your fingertips, even when you’re on the go.' ); ?></p>71 <h4><?php echo ( ' Naturally HiDPI' ); ?></h4>72 <p><?php echo ( ' No more blurry edges — with the inclusion of vector icons and graphics, the admin is now entirely HiDPI, so you get the best viewing experience no matter what kind of computer or mobiledevice you use.' ); ?></p>66 <h3><?php echo ( 'WordPress on every device' ); ?></h3> 67 <p><?php echo ( 'Whether you’re on your smartphone or tablet, your notebook or desktop, WordPress looks beautiful on every device. Now you can update your website wherever you are.' ); ?></p> 68 <h4><?php echo ( 'High definition is here' ); ?></h4> 69 <p><?php echo ( 'WordPress is sharper than ever; vector icons and graphics mean no more blurry edges. You get the best viewing experience no matter what type of device you use.' ); ?></p> 73 70 </div> 74 71 <div class="last-feature about-colors-img"> … … 83 80 <div class="feature-section col one-col"> 84 81 <div> 85 <h3><?php echo ( 'Now with more color' ); ?></h3> 86 <p><?php echo ( 'Your admin is not longer monochromatic — we’ve brought some more color to keep it looking fresh. You now have the option of four different default color schemes.' ); ?></p> 87 <p><?php echo ( 'Try them out below:' ); ?></p> 88 <img src="https://i.cloudup.com/NBlGusRk0H.png" style="border: 2px solid red; max-width: 99%; margin: 0;" /> 89 <p><?php echo ( 'You can change your color scheme at any time from your profile page.' ); ?></p> 82 <h3><?php echo ( 'Pick a color' ); ?></h3> 83 <p><?php echo ( 'We’ve included four color schemes so that you can choose your favorite. Don’t like this striking new admin? Choose from any of the schemes below to change it in an instant.' ); ?></p> 84 <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) :?> 85 <?php 86 /** This action is documented in wp-admin/user-edit.php */ 87 do_action( 'admin_color_scheme_picker' ); 88 ?> 89 <?php else : ?> 90 <img src="<?php echo admin_url( 'images/about-color-schemes.png' ); ?>" /> 91 <?php endif; ?> 92 <p><?php printf( ( 'To change your color scheme later, just <a href="%1$s">visit your profile settings</a>.' ), get_edit_profile_url( get_current_user_id() ) ); ?></p> 90 93 </div> 91 94 </div> … … 98 101 <div> 99 102 <h3><?php echo ( 'A new theme experience' ); ?></h3> 100 <p><?php echo ( ' A sleeker, faster, and more visual organization of your themes that is responsive.' ); ?></p>101 <h4><?php echo ( 'B rowse better' ); ?></h4>102 <p><?php echo ( ' Enjoy a focused experience with theme screenshots at the center. Quickly search through your themes or add new ones.' ); ?></p>103 <p><?php echo ( 'Finding and installing the right theme has never been easier.' ); ?></p> 104 <h4><?php echo ( 'Better browsing' ); ?></h4> 105 <p><?php echo ( 'Focus is placed on what’s important - your theme’s design. Search through your themes at a glance and add new ones with a click.' ); ?></p> 103 106 <h4><?php echo ( 'Dive into the details' ); ?></h4> 104 <p><?php echo ( ' Expand a theme to see more information and preview it. Use the arrow navigation to quickly swift through your themes.' ); ?></p>105 <h4><?php echo ( ' Easier updates' ); ?></h4>106 <p><?php echo ( ' Identify immediately when a theme update is available.' ); ?></p>107 <p><?php echo ( 'If you need information about any of your themes just click to discover more. Sit back and use your keyboard’s navigation arrows to flip through every theme you’ve got.' ); ?></p> 108 <h4><?php echo ( 'Stay updated' ); ?></h4> 109 <p><?php echo ( 'You can tell in an instant if a theme needs updated and, like so many things in WordPress, updating it takes just a second.' ); ?></p> 107 110 </div> 108 111 <div class="last-feature about-themes-img"> … … 118 121 <img src="<?php echo admin_url( 'images/about-twentyfourteen.png' ); ?>" /> 119 122 120 <div class="feature-section col one-col ">123 <div class="feature-section col one-col center-col"> 121 124 <div> 122 <h3><?php echo ( ' Our new default theme lets you create a responsive magazine website with an elegant, modern design.' ); ?></h3>123 <p><?php echo ( ' Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content’s layout with a full width page template and a contributor page to show of your authors.' ); ?></p>125 <h3><?php echo ( 'Turn your blog into a magazine' ); ?></h3> 126 <p><?php echo ( 'With a striking design that does not comprise on our trademark simplicity, Twenty Fourteen is our boldest default theme. Choose a grid or a slider to display featured content on your homepage. Customize your homepage with three widget areas or change your layout with two page templates.' ); ?></p> 124 127 <p><?php echo ( 'Creating a magazine website with WordPress has never been easier.' ); ?></p> 125 128 </div> … … 128 131 129 132 <hr> 130 131 <div class="changelog">132 <h3><?php echo ( 'Under the Hood' ); ?></h3>133 134 <div class="feature-section col three-col">135 <div>136 <h4><?php echo ( 'Meta query fixes' ); ?></h4>137 <p><?php echo ( 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Vestibulum id ligula porta felis.' ); ?></p>138 </div>139 <div>140 <h4><?php echo ( 'Automated RTL styles' ); ?></h4>141 <p><?php echo ( 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Vestibulum id ligula porta felis.' ); ?></p>142 </div>143 <div class="last-feature">144 <h4><?php echo ( 'Improved customizer' ); ?></h4>145 <p><?php echo ( 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Vestibulum id ligula porta felis.' ); ?></p>146 </div>147 </div>148 133 149 134 <div class="return-to-dashboard"> -
trunk/src/wp-admin/css/wp-admin.css
r26733 r26737 7828 7828 7829 7829 .about-text { 7830 margin: 1em 200px 1.4em 0;7830 margin: 1em 200px 0em 0; 7831 7831 min-height: 60px; 7832 7832 font-size: 24px; … … 7834 7834 7835 7835 .about-wrap .changelog h2.about-headline-callout { 7836 margin: 1 em 0 0;7836 margin: 1.5em 0 0; 7837 7837 font-size: 2.2em; 7838 7838 font-weight: 300; … … 7863 7863 /* 3.8 Images */ 7864 7864 7865 .about-wrap .about-colors-img, 7865 .about-wrap .about-colors-img { 7866 bottom: -25px; 7867 } 7868 7866 7869 .about-wrap .about-themes-img { 7867 bottom: - 25px;7870 bottom: -32px; 7868 7871 } 7869 7872 … … 7902 7905 background: url('../images/w-logo-white.png?ver=20131202') no-repeat; 7903 7906 background: none, url('../images/wordpress-logo-white.svg?ver=20131110') no-repeat; 7904 background-position: center 30px;7905 background-size: 110px 110px;7907 background-position: center 24px; 7908 background-size: 85px 85px; 7906 7909 font-size: 14px; 7907 7910 text-align: center; 7908 7911 font-weight: 600; 7909 7912 margin: 5px 0 0; 7910 padding-top: 1 55px;7911 height: 4 5px;7913 padding-top: 120px; 7914 height: 40px; 7912 7915 display: inline-block; 7913 width: 1 65px;7916 width: 150px; 7914 7917 text-rendering: optimizeLegibility; 7915 7918 } … … 7950 7953 } 7951 7954 7952 .about-wrap .feature-section. one-coldiv {7955 .about-wrap .feature-section.center-col > div { 7953 7956 margin: auto; 7954 7957 width: 60%; 7955 7958 } 7956 7959 7957 .about-wrap .about-colors .one-col div {7960 .about-wrap .about-colors .one-col > div { 7958 7961 width: 100%; 7959 7962 } 7960 7963 7961 .about-wrap .feature-section.two-col div {7964 .about-wrap .feature-section.two-col > div { 7962 7965 position: relative; 7963 7966 width: 50%; … … 7965 7968 } 7966 7969 7970 .about-wrap .feature-section.three-col > div { 7971 position: relative; 7972 width: 29.95%; 7973 margin-right: 4.999999999%; 7974 float: left; 7975 } 7976 7977 .about-wrap .feature-section.col .last-feature { 7978 margin-right: 0; 7979 } 7980 7981 .about-wrap .about-updates img { 7982 margin: 2em 0 0 0; 7983 border: 1px solid #ddd; 7984 -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); 7985 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); 7986 } 7987 7988 .about-wrap .changelog .feature-section { 7989 overflow: hidden; 7990 } 7991 7992 .about-wrap .about-colors .scheme-list { 7993 margin-bottom: 1em; 7994 } 7995 7996 .about-wrap .about-colors .color-option { 7997 width: 24%; 7998 padding-top: 10px; 7999 } 8000 .about-wrap .about-colors .color-option label { 8001 display: inline-block; 8002 margin: 0.25em 0 0.5em; 8003 } 8004 7967 8005 .about-wrap .feature-section.two-col div p { 7968 8006 margin-right: 3%; 7969 }7970 7971 .about-wrap .feature-section.three-col div {7972 position: relative;7973 width: 30%;7974 margin-right: 4.999999999%;7975 float: left;7976 }7977 7978 .about-wrap .feature-section.col .last-feature {7979 margin-right: 0;7980 }7981 7982 .about-wrap .three-col.about-updates img {7983 margin: 0;7984 }7985 7986 .about-wrap .changelog .feature-section {7987 overflow: hidden;7988 }7989 7990 .about-wrap .about-passwords {7991 margin: 20px 0;7992 padding: 1px 20px 10px;7993 background-color: #fff;7994 }7995 7996 .about-wrap .about-auto-update {7997 text-align: center;7998 background-color: #f9f9ef;7999 clear: both;8000 padding: 10px;8001 }8002 8003 .about-wrap .about-auto-update.cool {8004 background-color: #eff9ef;8005 }8006 8007 .about-wrap .about-password-meter input {8008 font-size: 250%;8009 line-height: 1;8010 width: 100%;8011 display: block;8012 padding: 5px;8013 }8014 8015 .about-wrap .about-password-meter #pass-strength-result {8016 display: block !important;8017 font-size: 150%;8018 font-weight: normal !important;8019 -webkit-box-sizing: border-box;8020 -moz-box-sizing: border-box;8021 box-sizing: border-box;8022 width: 100%;8023 padding: 17px 0;8024 margin-bottom: 15px;8025 8007 } 8026 8008 … … 12734 12716 12735 12717 /* About Page */ 12736 .about-wrap .feature-section.two-col div { 12718 .about-wrap .feature-section.one-col > div, 12719 .about-wrap .feature-section.two-col > div, 12720 .about-wrap .three-col.about-updates > div { 12737 12721 width: 100%; 12738 12722 margin: 0; … … 12740 12724 } 12741 12725 12742 .about-wrap .three-col.about-updates .col-1, 12743 /*.about-wrap .three-col.about-updates .col-2,*/ 12744 .about-wrap .three-col.about-updates .col-3 { 12745 padding: 0; 12746 } 12747 12748 .about-wrap .three-col.about-updates .col-1 { 12749 width: 100%; 12750 padding-right: 210px; 12751 } 12752 12753 .about-wrap .three-col.about-updates .col-2 { 12754 position: relative; 12755 float: right; 12756 width: 180px; 12757 margin-left: -100%; 12758 } 12759 12760 .about-wrap .three-col.about-updates .col-3 { 12761 width: 100%; 12762 } 12763 12764 .about-wrap .about-password-meter input, 12765 .about-wrap .about-password-meter #pass-strength-result { 12766 width: 99%; 12726 .about-wrap .about-colors .color-option { 12727 width: 49%; 12767 12728 } 12768 12729 … … 12905 12866 width: 100%; 12906 12867 float: none; 12907 }12908 12909 .about-wrap .about-passwords {12910 margin: 20px -20px;12911 12868 } 12912 12869 -
trunk/src/wp-admin/js/about.js
r26065 r26737 1 /* global pwsL10n:true*/1 /* global isRtl */ 2 2 (function($){ 3 var password = 'Gosh, WordPress is grand.',4 $input = $('#pass'),5 shouldAnimate = true,6 timesForAnimation = [280, 300, 305, 310, 315, 325, 330, 345, 360, 370, 380, 400, 450, 500, 600],7 resultsCache = {},8 indicatorString = $('#pass-strength-result').text();9 3 10 function updateResult(){ 11 var strength; 4 $(document).ready( function() { 5 var $colorpicker, $stylesheet; 6 7 $('.color-palette').click( function() { 8 $(this).siblings('input[name="admin_color"]').prop('checked', true); 9 }); 10 11 $colorpicker = $( '#color-picker' ); 12 $stylesheet = $( '#colors-css' ); 13 if ( isRtl ){ 14 $stylesheet = $( '#colors-rtl-css' ); 15 } 16 17 $colorpicker.on( 'click.colorpicker', '.color-option', function() { 18 var colors, css_url, 19 $this = $(this); 20 21 if ( $this.hasClass( 'selected' ) ) { 22 return; 23 } 24 25 $this.siblings( '.selected' ).removeClass( 'selected' ); 26 $this.addClass( 'selected' ).find( 'input[type="radio"]' ).prop( 'checked', true ); 27 28 // Set color scheme 29 // Load the colors stylesheet 30 css_url = $this.children( '.css_url' ).val(); 31 if ( isRtl ){ 32 css_url = css_url.replace('.min', '-rtl.min'); 33 } 12 34 13 if ( typeof( resultsCache[ $input.val() ]) === 'undefined') { 14 strength = wp.passwordStrength.meter($input.val(), [], $input.val()); 15 resultsCache[ $input.val() ] = strength; 16 } else { 17 strength = resultsCache[ $input.val() ]; 18 } 35 $stylesheet.attr( 'href', css_url ); 19 36 20 $('#pass-strength-result').removeClass('short bad good strong'); 21 switch ( strength ) { 22 case 2: 23 $('#pass-strength-result').addClass('bad').html( pwsL10n.bad ); 24 break; 25 case 3: 26 $('#pass-strength-result').addClass('good').html( pwsL10n.good ); 27 break; 28 case 4: 29 $('#pass-strength-result').addClass('strong').html( pwsL10n.strong ); 30 break; 31 default: 32 $('#pass-strength-result').addClass('short').html( pwsL10n['short'] ); 33 } 34 } 35 function resetMeter(){ 36 $input.val(''); 37 $('#pass-strength-result').text(indicatorString); 38 $('#pass-strength-result').removeClass('short bad good strong'); 39 } 37 // repaint icons 38 if ( typeof wp !== 'undefined' && wp.svgPainter ) { 39 try { 40 colors = $.parseJSON( $this.children( '.icon_colors' ).val() ); 41 } catch ( error ) {} 40 42 41 function animate(){ 42 if (shouldAnimate === false) 43 return; 44 if ($input.val().length < password.length){ 45 $input.val( password.substr(0, $input.val().length + 1) ); 46 updateResult(); 47 48 // Look like real typing by changing the speed new letters are added each time 49 setTimeout( animate, ( timesForAnimation[ Math.floor( Math.random() * timesForAnimation.length ) ] ) ); 50 } else { 51 resetMeter(); 52 53 // When we reset, let's wait a bit longer than normal to start again 54 setTimeout(animate, 700); 55 } 56 57 } 58 59 function begin(){ 60 // we async load zxcvbn, so we need to make sure it's loaded before starting 61 if (typeof(zxcvbn) !== 'undefined') 62 animate(); 63 else 64 setTimeout(begin,800); 65 } 66 67 // Turn off the animation on focus 68 $input.on('focus', function(){ 69 shouldAnimate = false; 70 resetMeter(); 43 if ( colors ) { 44 wp.svgPainter.setColors( colors ); 45 wp.svgPainter.paint(); 46 } 47 } 48 }); 71 49 }); 72 50 73 // Act like a normal password strength meter74 $input.on('keyup', function(){75 updateResult();76 });77 78 // Start the animation79 begin();80 81 51 })(jQuery);
Note: See TracChangeset
for help on using the changeset viewer.