[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members Settings (Export Data)
   4   *
   5   * @since 3.1.0
   6   * @version 8.0.0
   7   */
   8  
   9  bp_nouveau_member_hook( 'before', 'settings_template' ); ?>
  10  
  11  <h2 class="screen-heading data-settings-screen">
  12      <?php esc_html_e( 'Data Export', 'buddypress' ); ?>
  13  </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  <h2 class="screen-heading data-settings-screen">
  62      <?php esc_html_e( 'Data Erase', 'buddypress' ); ?>
  63  </h2>
  64  
  65  <?php /* translators: Link to Delete Account Settings page */ ?>
  66  <p><?php esc_html_e( 'To erase all data associated with your account, your user account must be completely deleted.', 'buddypress' ); ?> <?php if ( bp_disable_account_deletion() ) : ?><?php esc_html_e( 'Please contact the site administrator to request account deletion.', 'buddypress' ); ?><?php else : ?><?php printf( esc_html__( 'You may delete your account by visiting the %s page.', 'buddypress' ), sprintf( '<a href="%s">%s</a>', bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/delete-account/', esc_html__( 'Delete Account', 'buddypress' ) ) ); ?><?php endif; ?></p>
  67  
  68  <?php
  69  bp_nouveau_member_hook( 'after', 'settings_template' );


Generated: Sun Apr 28 01:01:05 2024 Cross-referenced by PHPXref 0.7.1