~canonical-sysadmins/wordpress/4.7.2

« back to all changes in this revision

Viewing changes to wp-admin/about.php

  • Committer: Jacek Nykis
  • Date: 2015-01-05 16:17:05 UTC
  • Revision ID: jacek.nykis@canonical.com-20150105161705-w544l1h5mcg7u4w9
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 point-releases">
 
45
        <h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 1 ); ?></h3>
 
46
        <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
 
47
         '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 23 ), '4.0.1', number_format_i18n( 23 ) ); ?>
 
48
                <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_4.0.1' ); ?>
 
49
        </p>
 
50
</div>
 
51
 
 
52
<div class="changelog">
 
53
        <div class="about-overview">
 
54
                <?php if ( ( $locale = get_locale() ) && 'en_' === substr( $locale, 0, 3 ) ) : ?>
 
55
                        <embed src="//v.wordpress.com/bUdzKMro" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true" wmode="transparent"></embed>
 
56
                <?php else : ?>
 
57
                        <img class="about-overview-img" src="//s.w.org/images/core/4.0/wp40.png" width="640" height="360" />
 
58
                <?php endif; ?>
 
59
        </div>
 
60
 
 
61
        <hr />
 
62
 
 
63
        <div class="feature-section col two-col">
 
64
                <div class="col-1">
 
65
                        <h3><?php _e( 'Manage your media with style' ); ?></h3>
 
66
                        <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>
 
67
                </div>
 
68
                <div class="col-2 last-feature">
 
69
                        <img src="//s.w.org/images/core/4.0/media.jpg" />
 
70
                </div>
 
71
        </div>
 
72
 
 
73
        <hr />
 
74
 
 
75
        <div class="feature-section col two-col">
 
76
                <div class="col-1">
 
77
                        <div class="about-video about-video-embed">
 
78
                                <?php
 
79
                                        echo wp_video_shortcode( array(
 
80
                                                'mp4'      => '//s.w.org/images/core/4.0/embed.mp4',
 
81
                                                'ogv'      => '//s.w.org/images/core/4.0/embed.ogv',
 
82
                                                'webm'      => '//s.w.org/images/core/4.0/embed.webm',
 
83
                                                'loop'     => true,
 
84
                                                'autoplay' => true,
 
85
                                                'width'    => 500,
 
86
                                                'height'   => 352
 
87
                                        ) );
 
88
                                ?>
 
89
                        </div>
 
90
                </div>
 
91
                <div class="col-2 last-feature">
 
92
                        <h3><?php _e( 'Working with embeds has never been easier' ); ?></h3>
 
93
                        <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>
 
94
                        <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>
 
95
                </div>
 
96
        </div>
 
97
 
 
98
        <hr />
 
99
 
 
100
        <div class="feature-section col two-col">
 
101
                <div class="col-1">
 
102
                        <h3><?php _e( 'Focus on your content' ); ?></h3>
 
103
                        <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>
 
104
                </div>
 
105
                <div class="col-2 last-feature">
 
106
                        <div class="about-video about-video-focus">
 
107
                                <?php
 
108
                                        echo wp_video_shortcode( array(
 
109
                                                'mp4'      => '//s.w.org/images/core/4.0/focus.mp4',
 
110
                                                'ogv'      => '//s.w.org/images/core/4.0/focus.ogv',
 
111
                                                'webm'      => '//s.w.org/images/core/4.0/focus.webm',
 
112
                                                'loop'     => true,
 
113
                                                'autoplay' => true,
 
114
                                                'width'    => 500,
 
115
                                                'height'   => 281
 
116
                                        ) );
 
117
                                ?>
 
118
                        </div>
 
119
                </div>
 
120
        </div>
 
121
 
 
122
        <hr />
 
123
 
 
124
        <div class="feature-section col two-col">
 
125
                <div class="col-1">
 
126
                        <img src="//s.w.org/images/core/4.0/plugins.png" />
 
127
                </div>
 
128
                <div class="col-2 last-feature">
 
129
                        <h3 class="higher"><?php _e( 'Finding the right plugin' ); ?></h3>
 
130
                        <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>
 
131
                        <a href="<?php echo admin_url( 'plugin-install.php' ); ?>" class="button button-large button-primary"><?php _e( 'Browse plugins' ); ?></a>
 
132
                </div>
 
133
        </div>
 
134
</div>
 
135
 
 
136
<hr />
 
137
 
 
138
<div class="changelog under-the-hood">
 
139
        <h3><?php _e( 'Under the Hood' ); ?></h3>
 
140
 
 
141
        <div class="feature-section col three-col">
 
142
                <div>
 
143
                <h4><?php _e( 'Customizer API' ); ?></h4>
 
144
                        <p><?php _e( 'Contexts, panels, and a wider array of controls are now supported in the customizer.' ); ?></p>
 
145
                </div>
 
146
                <div>
 
147
                        <h4><?php _e( 'Query Ordering' ); ?></h4>
 
148
                        <p><?php
 
149
                                /* translators: 1: "ORDER BY" (SQL), 2: "WP_Query" */
 
150
                                printf( __( 'Developers have more flexibility creating %1$s clauses through %2$s.' ), '<code>ORDER&nbsp;BY</code>', '<code>WP_Query</code>' );
 
151
                        ?></p>
 
152
                </div>
 
153
                <div class="last-feature">
 
154
                        <h4><?php _e( 'External Libraries' ); ?></h4>
 
155
                        <p><?php _e( 'Updated libraries: TinyMCE&nbsp;4.1.3, jQuery&nbsp;1.11.1, MediaElement&nbsp;2.15.' ); ?></p>
 
156
                </div>
 
157
        </div>
 
158
 
 
159
        <hr />
 
160
 
 
161
        <div class="return-to-dashboard">
 
162
                <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
 
163
                <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php
 
164
                        is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' );
 
165
                ?></a> |
 
166
                <?php endif; ?>
 
167
                <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php
 
168
                        is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
 
169
        </div>
 
170
 
 
171
</div>
 
172
 
 
173
</div>
 
174
<?php
 
175
 
 
176
include( ABSPATH . 'wp-admin/admin-footer.php' );
 
177
 
 
178
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
 
179
return;
 
180
 
 
181
_n_noop( 'Maintenance Release', 'Maintenance Releases' );
 
182
_n_noop( 'Security Release', 'Security Releases' );
 
183
_n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases' );
 
184
 
 
185
/* translators: 1: WordPress version number. */
 
186
_n_noop( '<strong>Version %1$s</strong> addressed a security issue.',
 
187
         '<strong>Version %1$s</strong> addressed some security issues.' );
 
188
 
 
189
/* translators: 1: WordPress version number, 2: plural number of bugs. */
 
190
_n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
 
191
         '<strong>Version %1$s</strong> addressed %2$s bugs.' );
 
192
 
 
193
/* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
 
194
_n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
 
195
         '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
 
196
 
 
197
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
 
198
_n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
 
199
         '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
 
200
 
 
201
__( 'For more information, see <a href="%s">the release notes</a>.' );