[ Index ]

PHP Cross Reference of WordPress

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      include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
  18  }
  19  
  20  add_filter(
  21      'admin_body_class',
  22      static function( $body_class ) {
  23          $body_class .= ' privacy-settings ';
  24  
  25          return $body_class;
  26      }
  27  );
  28  
  29  wp_enqueue_script( 'privacy-tools' );
  30  
  31  require_once ABSPATH . 'wp-admin/admin-header.php';
  32  
  33  ?>
  34  <div class="privacy-settings-header">
  35      <div class="privacy-settings-title-section">
  36          <h1>
  37              <?php _e( 'Privacy' ); ?>
  38          </h1>
  39      </div>
  40  
  41      <nav class="privacy-settings-tabs-wrapper hide-if-no-js" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  42          <a href="<?php echo esc_url( admin_url( 'options-privacy.php' ) ); ?>" class="privacy-settings-tab">
  43              <?php
  44              /* translators: Tab heading for Site Health Status page. */
  45              _ex( 'Settings', 'Privacy Settings' );
  46              ?>
  47          </a>
  48  
  49          <a href="<?php echo esc_url( admin_url( 'options-privacy.php?tab=policyguide' ) ); ?>" class="privacy-settings-tab active" aria-current="true">
  50              <?php
  51              /* translators: Tab heading for Site Health Status page. */
  52              _ex( 'Policy Guide', 'Privacy Settings' );
  53              ?>
  54          </a>
  55      </nav>
  56  </div>
  57  
  58  <hr class="wp-header-end">
  59  
  60  <div class="notice notice-error hide-if-js">
  61      <p><?php _e( 'The Privacy Settings require JavaScript.' ); ?></p>
  62  </div>
  63  
  64  <div class="privacy-settings-body hide-if-no-js">
  65      <h2><?php _e( 'Privacy Policy Guide' ); ?></h2>
  66      <h3 class="section-title"><?php _e( 'Introduction' ); ?></h3>
  67      <p><?php _e( 'This text template will help you to create your web site&#8217;s privacy policy.' ); ?></p>
  68      <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>
  69      <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>
  70      <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>
  71      <div class="privacy-settings-accordion">
  72          <h4 class="privacy-settings-accordion-heading">
  73              <button aria-expanded="false" class="privacy-settings-accordion-trigger" aria-controls="privacy-settings-accordion-block-privacy-policy-guide" type="button">
  74                  <span class="title"><?php _e( 'Privacy Policy Guide' ); ?></span>
  75                  <span class="icon"></span>
  76              </button>
  77          </h4>
  78          <div id="privacy-settings-accordion-block-privacy-policy-guide" class="privacy-settings-accordion-panel" hidden="hidden">
  79              <?php
  80              $content = WP_Privacy_Policy_Content::get_default_content( true, false );
  81              echo $content;
  82              ?>
  83          </div>
  84      </div>
  85      <hr class="hr-separator">
  86      <h3 class="section-title"><?php _e( 'Policies' ); ?></h3>
  87      <div class="privacy-settings-accordion wp-privacy-policy-guide">
  88          <?php WP_Privacy_Policy_Content::privacy_policy_guide(); ?>
  89      </div>
  90  </div>
  91  <?php
  92  
  93  require_once ABSPATH . 'wp-admin/admin-footer.php';


Generated: Wed May 25 01:00:02 2022 Cross-referenced by PHPXref 0.7.1