~ubuntu-branches/debian/jessie/wordpress/jessie

« back to all changes in this revision

Viewing changes to wp-admin/about.php

  • Committer: Package Import Robot
  • Author(s): Craig Small
  • Date: 2014-04-17 20:56:19 UTC
  • mfrom: (1.2.35)
  • Revision ID: package-import@ubuntu.com-20140417205619-nurbet6eho4yvwfv
Tags: 3.9+dfsg-1
* New upstream release
* 3.9 seems to handle different locations for plugins so the
  plugin directory handling patches have been cut back.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
/** WordPress Administration Bootstrap */
10
10
require_once( dirname( __FILE__ ) . '/admin.php' );
11
11
 
 
12
wp_enqueue_style( 'wp-mediaelement' );
 
13
wp_enqueue_script( 'wp-playlist' );
 
14
add_action( 'admin_footer', 'wp_underscore_playlist_templates', 0 );
 
15
 
12
16
$title = __( 'About' );
13
17
 
14
18
list( $display_version ) = explode( '-', $wp_version );
15
19
 
16
 
// Temporary 3.8 hack: We want to use user-profile for the color schemes but don't need the heavy zxcvbn.
17
 
wp_deregister_script( 'zxcvbn-async' );
18
 
wp_register_script( 'zxcvbn-async', false );
19
 
wp_enqueue_script( 'user-profile' );
20
 
 
21
20
include( ABSPATH . 'wp-admin/admin-header.php' );
22
21
?>
 
22
<!--[if lt IE 9]><script>document.createElement('audio');document.createElement('video');</script><![endif]-->
23
23
<div class="wrap about-wrap">
24
24
 
25
25
<h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
26
26
 
27
 
<div class="about-text"><?php printf( __( 'Thank you for updating to WordPress %s, the most beautiful WordPress&nbsp;yet.' ), $display_version ); ?></div>
 
27
<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s has lots of refinements we think you&#8217;ll love.' ), $display_version ); ?></div>
28
28
 
29
29
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
30
30
 
38
38
        </a>
39
39
</h2>
40
40
 
41
 
<div class="changelog point-releases">
42
 
        <h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 3 ); ?></h3>
43
 
        <p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
44
 
                '<strong>Version %1$s</strong> addressed %2$s bugs.', 2 ), '3.8.3', number_format_i18n( 2 ) ); ?>
45
 
                <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.8.3' ); ?>
46
 
        </p>
47
 
        <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
48
 
         '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 9 ), '3.8.2', number_format_i18n( 9 ) ); ?>
49
 
                <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.8.2' ); ?>
50
 
        </p>
51
 
        <p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
52
 
                '<strong>Version %1$s</strong> addressed %2$s bugs.', 31 ), '3.8.1', number_format_i18n( 31 ) ); ?>
53
 
                <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.8.1' ); ?>
54
 
        </p>
55
 
</div>
56
 
 
57
41
<div class="changelog">
58
 
        <h2 class="about-headline-callout"><?php _e( 'Introducing a modern new&nbsp;design' ); ?></h2>
59
 
        <img class="about-overview-img" src="<?php echo is_ssl() ? 'https://' : '//s.'; ?>wordpress.org/images/core/3.8/overview.png?1" />
60
 
        <div class="feature-section col three-col about-updates">
 
42
        <div class="about-overview">
 
43
        <?php
 
44
        if ( ( $locale = get_locale() ) && 'en_' === substr( $locale, 0, 3 ) ) : ?>
 
45
                <embed src="//v0.wordpress.com/player.swf?v=1.03" type="application/x-shockwave-flash" width="640" height="360" wmode="direct" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true" flashvars="guid=sAiXhCfV&amp;isDynamicSeeking=true" title=""></embed>
 
46
        <?php else : ?>
 
47
                <img class="about-overview-img" src="//s.w.org/images/core/3.9/overview.png?0" />
 
48
        <?php endif; ?>
 
49
        </div>
 
50
        <h2 class="about-headline-callout"><?php _e( 'A smoother media editing&nbsp;experience' ); ?></h2>
 
51
        <div class="feature-section col three-col">
61
52
                <div class="col-1">
62
 
                        <img src="<?php echo is_ssl() ? 'https://' : '//s.'; ?>wordpress.org/images/core/3.8/aesthetics.png?1" />
63
 
                        <h3><?php _e( 'Modern aesthetic' ); ?></h3>
64
 
                        <p><?php _e( 'The new WordPress dashboard has a fresh, uncluttered design that embraces clarity and simplicity.' ); ?></p>
 
53
                        <img src="//s.w.org/images/core/3.9/editor.jpg?0" />
 
54
                        <h4><?php _e( 'Improved visual editing' ); ?></h4>
 
55
                        <p><?php _e( 'The updated visual editor has improved speed, accessibility, and mobile support.' );
 
56
                                echo ' ' . __( 'You can paste into the visual editor from your word processor without wasting time to clean up messy styling. (Yeah, we&#8217;re talking about you, Microsoft Word.)' ); ?></p>
65
57
                </div>
66
58
                <div class="col-2">
67
 
                        <img src="<?php echo is_ssl() ? 'https://' : '//s.'; ?>wordpress.org/images/core/3.8/typography.png?1" />
68
 
                        <h3><?php _e( 'Clean typography' ); ?></h3>
69
 
                        <p><?php _e( 'The Open Sans typeface provides simple, friendly text that is optimized for both desktop and mobile viewing. It&#8217;s even open source, just like WordPress.' ); ?></p>
 
59
                        <img src="//s.w.org/images/core/3.9/image.gif?0" />
 
60
                        <h4><?php _e( 'Edit images easily' ); ?></h4>
 
61
                        <p><?php _e( 'With quicker access to crop and rotation tools, it&#8217;s now much easier to edit your images while editing posts. You can also scale images directly in the editor to find just the right fit.' ); ?></p>
70
62
                </div>
71
63
                <div class="col-3 last-feature">
72
 
                        <img src="<?php echo is_ssl() ? 'https://' : '//s.'; ?>wordpress.org/images/core/3.8/contrast.png?1" />
73
 
                        <h3><?php _e( 'Refined contrast' ); ?></h3>
74
 
                        <p><?php _e( 'We think beautiful design should never sacrifice legibility. With superior contrast and large, comfortable type, the new design is easy to read and a pleasure to navigate.' ); ?></p>
 
64
                        <img src="//s.w.org/images/core/3.9/drop.jpg?0" />
 
65
                        <h4><?php _e( 'Drag and drop your images' ); ?></h4>
 
66
                        <p><?php _e( 'Uploading your images is easier than ever. Just grab them from your desktop and drop them onto the editor.' ); ?></p>
75
67
                </div>
76
68
        </div>
77
 
</div>
78
 
 
79
 
<hr>
80
 
 
81
 
<div class="changelog">
 
69
 
 
70
        <hr>
 
71
 
82
72
        <div class="feature-section col two-col">
83
 
                <div>
84
 
                        <h3><?php _e( 'WordPress on every&nbsp;device' ); ?></h3>
85
 
                        <p><?php _e( 'We all access the internet in different ways. Smartphone, tablet, notebook, desktop &mdash; no matter what you use, WordPress will adapt and you&#8217;ll feel right at home.' ); ?></p>
86
 
                        <h4><?php _e( 'High definition at high&nbsp;speed' ); ?></h4>
87
 
                        <p><?php _e( 'WordPress is sharper than ever with new vector-based icons that scale to your screen. By ditching pixels, pages load significantly faster, too.' ); ?></p>
88
 
                </div>
89
 
                <div class="last-feature about-colors-img">
90
 
                        <img src="<?php echo is_ssl() ? 'https://' : '//s.'; ?>wordpress.org/images/core/3.8/colors.png?1" />
91
 
                </div>
92
 
        </div>
93
 
</div>
94
 
 
95
 
<hr>
96
 
 
97
 
<?php
98
 
global $_wp_admin_css_colors;
99
 
$new_colors = array( 'fresh', 'light', 'blue', 'midnight', 'sunrise', 'ectoplasm', 'ocean', 'coffee' );
100
 
$_wp_admin_css_colors = array_intersect_key( $_wp_admin_css_colors, array_fill_keys( $new_colors, true ) );
101
 
 
102
 
if ( count( $_wp_admin_css_colors ) > 1 && has_action( 'admin_color_scheme_picker' ) ) : ?>
103
 
<div class="changelog about-colors">
104
 
        <div class="feature-section col one-col">
105
 
                <div>
106
 
                        <h3><?php _e( 'Pick a color' ); ?></h3>
107
 
                        <p><?php _e( 'We&#8217;ve included eight color schemes so you can pick your favorite. Choose from any of them below to change it instantly.' ); ?>
 
73
                <div class="col-1">
 
74
                        <img src="//s.w.org/images/core/3.9/gallery.jpg?0" />
 
75
                        <h4><?php _e( 'Gallery previews' ); ?></h4>
 
76
                        <p><?php _e( 'Galleries display a beautiful grid of images right in the editor, just like they do in your published post.' ); ?></p>
 
77
                </div>
 
78
                <div class="col-2 last-feature">
 
79
                        <div class="wp-playlist wp-audio-playlist wp-playlist-light">
 
80
                                <div class="wp-playlist-current-item"></div>
 
81
                                <audio controls="controls" preload="metadata"></audio>
 
82
                                <div class="wp-playlist-next"></div>
 
83
                                <div class="wp-playlist-prev"></div>
108
84
                                <?php
109
 
                                /** This action is documented in wp-admin/user-edit.php */
110
 
                                do_action( 'admin_color_scheme_picker' );
 
85
                                $audio_icon_js = esc_js( includes_url( 'images/media/audio.png' ) );
 
86
                                $wp_host = '//s.w.org/images/core/3.9/';
111
87
                                ?>
112
 
                        <p><?php printf( __( 'To change your color scheme later, just <a href="%1$s">visit your profile</a>.' ), get_edit_profile_url( get_current_user_id() ) ); ?></p>
 
88
 
 
89
                                <script type="application/json">{
 
90
                                        "type":"audio",
 
91
                                        "tracklist":true,
 
92
                                        "tracknumbers":true,
 
93
                                        "images":true,
 
94
                                        "artists":true,
 
95
                                        "tracks":[{
 
96
                                                "src":"<?php echo $wp_host ?>AintMisbehavin.mp3",
 
97
                                                "type":"audio\/mpeg","title":"Ain't Misbehavin'","caption":"","description":"",
 
98
                                                "meta":{
 
99
                                                        "artist":"Louis Armstrong & His Orchestra",
 
100
                                                        "album":"78 RPMs & Cylinder Recordings",
 
101
                                                        "genre":"Jazz",
 
102
                                                        "length_formatted":"3:21"
 
103
                                                },
 
104
                                                "image":{"src":"//s.w.org/images/core/3.9/louis.jpg","width":308,"height":240},
 
105
                                                "thumb":{"src":"//s.w.org/images/core/3.9/louis.jpg","width":308,"height":240}
 
106
                                        },
 
107
                                        {
 
108
                                                "src":"<?php echo $wp_host ?>JellyRollMorton-BuddyBoldensBlues.mp3",
 
109
                                                "type":"audio\/mpeg","title":"Buddy Bolden's Blues","caption":"","description":"",
 
110
                                                "meta":{
 
111
                                                        "artist":"Jelly Roll Morten",
 
112
                                                        "album":"78 RPMs & Cylinder Recordings",
 
113
                                                        "genre":"Jazz",
 
114
                                                        "length_formatted":"2:09"
 
115
                                                },
 
116
                                                "image":{"src":"<?php echo $audio_icon_js ?>","width":48,"height":64},
 
117
                                                "thumb":{"src":"<?php echo $audio_icon_js ?>","width":48,"height":64}
 
118
                                        },
 
119
                                        {
 
120
                                                "src":"<?php echo $wp_host ?>DavenportBlues.mp3",
 
121
                                                "type":"audio\/mpeg","title":"Davenport Blues","caption":"","description":"",
 
122
                                                "meta":{
 
123
                                                        "artist":"Bix Beiderbecke & His Rhythm Jugglers",
 
124
                                                        "album":"78 RPMs & Cylinder Recordings",
 
125
                                                        "genre":"Jazz",
 
126
                                                        "length_formatted":"2:48"
 
127
                                                },
 
128
                                                "image":{"src":"<?php echo $audio_icon_js ?>","width":48,"height":64},
 
129
                                                "thumb":{"src":"<?php echo $audio_icon_js ?>","width":48,"height":64}
 
130
                                        },
 
131
                                        {
 
132
                                                "src":"<?php echo $wp_host ?>WolverineBlues.mp3",
 
133
                                                "type":"audio\/mpeg","title":"Wolverine Blues","caption":"","description":"",
 
134
                                                "meta":{
 
135
                                                        "artist":"Benny Goodman's Boys",
 
136
                                                        "album":"78 RPMs & Cylinder Recordings",
 
137
                                                        "genre":"Jazz",
 
138
                                                        "length_formatted":"2:55"
 
139
                                                },
 
140
                                                "image":{"src":"<?php echo $audio_icon_js ?>","width":48,"height":64},
 
141
                                                "thumb":{"src":"<?php echo $audio_icon_js ?>","width":48,"height":64}
 
142
                                        },
 
143
                                        {
 
144
                                                "src":"<?php echo $wp_host ?>Louisiana_Five-Dixie_Blues-1919.mp3",
 
145
                                                "type":"audio\/mpeg","title":"Dixie Blues","caption":"","description":"",
 
146
                                                "meta":{
 
147
                                                        "artist":"Louisiana Five",
 
148
                                                        "album":"78 RPMs & Cylinder Recordings",
 
149
                                                        "genre":"Jazz",
 
150
                                                        "length_formatted":"3:01"
 
151
                                                },
 
152
                                                "image":{"src":"<?php echo $audio_icon_js ?>","width":48,"height":64},
 
153
                                                "thumb":{"src":"<?php echo $audio_icon_js ?>","width":48,"height":64}
 
154
                                        },
 
155
                                        {
 
156
                                                "src":"<?php echo $wp_host ?>Johnny_Hodges_Orchestra-Squaty_Roo-1941.mp3",
 
157
                                                "type":"audio\/mpeg","title":"Squaty Roo","caption":"","description":"",
 
158
                                                "meta":{
 
159
                                                        "artist":"Johnny Hodges Orchestra",
 
160
                                                        "album":"78 RPMs & Cylinder Recordings",
 
161
                                                        "genre":"Jazz",
 
162
                                                        "length_formatted":"2:24"
 
163
                                                },
 
164
                                                "image":{"src":"<?php echo $audio_icon_js ?>","width":48,"height":64},
 
165
                                                "thumb":{"src":"<?php echo $audio_icon_js ?>","width":48,"height":64}
 
166
                                        }]
 
167
                                }</script>
 
168
                        </div>
 
169
                        <h4><?php _e( 'Do more with audio and video' ); ?></h4>
 
170
                        <p><?php _e( 'Images have galleries; now we&#8217;ve added simple audio and video playlists, so you can showcase your music and clips.' ); ?></p>
113
171
                </div>
114
172
        </div>
115
173
</div>
116
174
 
117
175
<hr>
118
 
<?php endif; ?>
119
176
 
120
 
<div class="changelog">
 
177
<div class="changelog customize">
121
178
        <div class="feature-section col two-col">
122
179
                <div>
123
 
                        <h3><?php _e( 'Refined theme management' ); ?></h3>
124
 
                        <p><?php _e( 'The new themes screen lets you survey your themes at a glance. Or want more information? Click to discover more. Then sit back and use your keyboard&#8217;s navigation arrows to flip through every theme you&#8217;ve got.' ); ?></p>
125
 
                        <h4><?php _e( 'Smoother widget experience' ); ?></h4>
126
 
                        <p><?php _e( 'Drag-drag-drag. Scroll-scroll-scroll. Widget management can be complicated. With the new design, we&#8217;ve worked to streamline the widgets&nbsp;screen.' ); ?></p>
127
 
                        <p><?php _e( 'Have a large monitor? Multiple widget areas stack side-by-side to use the available space. Using a tablet? Just tap a widget to add it.' ); ?></p>
 
180
                        <?php
 
181
                                echo wp_video_shortcode( array(
 
182
                                        'mp4'      => '//s.w.org/images/core/3.9/widgets.mp4',
 
183
                                        'ogv'      => '//s.w.org/images/core/3.9/widgets.ogv',
 
184
                                        'webm'     => '//s.w.org/images/core/3.9/widgets.webm',
 
185
                                        'loop'     => true,
 
186
                                        'autoplay' => true,
 
187
                                        'width'    => 499
 
188
                                ) );
 
189
                        ?>
 
190
                        <h4><?php _e( 'Live widget and header previews' ); ?></h4>
 
191
                        <p><?php _e( 'Add, edit, and rearrange your site&#8217;s widgets right in the theme customizer. No &#8220;save and surprise&#8221; &mdash; preview your changes live and only save them when you&#8217;re ready.' ); ?></p>
 
192
                        <p><?php _e( 'The improved header image tool also lets you upload, crop, and manage headers while customizing your theme.' ); ?></p>
128
193
                </div>
129
 
                <div class="last-feature about-themes-img">
130
 
                        <img src="<?php echo is_ssl() ? 'https://' : '//s.'; ?>wordpress.org/images/core/3.8/themes.png?1" />
 
194
                <div class="last-feature">
 
195
                        <img src="//s.w.org/images/core/3.9/theme.jpg?0" />
 
196
                        <h4><?php _e( 'Stunning new theme browser' ); ?></h4>
 
197
                        <p><?php _e( 'Looking for a new theme should be easy and fun. Lose yourself in the boundless supply of free WordPress.org themes with the beautiful new theme browser.' ); ?></p>
 
198
                <?php if ( current_user_can( 'install_themes' ) ) { ?>
 
199
                        <p><a href="<?php echo network_admin_url( 'theme-install.php' ); ?>" class="button button-large button-primary"><?php _e( 'Browse Themes' ); ?></a></p>
 
200
                <?php } ?>
131
201
                </div>
132
202
        </div>
133
203
</div>
134
204
 
135
205
<hr>
136
206
 
137
 
<div class="changelog about-twentyfourteen">
138
 
        <h2 class="about-headline-callout"><?php _e( 'Twenty Fourteen, a sleek new magazine&nbsp;theme' ); ?></h2>
139
 
        <img src="<?php echo is_ssl() ? 'https://' : '//s.'; ?>wordpress.org/images/core/3.8/twentyfourteen.jpg?1" />
140
 
 
141
 
        <div class="feature-section col one-col center-col">
142
 
                <div>
143
 
                        <h3><?php _e( 'Turn your blog into a&nbsp;magazine' ); ?></h3>
144
 
                        <p><?php _e( 'Create a beautiful magazine-style site with WordPress and Twenty Fourteen. Choose a grid or a slider to display featured content on your homepage. Customize your site with three widget areas or change your layout with two page templates.' ); ?></p>
145
 
                        <p><?php _e( 'With a striking design that does not compromise our trademark simplicity, Twenty Fourteen is our most intrepid default theme yet.' ); ?></p>
146
 
                </div>
147
 
        </div>
 
207
<div class="changelog under-the-hood">
 
208
        <h3><?php _e( 'Under the Hood' ); ?></h3>
 
209
 
 
210
        <div class="feature-section col three-col">
 
211
                <div>
 
212
                        <h4><?php _e( 'Semantic Captions and Galleries' ); ?></h4>
 
213
                        <p><?php _e( 'Theme developers have new options for images and galleries that use intelligent HTML5 markup.' ); ?></p>
 
214
 
 
215
                        <h4><?php _e( 'Inline Code Documentation' ); ?></h4>
 
216
                        <p><?php _e( 'Every action and filter hook in WordPress is now documented, along with expanded documentation for the media manager and customizer APIs.' ); ?></p>
 
217
                </div>
 
218
                <div>
 
219
                        <h4><?php _e( 'External Libraries' ); ?></h4>
 
220
                        <p><?php _e( 'Updated libraries: TinyMCE&nbsp;4, jQuery&nbsp;1.11, Backbone&nbsp;1.1, Underscore&nbsp;1.6, Plupload&nbsp;2, MediaElement&nbsp;2.14, Masonry&nbsp;3.' ); ?></p>
 
221
 
 
222
                        <h4><?php _e( 'Improved Database Layer' ); ?></h4>
 
223
                        <p><?php _e( 'Database connections are now more fault-resistant and have improved compatibility with PHP 5.5 and MySQL 5.6.' ); ?></p>
 
224
                </div>
 
225
                <div class="last-feature">
 
226
                        <h4><?php _e( 'New Utility Functions' ); ?></h4>
 
227
                        <p><?php _e( 'Identify a hook in progress with <code>doing_action()</code> and <code>doing_filter()</code>, and manipulate custom image sizes with <code>has_image_size()</code> and <code>remove_image_size()</code>.' ); ?></p>
 
228
                        <p><?php _e( 'Plugins and themes registering custom image sizes can now register suggested cropping points. For example, prevent heads from being cropped out of photos with a top-center crop.' ); ?></p>
 
229
                </div>
148
230
</div>
149
231
 
150
232
<hr>