wp/wp-admin/freedoms.php
changeset 9 177826044cd9
parent 7 cf61fcea0001
child 16 a86126ab1dd4
equal deleted inserted replaced
8:c7c34916027a 9:177826044cd9
    15 
    15 
    16 include( ABSPATH . 'wp-admin/admin-header.php' );
    16 include( ABSPATH . 'wp-admin/admin-header.php' );
    17 
    17 
    18 $is_privacy_notice = isset( $_GET['privacy-notice'] );
    18 $is_privacy_notice = isset( $_GET['privacy-notice'] );
    19 
    19 
       
    20 if ( $is_privacy_notice ) {
       
    21 	$freedoms_class        = '';
       
    22 	$privacy_class         = ' nav-tab-active';
       
    23 	$freedoms_aria_current = '';
       
    24 	$privacy_aria_current  = ' aria-current="page"';
       
    25 } else {
       
    26 	$freedoms_class        = ' nav-tab-active';
       
    27 	$privacy_class         = '';
       
    28 	$freedoms_aria_current = ' aria-current="page"';
       
    29 	$privacy_aria_current  = '';
       
    30 }
       
    31 
    20 ?>
    32 ?>
    21 <div class="wrap about-wrap full-width-layout">
    33 <div class="wrap about-wrap full-width-layout">
    22 
    34 
    23 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
    35 <h1>
       
    36 	<?php
       
    37 	/* translators: %s: The current WordPress version number */
       
    38 	printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version );
       
    39 	?>
       
    40 </h1>
    24 
    41 
    25 <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s will smooth your design workflow and keep you safe from coding errors.' ), $display_version ); ?></p>
    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>
    26 
    51 
    27 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    52 <div class="wp-badge">
       
    53 	<?php
       
    54 	/* translators: %s: The current WordPress version number */
       
    55 	printf( __( 'Version %s' ), $display_version );
       
    56 	?>
       
    57 </div>
    28 
    58 
    29 <h2 class="nav-tab-wrapper wp-clearfix">
    59 <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    30 	<a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    60 	<a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    31 	<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    61 	<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    32 	<a href="freedoms.php" class="nav-tab<?php if ( ! $is_privacy_notice ) { echo ' nav-tab-active'; } ?>"><?php _e( 'Freedoms' ); ?></a>
    62 	<a href="freedoms.php" class="nav-tab<?php echo $freedoms_class; ?>"<?php echo $freedoms_aria_current; ?>><?php _e( 'Freedoms' ); ?></a>
    33 	<a href="freedoms.php?privacy-notice" class="nav-tab<?php if ( $is_privacy_notice ) { echo ' nav-tab-active'; } ?>"><?php _e( 'Privacy' ); ?></a>
    63 	<a href="freedoms.php?privacy-notice" class="nav-tab<?php echo $privacy_class; ?>"<?php echo $privacy_aria_current; ?>><?php _e( 'Privacy' ); ?></a>
    34 </h2>
    64 </nav>
    35 
    65 
    36 <?php if ( $is_privacy_notice ) : ?>
    66 <?php if ( $is_privacy_notice ) : ?>
    37 
    67 
    38 <div class="about-wrap-content">
    68 <div class="about-wrap-content">
    39 	<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>
    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>
    40 
    70 
    41 	<p><?php 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/' ); ?></p>
    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>
    42 
    77 
    43 	<p><?php 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/' ); ?></p>
    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>
    44 </div>
    84 </div>
    45 
    85 
    46 <?php else : ?>
    86 <?php else : ?>
    47 <div class="about-wrap-content">
    87 <div class="about-wrap-content">
    48 	<p class="about-description"><?php 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/' ); ?></p>
    88 	<div class="feature-section has-1-columns">
       
    89 		<h2><?php _e( 'Freedoms' ); ?></h2>
       
    90 		<p class="about-description">
       
    91 		<?php
       
    92 			/* 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/' );
       
    94 		?>
       
    95 		</p>
       
    96 	</div>
    49 
    97 
    50 	<ol start="0">
    98 	<div class="feature-section has-4-columns is-fullwidth">
    51 		<li><p><?php _e( 'You have the freedom to run the program, for any purpose.' ); ?></p></li>
    99 		<div class="column">
    52 		<li><p><?php _e( 'You have access to the source code, the freedom to study how the program works, and the freedom to change it to make it do what you wish.' ); ?></p></li>
   100 			<div class="freedoms-image"></div>
    53 		<li><p><?php _e( 'You have the freedom to redistribute copies of the original program so you can help your neighbor.' ); ?></p></li>
   101 			<h3><?php _e( 'The 1st Freedom' ); ?></h3>
    54 		<li><p><?php _e( 'You have the freedom to distribute copies of your modified versions to others. By doing this you can give the whole community a chance to benefit from your changes.' ); ?></p></li>
   102 			<p><?php _e( 'To run the program for any purpose.' ); ?></p>
    55 	</ol>
   103 		</div>
       
   104 		<div class="column">
       
   105 			<div class="freedoms-image"></div>
       
   106 			<h3><?php _e( 'The 2nd Freedom' ); ?></h3>
       
   107 			<p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
       
   108 		</div>
       
   109 		<div class="column">
       
   110 			<div class="freedoms-image"></div>
       
   111 			<h3><?php _e( 'The 3rd Freedom' ); ?></h3>
       
   112 			<p><?php _e( 'To redistribute.' ); ?></p>
       
   113 		</div>
       
   114 		<div class="column">
       
   115 			<div class="freedoms-image"></div>
       
   116 			<h3><?php _e( 'The 4th Freedom' ); ?></h3>
       
   117 			<p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
       
   118 		</div>
       
   119 	</div>
    56 
   120 
    57 	<p><?php 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/' ); ?></p>
   121 	<div class="feature-section has-1-columns">
       
   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>
    58 
   128 
    59 	<p><?php
   129 		<p>
       
   130 		<?php
       
   131 			$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/' );
       
   133 			/* translators: %s: https://wordpress.org/about/license/ */
       
   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/' );
       
   135 		?>
       
   136 		</p>
    60 
   137 
    61 	$plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
   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>
    62 	$themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
   139 	</div>
    63 
       
    64 	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/' ); ?></p>
       
    65 
       
    66 	<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>
       
    67 </div>
   140 </div>
    68 
   141 
    69 <?php endif; ?>
   142 <?php endif; ?>
    70 </div>
   143 </div>
    71 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
   144 <?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>