[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/ -> freedoms.php (source)

   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  // Used in the HTML title tag.
  19  $title = __( 'Freedoms' );
  20  
  21  list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
  22  
  23  require_once  ABSPATH . 'wp-admin/admin-header.php';
  24  ?>
  25  <div class="wrap about__container">
  26  
  27      <div class="about__header">
  28          <div class="about__header-title">
  29              <h1>
  30                  <?php _e( 'The Four Freedoms' ); ?>
  31              </h1>
  32          </div>
  33  
  34          <div class="about__header-text">
  35              <?php _e( 'WordPress is free and open source software' ); ?>
  36          </div>
  37      </div>
  38  
  39      <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  40          <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
  41          <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
  42          <a href="freedoms.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Freedoms' ); ?></a>
  43          <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
  44          <a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
  45      </nav>
  46  
  47      <div class="about__section is-feature">
  48          <p class="about-description">
  49          <?php
  50          printf(
  51              /* translators: %s: https://wordpress.org/about/license/ */
  52              __( 'WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
  53              __( 'https://wordpress.org/about/license/' )
  54          );
  55          ?>
  56          </p>
  57      </div>
  58  
  59      <div class="about__section has-2-columns">
  60          <div class="column aligncenter">
  61              <img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-1.svg?ver=6.5' ) ); ?>" alt="" />
  62              <h2 class="is-smaller-heading"><?php _e( 'The 1st Freedom' ); ?></h2>
  63              <p><?php _e( 'To run the program for any purpose.' ); ?></p>
  64          </div>
  65          <div class="column aligncenter">
  66              <img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-2.svg?ver=6.5' ) ); ?>" alt="" />
  67              <h2 class="is-smaller-heading"><?php _e( 'The 2nd Freedom' ); ?></h2>
  68              <p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
  69          </div>
  70          <div class="column aligncenter">
  71              <img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-3.svg?ver=6.5' ) ); ?>" alt="" />
  72              <h2 class="is-smaller-heading"><?php _e( 'The 3rd Freedom' ); ?></h2>
  73              <p><?php _e( 'To redistribute.' ); ?></p>
  74          </div>
  75          <div class="column aligncenter">
  76              <img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-4.svg?ver=6.5' ) ); ?>" alt="" />
  77              <h2 class="is-smaller-heading"><?php _e( 'The 4th Freedom' ); ?></h2>
  78              <p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
  79          </div>
  80      </div>
  81  
  82      <div class="about__section has-1-column">
  83          <div class="column">
  84              <p>
  85              <?php
  86              printf(
  87                  /* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
  88                  __( '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.' ),
  89                  'https://wordpressfoundation.org/trademark-policy/'
  90              );
  91              ?>
  92              </p>
  93  
  94              <p>
  95              <?php
  96              $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
  97              $themes_url  = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
  98              printf(
  99                  /* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
 100                  __( '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 do not respect the WordPress license, it is not recommended to use them.' ),
 101                  $plugins_url,
 102                  $themes_url,
 103                  __( 'https://wordpress.org/about/license/' )
 104              );
 105              ?>
 106              </p>
 107          </div>
 108      </div>
 109  
 110  </div>
 111  <?php require_once  ABSPATH . 'wp-admin/admin-footer.php'; ?>


Generated : Fri Apr 19 08:20:01 2024 Cross-referenced by PHPXref