mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 21:00:59 +01:00
d9d85ab4ac
Merges [57018] to 6.4 branch. Tweaks the 6.4 about pages in a couple of ways: - Decouples the background from the 6.4 logo so the logo can move for RTL. - Updates a color to improve color contrast. - Help prevent overlap of long text strings with 6.4 logo. - Ensure background isn't dark when no background is used on mobile. Props nudge, jorbin, afercia, sumitsingh, sabernhardt. See #59289, #59664. Backport reviewed by hellofromTonya and joedolson. Built from https://develop.svn.wordpress.org/branches/6.4@57025 git-svn-id: http://core.svn.wordpress.org/branches/6.4@56536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
110 lines
4.4 KiB
PHP
110 lines
4.4 KiB
PHP
<?php
|
|
/**
|
|
* Your Rights administration panel.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Administration
|
|
*/
|
|
|
|
/** WordPress Administration Bootstrap */
|
|
require_once __DIR__ . '/admin.php';
|
|
|
|
// This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0.
|
|
if ( isset( $_GET['privacy-notice'] ) ) {
|
|
wp_redirect( admin_url( 'privacy.php' ), 301 );
|
|
exit;
|
|
}
|
|
|
|
// Used in the HTML title tag.
|
|
$title = __( 'Freedoms' );
|
|
|
|
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
|
|
|
|
require_once ABSPATH . 'wp-admin/admin-header.php';
|
|
?>
|
|
<div class="wrap about__container">
|
|
|
|
<div class="about__header">
|
|
<div class="about__header-title">
|
|
<h1>
|
|
<?php _e( 'The Four Freedoms' ); ?>
|
|
</h1>
|
|
</div>
|
|
|
|
<div class="about__header-text"></div>
|
|
</div>
|
|
|
|
<nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
|
|
<a href="about.php" class="nav-tab"><?php _e( 'What’s New' ); ?></a>
|
|
<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
|
|
<a href="freedoms.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Freedoms' ); ?></a>
|
|
<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
|
|
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
|
|
</nav>
|
|
|
|
<div class="about__section is-feature">
|
|
<p class="about-description">
|
|
<?php
|
|
printf(
|
|
/* translators: %s: https://wordpress.org/about/license/ */
|
|
__( 'WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
|
|
__( 'https://wordpress.org/about/license/' )
|
|
);
|
|
?>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="about__section has-2-columns">
|
|
<div class="column aligncenter">
|
|
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-1.svg?ver=6.4' ) ); ?>" alt="" />
|
|
<h2 class="is-smaller-heading"><?php _e( 'The 1st Freedom' ); ?></h2>
|
|
<p><?php _e( 'To run the program for any purpose.' ); ?></p>
|
|
</div>
|
|
<div class="column aligncenter">
|
|
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-2.svg?ver=6.4' ) ); ?>" alt="" />
|
|
<h2 class="is-smaller-heading"><?php _e( 'The 2nd Freedom' ); ?></h2>
|
|
<p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
|
|
</div>
|
|
<div class="column aligncenter">
|
|
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-3.svg?ver=6.4' ) ); ?>" alt="" />
|
|
<h2 class="is-smaller-heading"><?php _e( 'The 3rd Freedom' ); ?></h2>
|
|
<p><?php _e( 'To redistribute.' ); ?></p>
|
|
</div>
|
|
<div class="column aligncenter">
|
|
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-4.svg?ver=6.4' ) ); ?>" alt="" />
|
|
<h2 class="is-smaller-heading"><?php _e( 'The 4th Freedom' ); ?></h2>
|
|
<p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="about__section has-1-column">
|
|
<div class="column">
|
|
<p>
|
|
<?php
|
|
printf(
|
|
/* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
|
|
__( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We are flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ),
|
|
'https://wordpressfoundation.org/trademark-policy/'
|
|
);
|
|
?>
|
|
</p>
|
|
|
|
<p>
|
|
<?php
|
|
$plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
|
|
$themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
|
|
printf(
|
|
/* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
|
|
__( 'Every plugin and theme in WordPress.org’s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it’s GPL</a> first. If they do not respect the WordPress license, it is not recommended to use them.' ),
|
|
$plugins_url,
|
|
$themes_url,
|
|
__( 'https://wordpress.org/about/license/' )
|
|
);
|
|
?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
|