view_counter
3 years ago
dark_mode.php
3 years ago
first_day_of_week.php
3 years ago
index.php
3 years ago
track_authenticated_users.php
3 years ago
index.php
68 lines
| 1 | <div id="iawp-settings" class="iawp-settings settings-container"> |
| 2 | <form method="post" action="options.php"> |
| 3 | <?php settings_fields('iawp_settings'); ?> |
| 4 | <?php do_settings_sections('independent-analytics-settings'); ?> |
| 5 | <?php submit_button(__('Save settings', 'iawp'), 'iawp-button purple', 'save-settings'); ?> |
| 6 | </form> |
| 7 | </div> |
| 8 | <div class="view-counter-settings settings-container"> |
| 9 | <form method="post" action="options.php"> |
| 10 | <?php settings_fields('iawp_view_counter_settings'); ?> |
| 11 | <?php do_settings_sections('independent-analytics-view-counter-settings'); ?> |
| 12 | <div class="shortcode-note"> |
| 13 | <p><?php esc_html_e('You can output the view counter in a custom location using the shortcode:', 'iawp'); ?></p> |
| 14 | <p><code>[iawp_view_counter label="Views:" icon="1"]</code></p> |
| 15 | <p><?php printf( esc_html__('Use %1$s to hide the icon and %2$s to hide the label.', 'iawp'), |
| 16 | '<code>icon="0"</code>', '<code>label=""</code>'); ?></p> |
| 17 | </div> |
| 18 | <?php submit_button(__('Save settings', 'iawp'), 'iawp-button purple', 'save-settings'); ?> |
| 19 | </form> |
| 20 | </div> |
| 21 | <div class="export-settings settings-container"> |
| 22 | <h2><?php esc_html_e('Export', 'iawp'); ?></h2> |
| 23 | <div class="button-group"> |
| 24 | <button id="iawp-export-views" |
| 25 | class="iawp-button ghost-purple"><?php esc_html_e('Export views', 'iawp'); ?></button> |
| 26 | <button id="iawp-export-referrers" |
| 27 | class="iawp-button ghost-purple"><?php esc_html_e('Export referrers', 'iawp'); ?></button> |
| 28 | <button id="iawp-export-geo" |
| 29 | class="iawp-button ghost-purple"><?php esc_html_e('Export geo', 'iawp'); ?></button> |
| 30 | </div> |
| 31 | </div> |
| 32 | <div data-controller="delete-data" class="export-settings settings-container"> |
| 33 | <h2><?php esc_html_e('Danger zone', 'iawp') ?></h2> |
| 34 | <div class="button-group"> |
| 35 | <button data-action="click->delete-data#open" |
| 36 | class="iawp-button ghost-red"> |
| 37 | <?php esc_html_e('Delete all data', 'iawp'); ?> |
| 38 | </button> |
| 39 | </div> |
| 40 | <div id="delete-data-modal" aria-hidden="true" class="mm micromodal-slide"> |
| 41 | <div tabindex="-1" class="mm__overlay" data-action="click->delete-data#close"> |
| 42 | <div role="dialog" aria-modal="true" aria-labelledby="delete-data-modal-title" |
| 43 | class="mm__container"> |
| 44 | <h1><?php esc_html_e('Delete all data', 'iawp'); ?></h1> |
| 45 | <p> |
| 46 | <strong> |
| 47 | <?php echo $site_name; ?> |
| 48 | <br/> |
| 49 | <?php echo $site_url; ?> |
| 50 | </strong> |
| 51 | </p> |
| 52 | <p> |
| 53 | <?php esc_html_e('You are about to delete all analytics data associated with Independent Analytics. This includes all views, referrers, and settings.', 'iawp'); ?> |
| 54 | </p> |
| 55 | <p><?php printf(esc_html__('Type "%s" in the input below to confirm.', 'iawp'), 'Delete all data'); ?></p> |
| 56 | <form data-action="submit->delete-data#submit"> |
| 57 | <input type="text" autofocus data-delete-data-target="input" |
| 58 | data-action="input->delete-data#updateConfirmation" class="block-input"> |
| 59 | <button type="submit" class="iawp-button purple" |
| 60 | data-delete-data-target="submit"><?php esc_html_e('Delete all data', 'iawp'); ?></button> |
| 61 | <button type="button" class="iawp-button ghost-purple" |
| 62 | data-micromodal-close><?php esc_html_e('Cancel', 'iawp'); ?></button> |
| 63 | </form> |
| 64 | </div> |
| 65 | </div> |
| 66 | </div> |
| 67 | </div> |
| 68 |