]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/about.php
WordPress 4.0-scripts
[autoinstalls/wordpress.git] / wp-admin / about.php
1 <?php
2 /**
3  * About This Version administration panel.
4  *
5  * @package WordPress
6  * @subpackage Administration
7  */
8
9 /** WordPress Administration Bootstrap */
10 require_once( dirname( __FILE__ ) . '/admin.php' );
11
12 wp_enqueue_style( 'wp-mediaelement' );
13 wp_enqueue_script( 'wp-mediaelement' );
14 wp_localize_script( 'mediaelement', '_wpmejsSettings', array(
15         'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
16         'pauseOtherPlayers' => ''
17 ) );
18
19 $title = __( 'About' );
20
21 list( $display_version ) = explode( '-', $wp_version );
22
23 include( ABSPATH . 'wp-admin/admin-header.php' );
24 ?>
25 <!--[if lt IE 9]><script>document.createElement('audio');document.createElement('video');</script><![endif]-->
26 <div class="wrap about-wrap">
27
28 <h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
29
30 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s brings you a smoother writing and management experience.' ), $display_version ); ?></div>
31
32 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
33
34 <h2 class="nav-tab-wrapper">
35         <a href="about.php" class="nav-tab nav-tab-active">
36                 <?php _e( 'What&#8217;s New' ); ?>
37         </a><a href="credits.php" class="nav-tab">
38                 <?php _e( 'Credits' ); ?>
39         </a><a href="freedoms.php" class="nav-tab">
40                 <?php _e( 'Freedoms' ); ?>
41         </a>
42 </h2>
43
44 <div class="changelog">
45         <div class="about-overview">
46                 <?php if ( ( $locale = get_locale() ) && 'en_' === substr( $locale, 0, 3 ) ) : ?>
47                         <embed src="//v.wordpress.com/bUdzKMro" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true" wmode="transparent"></embed>
48                 <?php else : ?>
49                         <img class="about-overview-img" src="//s.w.org/images/core/4.0/wp40.png" width="640" height="360" />
50                 <?php endif; ?>
51         </div>
52
53         <hr />
54
55         <div class="feature-section col two-col">
56                 <div class="col-1">
57                         <h3><?php _e( 'Manage your media with style' ); ?></h3>
58                         <p><?php _e( 'Explore your uploads in a beautiful, endless grid. A new details preview makes viewing and editing any amount of media in sequence a snap.' ); ?></p>
59                 </div>
60                 <div class="col-2 last-feature">
61                         <img src="//s.w.org/images/core/4.0/media.jpg" />
62                 </div>
63         </div>
64
65         <hr />
66
67         <div class="feature-section col two-col">
68                 <div class="col-1">
69                         <div class="about-video about-video-embed">
70                                 <?php
71                                         echo wp_video_shortcode( array(
72                                                 'mp4'      => '//s.w.org/images/core/4.0/embed.mp4',
73                                                 'ogv'      => '//s.w.org/images/core/4.0/embed.ogv',
74                                                 'webm'      => '//s.w.org/images/core/4.0/embed.webm',
75                                                 'loop'     => true,
76                                                 'autoplay' => true,
77                                                 'width'    => 500,
78                                                 'height'   => 352
79                                         ) );
80                                 ?>
81                         </div>
82                 </div>
83                 <div class="col-2 last-feature">
84                         <h3><?php _e( 'Working with embeds has never been easier' ); ?></h3>
85                         <p><?php _e( 'Paste in a YouTube URL on a new line, and watch it magically become an embedded video. Now try it with a tweet. Oh yeah &#8212; embedding has become a visual experience. The editor shows a true preview of your embedded content, saving you time and giving you confidence.' ); ?></p>
86                         <p><?php _e( 'We&#8217;ve expanded the services supported by default, too &#8212; you can embed videos from CollegeHumor, playlists from YouTube, and talks from TED. <a href="http://codex.wordpress.org/Embeds">Check out all of the embeds</a> that WordPress supports.' ); ?></p>
87                 </div>
88         </div>
89
90         <hr />
91
92         <div class="feature-section col two-col">
93                 <div class="col-1">
94                         <h3><?php _e( 'Focus on your content' ); ?></h3>
95                         <p><?php _e( 'Writing and editing is smoother and more immersive with an editor that expands to fit your content as you write, and keeps the formatting tools available at all times.' ); ?></p>
96                 </div>
97                 <div class="col-2 last-feature">
98                         <div class="about-video about-video-focus">
99                                 <?php
100                                         echo wp_video_shortcode( array(
101                                                 'mp4'      => '//s.w.org/images/core/4.0/focus.mp4',
102                                                 'ogv'      => '//s.w.org/images/core/4.0/focus.ogv',
103                                                 'webm'      => '//s.w.org/images/core/4.0/focus.webm',
104                                                 'loop'     => true,
105                                                 'autoplay' => true,
106                                                 'width'    => 500,
107                                                 'height'   => 281
108                                         ) );
109                                 ?>
110                         </div>
111                 </div>
112         </div>
113
114         <hr />
115
116         <div class="feature-section col two-col">
117                 <div class="col-1">
118                         <img src="//s.w.org/images/core/4.0/plugins.png" />
119                 </div>
120                 <div class="col-2 last-feature">
121                         <h3 class="higher"><?php _e( 'Finding the right plugin' ); ?></h3>
122                         <p><?php _e( 'There are more than 30,000 free and open source plugins in the WordPress plugin directory. WordPress 4.0 makes it easier to find the right one for your needs, with new metrics, improved search, and a more visual browsing experience.' ); ?></p>
123                         <a href="<?php echo admin_url( 'plugin-install.php' ); ?>" class="button button-large button-primary"><?php _e( 'Browse plugins' ); ?></a>
124                 </div>
125         </div>
126 </div>
127
128 <hr />
129
130 <div class="changelog under-the-hood">
131         <h3><?php _e( 'Under the Hood' ); ?></h3>
132
133         <div class="feature-section col three-col">
134                 <div>
135                 <h4><?php _e( 'Customizer API' ); ?></h4>
136                         <p><?php _e( 'Contexts, panels, and a wider array of controls are now supported in the customizer.' ); ?></p>
137                 </div>
138                 <div>
139                         <h4><?php _e( 'Query Ordering' ); ?></h4>
140                         <p><?php
141                                 /* translators: 1: "ORDER BY" (SQL), 2: "WP_Query" */
142                                 printf( __( 'Developers have more flexibility creating %1$s clauses through %2$s.' ), '<code>ORDER&nbsp;BY</code>', '<code>WP_Query</code>' );
143                         ?></p>
144                 </div>
145                 <div class="last-feature">
146                         <h4><?php _e( 'External Libraries' ); ?></h4>
147                         <p><?php _e( 'Updated libraries: TinyMCE&nbsp;4.1.3, jQuery&nbsp;1.11.1, MediaElement&nbsp;2.15.' ); ?></p>
148                 </div>
149         </div>
150
151         <hr />
152
153         <div class="return-to-dashboard">
154                 <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
155                 <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php
156                         is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' );
157                 ?></a> |
158                 <?php endif; ?>
159                 <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php
160                         is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
161         </div>
162
163 </div>
164
165 </div>
166 <?php
167
168 include( ABSPATH . 'wp-admin/admin-footer.php' );
169
170 // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
171 return;
172
173 _n_noop( 'Maintenance Release', 'Maintenance Releases' );
174 _n_noop( 'Security Release', 'Security Releases' );
175 _n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases' );
176
177 /* translators: 1: WordPress version number. */
178 _n_noop( '<strong>Version %1$s</strong> addressed a security issue.',
179          '<strong>Version %1$s</strong> addressed some security issues.' );
180
181 /* translators: 1: WordPress version number, 2: plural number of bugs. */
182 _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
183          '<strong>Version %1$s</strong> addressed %2$s bugs.' );
184
185 /* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
186 _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
187          '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
188
189 /* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
190 _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
191          '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
192
193 __( 'For more information, see <a href="%s">the release notes</a>.' );