[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

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( dirname( __FILE__ ) . '/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  include ( ABSPATH . 'wp-admin/admin-header.php' );
  23  ?>
  24  <div class="wrap about__container">
  25  
  26      <div class="about__header">
  27          <div class="about__header-title">
  28              <h1>
  29                  <span><?php echo $display_version; ?></span>
  30                  <?php _e( 'WordPress' ); ?>
  31              </h1>
  32          </div>
  33  
  34          <div class="about__header-badge"></div>
  35  
  36          <div class="about__header-text">
  37              <p>
  38                  <?php
  39                  printf(
  40                      /* translators: %s: The current WordPress version number. */
  41                      __( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
  42                      $display_version
  43                  );
  44                  ?>
  45              </p>
  46          </div>
  47  
  48          <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  49              <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
  50              <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
  51              <a href="freedoms.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Freedoms' ); ?></a>
  52              <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
  53          </nav>
  54      </div>
  55  
  56      <div class="about__section has-subtle-background-color is-feature">
  57          <h2><?php _e( 'Freedoms' ); ?></h2>
  58  
  59          <p class="about-description">
  60          <?php
  61          printf(
  62              /* translators: %s: https://wordpress.org/about/license/ */
  63              __( '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.' ),
  64              __( 'https://wordpress.org/about/license/' )
  65          );
  66          ?>
  67          </p>
  68      </div>
  69  
  70      <hr />
  71  
  72      <div class="about__section has-4-columns">
  73          <div class="column">
  74              <div class="freedoms-image"></div>
  75              <h3><?php _e( 'The 1st Freedom' ); ?></h3>
  76              <p><?php _e( 'To run the program for any purpose.' ); ?></p>
  77          </div>
  78          <div class="column">
  79              <div class="freedoms-image"></div>
  80              <h3><?php _e( 'The 2nd Freedom' ); ?></h3>
  81              <p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
  82          </div>
  83          <div class="column">
  84              <div class="freedoms-image"></div>
  85              <h3><?php _e( 'The 3rd Freedom' ); ?></h3>
  86              <p><?php _e( 'To redistribute.' ); ?></p>
  87          </div>
  88          <div class="column">
  89              <div class="freedoms-image"></div>
  90              <h3><?php _e( 'The 4th Freedom' ); ?></h3>
  91              <p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
  92          </div>
  93      </div>
  94  
  95      <div class="about__section">
  96          <div class="column">
  97              <p>
  98              <?php
  99              printf(
 100                  /* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
 101                  __( '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.' ),
 102                  'https://wordpressfoundation.org/trademark-policy/'
 103              );
 104              ?>
 105              </p>
 106  
 107              <p>
 108              <?php
 109              $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
 110              $themes_url  = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
 111              printf(
 112                  /* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
 113                  __( '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.' ),
 114                  $plugins_url,
 115                  $themes_url,
 116                  __( 'https://wordpress.org/about/license/' )
 117              );
 118              ?>
 119              </p>
 120  
 121              <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>
 122          </div>
 123      </div>
 124  
 125  </div>
 126  <?php include ( ABSPATH . 'wp-admin/admin-footer.php' ); ?>


Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7