[ Index ]

PHP Cross Reference of WordPress

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  
  38          <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  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>
  45  
  46      <div class="about__section is-feature">
  47          <p class="about-description">
  48          <?php
  49          printf(
  50              /* translators: %s: https://wordpress.org/about/license/ */
  51              __( 'WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
  52              __( 'https://wordpress.org/about/license/' )
  53          );
  54          ?>
  55          </p>
  56      </div>
  57  
  58      <div class="about__section has-2-columns">
  59          <div class="column aligncenter">
  60              <img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-1.svg' ) ); ?>" alt="" />
  61              <h2 class="is-smaller-heading"><?php _e( 'The 1st Freedom' ); ?></h2>
  62              <p><?php _e( 'To run the program for any purpose.' ); ?></p>
  63          </div>
  64          <div class="column aligncenter">
  65              <img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-2.svg' ) ); ?>" alt="" />
  66              <h2 class="is-smaller-heading"><?php _e( 'The 2nd Freedom' ); ?></h2>
  67              <p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
  68          </div>
  69          <div class="column aligncenter">
  70              <img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-3.svg' ) ); ?>" alt="" />
  71              <h2 class="is-smaller-heading"><?php _e( 'The 3rd Freedom' ); ?></h2>
  72              <p><?php _e( 'To redistribute.' ); ?></p>
  73          </div>
  74          <div class="column aligncenter">
  75              <img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-4.svg' ) ); ?>" alt="" />
  76              <h2 class="is-smaller-heading"><?php _e( 'The 4th Freedom' ); ?></h2>
  77              <p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
  78          </div>
  79      </div>
  80  
  81      <div class="about__section has-1-column">
  82          <div class="column">
  83              <p>
  84              <?php
  85              printf(
  86                  /* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
  87                  __( '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.' ),
  88                  'https://wordpressfoundation.org/trademark-policy/'
  89              );
  90              ?>
  91              </p>
  92  
  93              <p>
  94              <?php
  95              $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
  96              $themes_url  = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
  97              printf(
  98                  /* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
  99                  __( '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.' ),
 100                  $plugins_url,
 101                  $themes_url,
 102                  __( 'https://wordpress.org/about/license/' )
 103              );
 104              ?>
 105              </p>
 106          </div>
 107      </div>
 108  
 109  </div>
 110  <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>


Generated: Fri May 20 01:00:02 2022 Cross-referenced by PHPXref 0.7.1