PageRenderTime 52ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-admin/about.php

https://bitbucket.org/abnopanda/wordpress
PHP | 200 lines | 148 code | 40 blank | 12 comment | 3 complexity | eeda5f85c34e038333a04e3d130c6909 MD5 | raw file
  1. <?php
  2. /**
  3. * About This Version administration panel.
  4. *
  5. * @package WordPress
  6. * @subpackage Administration
  7. */
  8. /** WordPress Administration Bootstrap */
  9. require_once( './admin.php' );
  10. $title = __( 'About' );
  11. list( $display_version ) = explode( '-', $wp_version );
  12. include( ABSPATH . 'wp-admin/admin-header.php' );
  13. ?>
  14. <div class="wrap about-wrap">
  15. <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
  16. <div class="about-text"><?php printf( ( 'Thank you for updating to the latest version! WordPress %s helps make your web publishing experience easier, faster, and more enjoyable than ever. Welcome aboard.' ), $display_version ); ?></div>
  17. <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
  18. <h2 class="nav-tab-wrapper">
  19. <a href="about.php" class="nav-tab nav-tab-active">
  20. <?php _e( 'What&#8217;s New' ); ?>
  21. </a><a href="credits.php" class="nav-tab">
  22. <?php _e( 'Credits' ); ?>
  23. </a><a href="freedoms.php" class="nav-tab">
  24. <?php _e( 'Freedoms' ); ?>
  25. </a>
  26. </h2>
  27. <div class="changelog">
  28. <h3><?php echo ( 'Media Management' ); ?></h3>
  29. <div class="feature-section three-col">
  30. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-media.png' ) ); ?>" class="image-100" />
  31. <div>
  32. <h4><?php echo ( 'Easier interface' ); ?></h4>
  33. <p><?php echo ( 'Adding media to your posts is more streamlined than ever. It\'s a breeze to insert, align, caption, and link to media within your posts.' ); ?></p>
  34. </div>
  35. <div>
  36. <h4><?php echo ( 'Picturesque galleries' ); ?></h4>
  37. <p><?php echo ( 'Adding image galleries is easier with drag and drop reordering, inline caption editing, and simplified controls for the gallery layout.' ); ?></p>
  38. </div>
  39. <div class="last-feature">
  40. <h4><?php echo ( 'Attachment page editor' ); ?></h4>
  41. <p><?php echo ( 'You can crop, rotate and resize images right in the Media Library? There are now formatting controls for content on your attachment pages.' ); ?></p>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="changelog">
  46. <h3><?php echo ( 'Smoother experience' ); ?></h3>
  47. <div class="feature-section">
  48. <h4><?php echo ( 'Simplified settings, better buttons, easier controls' ); ?></h4>
  49. <p><?php echo ( 'WordPress always aims to stay out of the way, and let you get on with publishing your content. You\'ll find simplified settings screens, more aesthetically pleasing buttons, and easier controls such as the improved color picker. They\'re the little details we hope you\'ll never notice.' ); ?></p>
  50. <div class="three-col-images">
  51. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-tinymce.png' ) ); ?>" class="image-30 first-feature" />
  52. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-buttons.png' ) ); ?>" class="image-30" />
  53. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-color-picker.png' ) ); ?>" class="image-30 last-feature" />
  54. </div>
  55. </div>
  56. </div>
  57. <div class="changelog">
  58. <h3><?php echo ( 'Twenty Twelve theme' ); ?></h3>
  59. <div class="feature-section images-stagger-right">
  60. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-twenty-twelve.png' ) ); ?>" class="image-66" />
  61. <h4><?php echo ( 'Beauty in its simplicity' ); ?></h4>
  62. <p><?php echo ( 'Twenty Twelve is an elegant, readable, and fully responsive theme that makes your site content look its best on any device.' ); ?></p>
  63. <p><?php echo ( 'Make the design of your site fully yours with a custom menu, custom header image, and custom background color or image.' ); ?></p>
  64. </div>
  65. </div>
  66. <div class="changelog">
  67. <h3><?php echo ( 'HiDPI Admin' ); ?></h3>
  68. <div class="feature-section images-stagger-right">
  69. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-hidef.png' ) ); ?>" class="image-66" />
  70. <h4><?php echo ( 'Retina all the things' ); ?></h4>
  71. <p><?php echo ( 'WordPress now looks as beautiful on HiDPI devices as native applications do. Icons, buttons, avatars and theme screenshots (where supported) are crystal clear and full of detail.' ); ?></p>
  72. </div>
  73. </div>
  74. <div class="changelog">
  75. <h3><?php echo ( 'Better Accessibility' ); ?></h3>
  76. <div class="feature-section images-stagger-right">
  77. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-accessibility2.png' ) ); ?>" class="image-30" />
  78. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-accessibility1.png' ) ); ?>" class="image-30" />
  79. <h4><?php echo ( 'For everyone' ); ?></h4>
  80. <p><?php echo ( 'WordPress has wider support for more devices than ever before. Users of screenreaders, touch devices, and mouse-less devices will all see improvements to ease of use and accessibility.' ); ?></p>
  81. <?php //TODO: Link to new Codex page listing the accessibility features of WordPress. ?>
  82. </div>
  83. </div>
  84. <div class="changelog">
  85. <h3><?php echo ( 'More Embed Support' ); ?></h3>
  86. <div class="feature-section">
  87. <h4><?php echo ( 'Instagram, SlideShare, and SoundCloud' ); ?></h4>
  88. <p><?php echo ( 'You can now embed content from Instagram, SlideShare, and SoundCloud without having to mess around copying and pasting embed codes. Just paste a URL from any of these sites onto its own line in your post and the content will automatically be embedded for you.' ); ?></p>
  89. <p><?php printf( ( 'This works for several other popular sites, too, such as YouTube, Flickr, and Vimeo. For more, see the Codex article on <a href="%s">Embeds</a>.' ), ( 'http://codex.wordpress.org/Embeds' ) ); ?></p>
  90. <div class="three-col-images">
  91. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-instagram.png' ) ); ?>" class="image-30 first-feature" />
  92. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-slideshare.png' ) ); ?>" class="image-30" />
  93. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-soundcloud.png' ) ); ?>" class="image-30 last-feature" />
  94. </div>
  95. </div>
  96. </div>
  97. <?php if ( current_user_can( 'install_plugins' ) ) { ?>
  98. <div class="changelog">
  99. <h3><?php echo ( 'Plugin Favorites' ); ?></h3>
  100. <div class="feature-section images-stagger-right">
  101. <img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-favorite-plugins.png' ) ); ?>" class="image-66" />
  102. <h4><?php echo ( 'Which plugins do you love?' ); ?></h4>
  103. <p><?php echo ( 'Wouldn\'t it be great to see a list of all your favorite plugins right in the Plugins menu in WordPress? Well, now you can.' ); ?></p>
  104. <p><?php printf( ( 'If you have marked plugins as favorites on WordPress.org, you can browse them from the Favorites tab on the <a href="%s">Install Plugins</a> screen.' ), admin_url( 'plugin-install.php?tab=favorites' ) ); ?></p>
  105. </div>
  106. </div>
  107. <?php } ?>
  108. <div class="changelog">
  109. <h3><?php echo ( 'Under the Hood' ); ?></h3>
  110. <div class="feature-section three-col">
  111. <div>
  112. <h4><?php echo ( 'Meta Query Additions' ); ?></h4>
  113. <p><?php echo ( 'The <code>WP_Comment_Query</code> and <code>WP_User_Query</code> classes now support meta queries just like <code>WP_Query</code>.' ); ?></p>
  114. <h4><?php echo ( 'Multisite Improvements' ); ?></h4>
  115. <p><?php echo ( '<code>switch_to_blog()</code> no longer obliterates the object cache, greatly improving performance. For new sites, Multisite now works when WordPress is installed in a subdirectory.' ); ?></p>
  116. </div>
  117. <div>
  118. <h4><?php echo ( 'WP_Post' ); ?></h4>
  119. <p><?php echo ( 'Post objects are now instances of the new <code>WP_Post</code> class which improves performance by loading selected properties on demand.' ); ?></p>
  120. <h4><?php echo ( 'XML-RPC API' ); ?></h4>
  121. <p><?php printf( ( 'The <a href="%s">WordPress API</a> is now enabled by default and enjoys the same security as the rest of core. It supports fetching users, profiles, post revisions, and searching posts.' ), ( 'http://codex.wordpress.org/XML-RPC_WordPress_API' ) ); ?></p>
  122. </div>
  123. <div class="last-feature">
  124. <h4><?php echo ( 'Image Editing API Abstractions' ); ?></h4>
  125. <p><?php echo ( 'The <code>WP_Image_Editor</code> class abstracts image editing functionality such as cropping and scaling, and uses ImageMagick when available.' ); ?></p>
  126. <h4><?php echo ( 'External Libraries' ); ?></h4>
  127. <p><?php printf( ('WordPress now includes the <a href="%1$s">Underscore</a> and <a href="%2$s">Backbone</a> JavaScript libraries. TinyMCE, jQuery, jQuery UI, jCrop, and SimplePie have all been updated to the latest versions.' ), 'http://underscorejs.org/', 'http://backbonejs.org/' ); ?></p>
  128. </div>
  129. </div>
  130. </div>
  131. <div class="return-to-dashboard">
  132. <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
  133. <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php
  134. is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' );
  135. ?></a> |
  136. <?php endif; ?>
  137. <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php
  138. is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
  139. </div>
  140. </div>
  141. <?php
  142. include( ABSPATH . 'wp-admin/admin-footer.php' );
  143. // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
  144. return;
  145. _n_noop( 'Maintenance Release', 'Maintenance Releases' );
  146. _n_noop( 'Security Release', 'Security Releases' );
  147. _n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases' );
  148. /* translators: 1: WordPress version number. */
  149. _n_noop( '<strong>Version %1$s</strong> addressed a security issue.',
  150. '<strong>Version %1$s</strong> addressed some security issues.' );
  151. /* translators: 1: WordPress version number, 2: plural number of bugs. */
  152. _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
  153. '<strong>Version %1$s</strong> addressed %2$s bugs.' );
  154. /* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
  155. _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
  156. '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
  157. /* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
  158. _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
  159. '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
  160. __( 'For more information, see <a href="%s">the release notes</a>.' );