view-counter
11 months ago
appearance.blade.php
11 months ago
block-by-role.blade.php
11 months ago
block-ips.blade.php
11 months ago
capabilities.blade.php
11 months ago
delete.blade.php
11 months ago
disable-admin-toolbar-analytics.blade.php
2 years ago
disable-views-column.blade.php
1 year ago
disable-widget.blade.php
2 years ago
email-reports.blade.php
5 months ago
export-reports.blade.php
6 months ago
first-day-of-week.blade.php
2 years ago
index.blade.php
2 years ago
pruner.blade.php
5 months ago
track-authenticated-users.blade.php
2 years ago
view-counter.blade.php
2 years ago
visitor-salt-refresh-interval.blade.php
6 months ago
woocommerce.blade.php
11 months ago
block-ips.blade.php
63 lines
| 1 | <div class="blocked-ip-settings settings-container"> |
| 2 | <div class="heading"> |
| 3 | <h2><?php esc_html_e('Ignore IP Addresses', 'independent-analytics'); ?></h2> |
| 4 | <a class="tutorial-link" href="https://independentwp.com/knowledgebase/data/how-to-block-ip-addresses/" target="_blank"> |
| 5 | <?php esc_html_e('Read Tutorial', 'independent-analytics'); ?> |
| 6 | </a> |
| 7 | </div> |
| 8 | <p><?php esc_html_e('Ignored IP addresses can still access the site, but their activity will not show up in the analytics.', 'independent-analytics'); ?></p> |
| 9 | <p class="current-ip-status <?php echo $ip_is_blocked ? 'blocked' : 'unblocked'; ?>"> |
| 10 | <?php $ip_is_blocked ? esc_html_e('Your IP address is ignored:', 'independent-analytics') : esc_html_e('Your IP address is not ignored:', 'independent-analytics'); ?> |
| 11 | <span id="current-ip" class="current-ip" data-current-ip="<?php echo esc_attr($current_ip); ?>"><?php echo esc_html($current_ip); ?></span><?php |
| 12 | if (!$ip_is_blocked) : ?> |
| 13 | <button id="block-current-ip" class="block-current-ip iawp-button"><?php esc_html_e('Ignore this IP', 'independent-analytics'); ?></button><?php |
| 14 | endif; ?> |
| 15 | </p> |
| 16 | <form method='post' action='options.php' id="block-ip-form" class="block-ip-form"> |
| 17 | <input type='hidden' name='option_page' value='iawp_blocked_ip_settings'/> |
| 18 | <input type="hidden" name="action" value="update"/> |
| 19 | <input type="hidden" name="_wp_http_referer" |
| 20 | value="/wp-admin/admin.php?page=independent-analytics-settings"> |
| 21 | <?php wp_nonce_field('iawp_blocked_ip_settings-options'); ?> |
| 22 | <div class="inner"> |
| 23 | <div class="block-new-ip duplicator"> |
| 24 | <div class="entry"> |
| 25 | <input class="new-field" type="text" placeholder="<?php echo '76.98.172.122'; ?>" value="" /> |
| 26 | <button class="iawp-button purple duplicate-button"><?php esc_html_e('Add', 'independent-analytics'); ?></button> |
| 27 | </div> |
| 28 | <div class="blueprint"> |
| 29 | <div class="entry"> |
| 30 | <input type="text" readonly |
| 31 | name="iawp_blocked_ips[]" |
| 32 | id="iawp_blocked_ips[]" |
| 33 | data-option="iawp_blocked_ips" |
| 34 | value=""> |
| 35 | <button class="remove iawp-button ghost-purple"><?php esc_html_e('Remove', 'independent-analytics'); ?></button> |
| 36 | </div> |
| 37 | </div> |
| 38 | <p class="error-message empty"><?php esc_html_e('Input is empty', 'independent-analytics'); ?></p> |
| 39 | <p class="error-message exists"><?php esc_html_e('This IP is already blocked', 'independent-analytics'); ?></p> |
| 40 | </div> |
| 41 | <div class="saved"> |
| 42 | <h3><?php esc_html_e('Ignored IPs', 'independent-analytics'); ?></h3> |
| 43 | <?php for ($i = 0; $i < count($ips); $i++): ?> |
| 44 | <div class="entry"> |
| 45 | <input type="text" readonly |
| 46 | name="iawp_blocked_ips[<?php echo esc_attr($i); ?>]" |
| 47 | id="iawp_blocked_ips[<?php echo esc_attr($i); ?>]" |
| 48 | data-option="iawp_blocked_ips" |
| 49 | value="<?php echo esc_attr($ips[$i]); ?>"> |
| 50 | <button class="remove iawp-button ghost-purple"><?php esc_html_e('Remove', 'independent-analytics'); ?></button> |
| 51 | </div> |
| 52 | <?php endfor; ?> |
| 53 | <?php if (count($ips) === 0): ?> |
| 54 | <p><?php esc_html_e('No ignored IPs', 'independent-analytics'); ?></p> |
| 55 | <?php endif; ?> |
| 56 | </div> |
| 57 | <div class="save-button-container"> |
| 58 | <?php submit_button(esc_html__('Save IP Addresses', 'independent-analytics'), 'iawp-button purple', 'save-blocked-ip-settings', false); ?> |
| 59 | <p class="warning-message"><span class="dashicons dashicons-warning"></span> <?php esc_html_e('Unsaved changes', 'independent-analytics'); ?></p> |
| 60 | </div> |
| 61 | </div> |
| 62 | </form> |
| 63 | </div> |