[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/settings/ -> data.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Members Settings Data
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 4.0.0
   8   */
   9  
  10  /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
  11  do_action( 'bp_before_member_settings_template' ); ?>
  12  
  13  <h2><?php _e( 'Data Export', 'buddypress' );?></h2>
  14  
  15  <?php $request = bp_settings_get_personal_data_request(); ?>
  16  
  17  <?php if ( $request ) : ?>
  18  
  19      <?php if ( 'request-completed' === $request->status ) : ?>
  20  
  21          <?php if ( bp_settings_personal_data_export_exists( $request ) ) : ?>
  22  
  23              <p><?php esc_html_e( 'Your request for an export of personal data has been completed.', 'buddypress' ); ?></p>
  24              <p><?php printf( esc_html__( 'You may download your personal data by clicking on the link below. For privacy and security, we will automatically delete the file on %s, so please download it before then.', 'buddypress' ), bp_settings_get_personal_data_expiration_date( $request ) ); ?></p>
  25  
  26              <p><strong><?php printf( '<a href="%1$s">%2$s</a>', bp_settings_get_personal_data_export_url( $request ), esc_html__( 'Download personal data', 'buddypress' ) ); ?></strong></p>
  27  
  28          <?php else : ?>
  29  
  30              <p><?php esc_html_e( 'Your previous request for an export of personal data has expired.', 'buddypress' ); ?></p>
  31              <p><?php esc_html_e( 'Please click on the button below to make a new request.', 'buddypress' ); ?></p>
  32  
  33              <form id="bp-data-export" method="post">
  34                  <input type="hidden" name="bp-data-export-delete-request-nonce" value="<?php echo wp_create_nonce( 'bp-data-export-delete-request' ); ?>" />
  35                  <button type="submit" name="bp-data-export-nonce" value="<?php echo wp_create_nonce( 'bp-data-export' ); ?>"><?php esc_html_e( 'Request new data export', 'buddypress' ); ?></button>
  36              </form>
  37  
  38          <?php endif; ?>
  39  
  40      <?php elseif ( 'request-confirmed' === $request->status ) : ?>
  41  
  42          <p><?php printf( esc_html__( 'You previously requested an export of your personal data on %s.', 'buddypress' ), bp_settings_get_personal_data_confirmation_date( $request ) ); ?></p>
  43          <p><?php esc_html_e( 'You will receive a link to download your export via email once we are able to fulfill your request.', 'buddypress' ); ?></p>
  44  
  45      <?php endif; ?>
  46  
  47  <?php else : ?>
  48  
  49      <p><?php esc_html_e( 'You can request an export of your personal data, containing the following items if applicable:', 'buddypress' ); ?></p>
  50  
  51      <?php bp_settings_data_exporter_items(); ?>
  52  
  53      <p><?php esc_html_e( 'If you want to make a request, please click on the button below:', 'buddypress' ); ?></p>
  54  
  55      <form id="bp-data-export" method="post">
  56          <button type="submit" name="bp-data-export-nonce" value="<?php echo wp_create_nonce( 'bp-data-export' ); ?>"><?php esc_html_e( 'Request personal data export', 'buddypress' ); ?></button>
  57      </form>
  58  
  59  <?php endif; ?>
  60  
  61  <!--
  62  <h2 class="bp-screen-reader-text"><?php
  63      /* translators: accessibility text */
  64      _e( 'Data Erase', 'buddypress' );
  65  ?></h2>
  66  
  67  <p>You can make a request to erase the following type of data from the site:</p>
  68  
  69  <p>If you want to make a request, please click on the button below:</p>
  70  
  71      <form id="bp-data-erase" method="post">
  72          <button type="submit" name="bp-data-erase-nonce" value="<?php echo wp_create_nonce( 'bp-data-erase' ); ?>">Request data erasure</button>
  73      </form>
  74  -->
  75  
  76  <?php
  77  
  78  /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
  79  do_action( 'bp_after_member_settings_template' );


Generated: Sun Dec 8 01:01:37 2019 Cross-referenced by PHPXref 0.7.1