wp/wp-admin/freedoms.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
     5  * @package WordPress
     5  * @package WordPress
     6  * @subpackage Administration
     6  * @subpackage Administration
     7  */
     7  */
     8 
     8 
     9 /** WordPress Administration Bootstrap */
     9 /** WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
    10 require_once __DIR__ . '/admin.php';
       
    11 
       
    12 // This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0.
       
    13 if ( isset( $_GET['privacy-notice'] ) ) {
       
    14 	wp_redirect( admin_url( 'privacy.php' ), 301 );
       
    15 	exit;
       
    16 }
    11 
    17 
    12 $title = __( 'Freedoms' );
    18 $title = __( 'Freedoms' );
    13 
    19 
    14 list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
    20 list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
    15 
    21 
    16 include( ABSPATH . 'wp-admin/admin-header.php' );
    22 require_once ABSPATH . 'wp-admin/admin-header.php';
       
    23 ?>
       
    24 <div class="wrap about__container">
    17 
    25 
    18 $is_privacy_notice = isset( $_GET['privacy-notice'] );
    26 	<div class="about__header">
       
    27 		<div class="about__header-text">
       
    28 			<?php _e( 'Speed. Search. Security.' ); ?>
       
    29 		</div>
    19 
    30 
    20 if ( $is_privacy_notice ) {
    31 		<div class="about__header-title">
    21 	$freedoms_class        = '';
    32 			<p>
    22 	$privacy_class         = ' nav-tab-active';
    33 				<?php _e( 'WordPress' ); ?>
    23 	$freedoms_aria_current = '';
    34 				<span><?php echo $display_version; ?></span>
    24 	$privacy_aria_current  = ' aria-current="page"';
    35 			</p>
    25 } else {
    36 		</div>
    26 	$freedoms_class        = ' nav-tab-active';
       
    27 	$privacy_class         = '';
       
    28 	$freedoms_aria_current = ' aria-current="page"';
       
    29 	$privacy_aria_current  = '';
       
    30 }
       
    31 
    37 
    32 ?>
    38 		<nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    33 <div class="wrap about-wrap full-width-layout">
    39 			<a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
       
    40 			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
       
    41 			<a href="freedoms.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Freedoms' ); ?></a>
       
    42 			<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
       
    43 		</nav>
       
    44 	</div>
    34 
    45 
    35 <h1>
    46 	<div class="about__section has-subtle-background-color is-feature">
    36 	<?php
    47 		<h1><?php _e( 'Freedoms' ); ?></h1>
    37 	/* translators: %s: The current WordPress version number */
       
    38 	printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version );
       
    39 	?>
       
    40 </h1>
       
    41 
    48 
    42 <p class="about-text">
       
    43 	<?php
       
    44 	printf(
       
    45 		/* translators: %s: The current WordPress version number */
       
    46 		__( 'Congratulations on updating to WordPress %s! This update makes it easier than ever to fix your site if something goes wrong.' ),
       
    47 		$display_version
       
    48 	);
       
    49 	?>
       
    50 </p>
       
    51 
       
    52 <div class="wp-badge">
       
    53 	<?php
       
    54 	/* translators: %s: The current WordPress version number */
       
    55 	printf( __( 'Version %s' ), $display_version );
       
    56 	?>
       
    57 </div>
       
    58 
       
    59 <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
       
    60 	<a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
       
    61 	<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
       
    62 	<a href="freedoms.php" class="nav-tab<?php echo $freedoms_class; ?>"<?php echo $freedoms_aria_current; ?>><?php _e( 'Freedoms' ); ?></a>
       
    63 	<a href="freedoms.php?privacy-notice" class="nav-tab<?php echo $privacy_class; ?>"<?php echo $privacy_aria_current; ?>><?php _e( 'Privacy' ); ?></a>
       
    64 </nav>
       
    65 
       
    66 <?php if ( $is_privacy_notice ) : ?>
       
    67 
       
    68 <div class="about-wrap-content">
       
    69 	<p class="about-description"><?php _e( 'From time to time, your WordPress site may send data to WordPress.org &#8212; including, but not limited to &#8212; the version of WordPress you are using, and a list of installed plugins and themes.' ); ?></p>
       
    70 
       
    71 	<p>
       
    72 		<?php
       
    73 		/* translators: %s: https://wordpress.org/about/stats/ */
       
    74 		printf( __( 'This data is used to provide general enhancements to WordPress, which includes helping to protect your site by finding and automatically installing new updates. It is also used to calculate statistics, such as those shown on the <a href="%s">WordPress.org stats page</a>.' ), 'https://wordpress.org/about/stats/' );
       
    75 		?>
       
    76 	</p>
       
    77 
       
    78 	<p>
       
    79 		<?php
       
    80 		/* translators: %s: https://wordpress.org/about/privacy/ */
       
    81 		printf( __( 'We take privacy and transparency very seriously. To learn more about what data we collect, and how we use it, please visit <a href="%s">WordPress.org/about/privacy</a>.' ), 'https://wordpress.org/about/privacy/' );
       
    82 		?>
       
    83 	</p>
       
    84 </div>
       
    85 
       
    86 <?php else : ?>
       
    87 <div class="about-wrap-content">
       
    88 	<div class="feature-section has-1-columns">
       
    89 		<h2><?php _e( 'Freedoms' ); ?></h2>
       
    90 		<p class="about-description">
    49 		<p class="about-description">
    91 		<?php
    50 		<?php
       
    51 		printf(
    92 			/* translators: %s: https://wordpress.org/about/license/ */
    52 			/* translators: %s: https://wordpress.org/about/license/ */
    93 			printf( __( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ), 'https://wordpress.org/about/license/' );
    53 			__( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
       
    54 			__( 'https://wordpress.org/about/license/' )
       
    55 		);
    94 		?>
    56 		?>
    95 		</p>
    57 		</p>
    96 	</div>
    58 	</div>
    97 
    59 
    98 	<div class="feature-section has-4-columns is-fullwidth">
    60 	<hr />
       
    61 
       
    62 	<div class="about__section has-4-columns">
    99 		<div class="column">
    63 		<div class="column">
   100 			<div class="freedoms-image"></div>
    64 			<div class="freedoms-image"></div>
   101 			<h3><?php _e( 'The 1st Freedom' ); ?></h3>
    65 			<h2 class="is-smaller-heading"><?php _e( 'The 1st Freedom' ); ?></h2>
   102 			<p><?php _e( 'To run the program for any purpose.' ); ?></p>
    66 			<p><?php _e( 'To run the program for any purpose.' ); ?></p>
   103 		</div>
    67 		</div>
   104 		<div class="column">
    68 		<div class="column">
   105 			<div class="freedoms-image"></div>
    69 			<div class="freedoms-image"></div>
   106 			<h3><?php _e( 'The 2nd Freedom' ); ?></h3>
    70 			<h2 class="is-smaller-heading"><?php _e( 'The 2nd Freedom' ); ?></h2>
   107 			<p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
    71 			<p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
   108 		</div>
    72 		</div>
   109 		<div class="column">
    73 		<div class="column">
   110 			<div class="freedoms-image"></div>
    74 			<div class="freedoms-image"></div>
   111 			<h3><?php _e( 'The 3rd Freedom' ); ?></h3>
    75 			<h2 class="is-smaller-heading"><?php _e( 'The 3rd Freedom' ); ?></h2>
   112 			<p><?php _e( 'To redistribute.' ); ?></p>
    76 			<p><?php _e( 'To redistribute.' ); ?></p>
   113 		</div>
    77 		</div>
   114 		<div class="column">
    78 		<div class="column">
   115 			<div class="freedoms-image"></div>
    79 			<div class="freedoms-image"></div>
   116 			<h3><?php _e( 'The 4th Freedom' ); ?></h3>
    80 			<h2 class="is-smaller-heading"><?php _e( 'The 4th Freedom' ); ?></h2>
   117 			<p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
    81 			<p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
   118 		</div>
    82 		</div>
   119 	</div>
    83 	</div>
   120 
    84 
   121 	<div class="feature-section has-1-columns">
    85 	<hr />
   122 		<p>
       
   123 		<?php
       
   124 			/* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
       
   125 			printf( __( '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&#8217;re 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/' );
       
   126 		?>
       
   127 		</p>
       
   128 
    86 
   129 		<p>
    87 	<div class="about__section">
   130 		<?php
    88 		<div class="column">
       
    89 			<p>
       
    90 			<?php
       
    91 			printf(
       
    92 				/* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
       
    93 				__( '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&#8217;re flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ),
       
    94 				'https://wordpressfoundation.org/trademark-policy/'
       
    95 			);
       
    96 			?>
       
    97 			</p>
       
    98 
       
    99 			<p>
       
   100 			<?php
   131 			$plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
   101 			$plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
   132 			$themes_url  = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
   102 			$themes_url  = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
   133 			/* translators: %s: https://wordpress.org/about/license/ */
   103 			printf(
   134 			printf( __( 'Every plugin and theme in WordPress.org&#8217;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&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ), $plugins_url, $themes_url, 'https://wordpress.org/about/license/' );
   104 				/* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
   135 		?>
   105 				__( 'Every plugin and theme in WordPress.org&#8217;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&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ),
   136 		</p>
   106 				$plugins_url,
       
   107 				$themes_url,
       
   108 				__( 'https://wordpress.org/about/license/' )
       
   109 			);
       
   110 			?>
       
   111 			</p>
   137 
   112 
   138 		<p><?php _e( 'Don&#8217;t you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>
   113 			<p><?php _e( 'Don&#8217;t you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>
       
   114 		</div>
   139 	</div>
   115 	</div>
       
   116 
   140 </div>
   117 </div>
   141 
   118 <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
   142 <?php endif; ?>
       
   143 </div>
       
   144 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>