[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/ -> privacy-policy-guide.php (source)

   1  <?php
   2  /**
   3   * Privacy Policy Guide Screen.
   4   *
   5   * @package WordPress
   6   * @subpackage Administration
   7   */
   8  
   9  /** WordPress Administration Bootstrap */
  10  require_once  __DIR__ . '/admin.php';
  11  
  12  if ( ! current_user_can( 'manage_privacy_options' ) ) {
  13      wp_die( __( 'Sorry, you are not allowed to manage privacy options on this site.' ) );
  14  }
  15  
  16  if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
  17      require_once  ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
  18  }
  19  
  20  // Used in the HTML title tag.
  21  $title = __( 'Privacy Policy Guide' );
  22  
  23  add_filter(
  24      'admin_body_class',
  25      static function ( $body_class ) {
  26          $body_class .= ' privacy-settings ';
  27  
  28          return $body_class;
  29      }
  30  );
  31  
  32  wp_enqueue_script( 'privacy-tools' );
  33  
  34  require_once  ABSPATH . 'wp-admin/admin-header.php';
  35  
  36  ?>
  37  <div class="privacy-settings-header">
  38      <div class="privacy-settings-title-section">
  39          <h1>
  40              <?php _e( 'Privacy' ); ?>
  41          </h1>
  42      </div>
  43  
  44      <nav class="privacy-settings-tabs-wrapper hide-if-no-js" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  45          <a href="<?php echo esc_url( admin_url( 'options-privacy.php' ) ); ?>" class="privacy-settings-tab">
  46              <?php
  47              /* translators: Tab heading for Site Health Status page. */
  48              _ex( 'Settings', 'Privacy Settings' );
  49              ?>
  50          </a>
  51  
  52          <a href="<?php echo esc_url( admin_url( 'options-privacy.php?tab=policyguide' ) ); ?>" class="privacy-settings-tab active" aria-current="true">
  53              <?php
  54              /* translators: Tab heading for Site Health Status page. */
  55              _ex( 'Policy Guide', 'Privacy Settings' );
  56              ?>
  57          </a>
  58      </nav>
  59  </div>
  60  
  61  <hr class="wp-header-end">
  62  
  63  <?php
  64  wp_admin_notice(
  65      __( 'The Privacy Settings require JavaScript.' ),
  66      array(
  67          'type'               => 'error',
  68          'additional_classes' => array( 'hide-if-js' ),
  69      )
  70  );
  71  ?>
  72  
  73  <div class="privacy-settings-body hide-if-no-js">
  74      <h2><?php _e( 'Privacy Policy Guide' ); ?></h2>
  75      <h3 class="section-title"><?php _e( 'Introduction' ); ?></h3>
  76      <p><?php _e( 'This text template will help you to create your website&#8217;s privacy policy.' ); ?></p>
  77      <p><?php _e( 'The template contains a suggestion of sections you most likely will need. Under each section heading, you will find a short summary of what information you should provide, which will help you to get started. Some sections include suggested policy content, others will have to be completed with information from your theme and plugins.' ); ?></p>
  78      <p><?php _e( 'Please edit your privacy policy content, making sure to delete the summaries, and adding any information from your theme and plugins. Once you publish your policy page, remember to add it to your navigation menu.' ); ?></p>
  79      <p><?php _e( 'It is your responsibility to write a comprehensive privacy policy, to make sure it reflects all national and international legal requirements on privacy, and to keep your policy current and accurate.' ); ?></p>
  80      <div class="privacy-settings-accordion">
  81          <h4 class="privacy-settings-accordion-heading">
  82              <button aria-expanded="false" class="privacy-settings-accordion-trigger" aria-controls="privacy-settings-accordion-block-privacy-policy-guide" type="button">
  83                  <span class="title"><?php _e( 'Privacy Policy Guide' ); ?></span>
  84                  <span class="icon"></span>
  85              </button>
  86          </h4>
  87          <div id="privacy-settings-accordion-block-privacy-policy-guide" class="privacy-settings-accordion-panel" hidden="hidden">
  88              <?php
  89              $content = WP_Privacy_Policy_Content::get_default_content( true, false );
  90              echo $content;
  91              ?>
  92          </div>
  93      </div>
  94      <hr class="hr-separator">
  95      <h3 class="section-title"><?php _e( 'Policies' ); ?></h3>
  96      <div class="privacy-settings-accordion wp-privacy-policy-guide">
  97          <?php WP_Privacy_Policy_Content::privacy_policy_guide(); ?>
  98      </div>
  99  </div>
 100  <?php
 101  
 102  require_once  ABSPATH . 'wp-admin/admin-footer.php';


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