ip-address.php
6 years ago
ip-delete.php
6 years ago
ip-retention.php
5 years ago
ip-tracking.php
5 years ago
submissions-account-erasure.php
5 years ago
submissions-privacy.php
6 years ago
submissions-retention.php
5 years ago
tracking-data.php
5 years ago
ip-retention.php
62 lines
| 1 | <?php |
| 2 | /** |
| 3 | * IP retention section under the "privacy" tab. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.3 |
| 7 | */ |
| 8 | |
| 9 | ob_start(); |
| 10 | ?> |
| 11 | <div class="sui-row"> |
| 12 | <div class="sui-col-md-6"> |
| 13 | <input type="number" |
| 14 | name="ip_retention_number" |
| 15 | value="<?php echo esc_attr( $settings['ip_retention_number'] ); ?>" |
| 16 | placeholder="0" |
| 17 | class="sui-form-control" /> |
| 18 | </div> |
| 19 | <div class="sui-col-md-6" > |
| 20 | <select name="ip_retention_number_unit" id="hustle-select-ip_retention_number_unit"> |
| 21 | <option value="days" <?php selected( 'days', $settings['ip_retention_number_unit'] ); ?>><?php esc_html_e( 'day(s)', 'hustle' ); ?></option> |
| 22 | <option value="weeks" <?php selected( 'weeks', $settings['ip_retention_number_unit'] ); ?>><?php esc_html_e( 'week(s)', 'hustle' ); ?></option> |
| 23 | <option value="months" <?php selected( 'months', $settings['ip_retention_number_unit'] ); ?>><?php esc_html_e( 'month(s)', 'hustle' ); ?></option> |
| 24 | <option value="years" <?php selected( 'years', $settings['ip_retention_number_unit'] ); ?>><?php esc_html_e( 'year(s)', 'hustle' ); ?></option> |
| 25 | </select> |
| 26 | </div> |
| 27 | </div> |
| 28 | <?php $custom_tab_content = ob_get_clean(); ?> |
| 29 | |
| 30 | <fieldset class="sui-form-field"> |
| 31 | |
| 32 | <label class="sui-settings-label"><?php esc_html_e( 'IP Retention', 'hustle' ); ?></label> |
| 33 | |
| 34 | <span class="sui-description" style="margin-bottom: 10px;"><?php esc_html_e( 'Choose how long to retain IP address before submission or tracking data entry is anonymized in your database.', 'hustle' ); ?></span> |
| 35 | |
| 36 | <?php |
| 37 | $this->render( |
| 38 | 'admin/global/sui-components/sui-tabs', |
| 39 | array( |
| 40 | 'name' => 'retain_ip_forever', |
| 41 | 'radio' => true, |
| 42 | 'saved_value' => $settings['retain_ip_forever'], |
| 43 | 'sidetabs' => true, |
| 44 | 'content' => true, |
| 45 | 'options' => array( |
| 46 | '1' => array( |
| 47 | 'value' => '1', |
| 48 | 'label' => esc_html__( 'Forever', 'hustle' ), |
| 49 | ), |
| 50 | '0' => array( |
| 51 | 'value' => '0', |
| 52 | 'label' => esc_html__( 'Custom', 'hustle' ), |
| 53 | 'boxed' => true, |
| 54 | 'content' => $custom_tab_content, |
| 55 | ), |
| 56 | ), |
| 57 | ) |
| 58 | ); |
| 59 | ?> |
| 60 | |
| 61 | </fieldset> |
| 62 |