"Fossies" - the Fresh Open Source Software Archive

Member "wordpress/wp-admin/freedoms.php" (23 Feb 2021, 4815 Bytes) of package /linux/www/wordpress-5.7-RC1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "freedoms.php" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.6.2_vs_5.7-RC1.

    1 <?php
    2 /**
    3  * Your Rights administration panel.
    4  *
    5  * @package WordPress
    6  * @subpackage Administration
    7  */
    8 
    9 /** WordPress Administration Bootstrap */
   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 }
   17 
   18 $title = __( 'Freedoms' );
   19 
   20 list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
   21 
   22 require_once ABSPATH . 'wp-admin/admin-header.php';
   23 ?>
   24 <div class="wrap about__container">
   25 
   26     <div class="about__header">
   27         <div class="about__header-image">
   28             <img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
   29         </div>
   30 
   31         <div class="about__header-container">
   32             <div class="about__header-title">
   33                 <p>
   34                     <?php _e( 'WordPress' ); ?>
   35                     <?php echo $display_version; ?>
   36                 </p>
   37             </div>
   38 
   39             <div class="about__header-text">
   40                 <?php _e( 'Jazz up your stories in an editor that’s cleaner, crisper, and does more to get out of your way.' ); ?>
   41             </div>
   42         </div>
   43 
   44         <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
   45             <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
   46             <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
   47             <a href="freedoms.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Freedoms' ); ?></a>
   48             <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
   49         </nav>
   50     </div>
   51 
   52     <div class="about__section has-subtle-background-color is-feature">
   53         <h1><?php _e( 'Freedoms' ); ?></h1>
   54 
   55         <p class="about-description">
   56         <?php
   57         printf(
   58             /* translators: %s: https://wordpress.org/about/license/ */
   59             __( '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.' ),
   60             __( 'https://wordpress.org/about/license/' )
   61         );
   62         ?>
   63         </p>
   64     </div>
   65 
   66     <hr />
   67 
   68     <div class="about__section has-4-columns">
   69         <div class="column">
   70             <div class="freedoms-image"></div>
   71             <h2 class="is-smaller-heading"><?php _e( 'The 1st Freedom' ); ?></h2>
   72             <p><?php _e( 'To run the program for any purpose.' ); ?></p>
   73         </div>
   74         <div class="column">
   75             <div class="freedoms-image"></div>
   76             <h2 class="is-smaller-heading"><?php _e( 'The 2nd Freedom' ); ?></h2>
   77             <p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
   78         </div>
   79         <div class="column">
   80             <div class="freedoms-image"></div>
   81             <h2 class="is-smaller-heading"><?php _e( 'The 3rd Freedom' ); ?></h2>
   82             <p><?php _e( 'To redistribute.' ); ?></p>
   83         </div>
   84         <div class="column">
   85             <div class="freedoms-image"></div>
   86             <h2 class="is-smaller-heading"><?php _e( 'The 4th Freedom' ); ?></h2>
   87             <p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
   88         </div>
   89     </div>
   90 
   91     <div class="about__section has-1-column">
   92         <div class="column">
   93             <p>
   94             <?php
   95             printf(
   96                 /* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
   97                 __( '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.' ),
   98                 'https://wordpressfoundation.org/trademark-policy/'
   99             );
  100             ?>
  101             </p>
  102 
  103             <p>
  104             <?php
  105             $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
  106             $themes_url  = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
  107             printf(
  108                 /* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
  109                 __( '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.' ),
  110                 $plugins_url,
  111                 $themes_url,
  112                 __( 'https://wordpress.org/about/license/' )
  113             );
  114             ?>
  115             </p>
  116 
  117             <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>
  118         </div>
  119     </div>
  120 
  121 </div>
  122 <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>