view-counter
2 years ago
block-by-role.blade.php
2 years ago
block-ips.blade.php
2 years ago
capabilities.blade.php
2 years ago
dark-mode.blade.php
2 years ago
delete.blade.php
2 years ago
disable-admin-toolbar-analytics.blade.php
2 years ago
disable-widget.blade.php
2 years ago
email-reports.blade.php
2 years ago
export-data.blade.php
2 years ago
export-reports.blade.php
2 years ago
first-day-of-week.blade.php
2 years ago
index.blade.php
2 years ago
notice.blade.php
2 years ago
track-authenticated-users.blade.php
2 years ago
view-counter.blade.php
2 years ago
email-reports.blade.php
94 lines
| 1 | <div class="email-reports settings-container"> |
| 2 | <h2><?php esc_html_e('Email Report', 'independent-analytics'); ?></h2> |
| 3 | <div class="pro-tag"><?php esc_html_e('Pro', 'independent-analytics'); ?></div> |
| 4 | <p><?php esc_html_e('The HTML email report is automatically scheduled for the 1st of every month.', 'independent-analytics'); ?></p> |
| 5 | <form method='post' action='options.php' id="email-reports-form" class="email-reports-form"> |
| 6 | <input type='hidden' name='option_page' value='iawp_email_report_settings'/> |
| 7 | <input type="hidden" name="action" value="update"/> |
| 8 | <input type="hidden" name="_wp_http_referer" |
| 9 | value="/wp-admin/admin.php?page=independent-analytics&tab=settings"> |
| 10 | <?php wp_nonce_field('iawp_email_report_settings-options'); ?> |
| 11 | <div class="inner"> |
| 12 | <div class="delivery-time iawp-section"> |
| 13 | <h3><?php esc_html_e('Delivery Time', 'independent-analytics'); ?></h3> |
| 14 | <select id="iawp_email_report_time" name="iawp_email_report_time"> |
| 15 | <?php for ($i = 0; $i < 24; $i++) { |
| 16 | $readable_time = new DateTime(date('Y-m-d') . ' ' . $i . ':00:00'); |
| 17 | $readable_time = $readable_time->format(get_option('time_format')); ?> |
| 18 | <option value="<?php esc_attr_e($i); ?>" <?php selected($time, $i, true); ?>><?php esc_html_e($readable_time); ?></option> |
| 19 | <?php |
| 20 | } ?> |
| 21 | </select> |
| 22 | </div> |
| 23 | <div class="custom-colors iawp-section"> |
| 24 | <h3><?php esc_html_e('Customize the colors', 'independent-analytics'); ?></h3> |
| 25 | <div class="custom-colors-list"> |
| 26 | <div class="custom-color"> |
| 27 | <p class="element-name"><?php esc_html_e('Header background', 'independent-analytics'); ?></p> |
| 28 | <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($saved_colors[0]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[0]); ?>" /> |
| 29 | </div> |
| 30 | <div class="custom-color"> |
| 31 | <p class="element-name"><?php esc_html_e('Header text', 'independent-analytics'); ?></p> |
| 32 | <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($saved_colors[1]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[1]); ?>" /> |
| 33 | </div> |
| 34 | <div class="custom-color"> |
| 35 | <p class="element-name"><?php esc_html_e('Sub-header background', 'independent-analytics'); ?></p> |
| 36 | <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($saved_colors[2]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[2]); ?>" /> |
| 37 | </div> |
| 38 | <div class="custom-color"> |
| 39 | <p class="element-name"><?php esc_html_e('Sub-header text', 'independent-analytics'); ?></p> |
| 40 | <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($saved_colors[3]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[3]); ?>" /> |
| 41 | </div> |
| 42 | <div class="custom-color"> |
| 43 | <p class="element-name"><?php esc_html_e('Bar chart', 'independent-analytics'); ?></p> |
| 44 | <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($saved_colors[4]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[4]); ?>" /> |
| 45 | </div> |
| 46 | <div class="custom-color"> |
| 47 | <p class="element-name"><?php esc_html_e('Bar chart accent', 'independent-analytics'); ?></p> |
| 48 | <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($saved_colors[5]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[5]); ?>" /> |
| 49 | </div> |
| 50 | </div> |
| 51 | <input type="hidden" id="iawp_email_report_colors" name="iawp_email_report_colors" value="<?php echo implode(',', $saved_colors); ?>" /> |
| 52 | </div> |
| 53 | <div class="email-addresses iawp-section"> |
| 54 | <h3><?php esc_html_e('Add new email addresses', 'independent-analytics'); ?></h3> |
| 55 | <div class="new-address duplicator"> |
| 56 | <div class="entry"> |
| 57 | <input class="new-field" type="email" placeholder="name@email.com" value="" /> |
| 58 | <button class="iawp-button purple duplicate-button"><?php esc_html_e('Add email', 'independent-analytics'); ?></button> |
| 59 | </div> |
| 60 | <div class="blueprint"> |
| 61 | <div class="entry"> |
| 62 | <input type="text" readonly |
| 63 | name="iawp_email_report_email_addresses[]" |
| 64 | id="iawp_email_report_email_addresses[]" |
| 65 | data-option="iawp_email_report_email_addresses" |
| 66 | value=""> |
| 67 | <button class="remove iawp-button ghost-purple"><?php esc_html_e('Remove email', 'independent-analytics'); ?></button> |
| 68 | </div> |
| 69 | </div> |
| 70 | <p class="error-message empty"><?php esc_html_e('Input is empty', 'independent-analytics'); ?></p> |
| 71 | <p class="error-message exists"><?php esc_html_e('This email already exists', 'independent-analytics'); ?></p> |
| 72 | </div> |
| 73 | <div class="saved"> |
| 74 | <h3><?php esc_html_e('Sending to these addresses', 'independent-analytics'); ?></h3> |
| 75 | <?php for ($i = 0; $i < count($emails); $i++) : ?> |
| 76 | <div class="entry"> |
| 77 | <input type="email" readonly |
| 78 | id="iawp_email_report_email_addresses[<?php esc_attr_e($i); ?>]" |
| 79 | name="iawp_email_report_email_addresses[<?php esc_attr_e($i); ?>]" |
| 80 | data-option="iawp_email_report_email_addresses" |
| 81 | value="<?php esc_attr_e($emails[$i]); ?>" /> |
| 82 | <button class="remove iawp-button ghost-purple"><?php esc_html_e('Remove email', 'independent-analytics'); ?></button> |
| 83 | </div> |
| 84 | <?php endfor; ?> |
| 85 | </div> |
| 86 | </div> |
| 87 | <div class="save-button-container"> |
| 88 | <?php submit_button(esc_html__('Save settings', 'independent-analytics'), 'iawp-button purple', 'save-email-report-settings', false); ?> |
| 89 | <button id="test-email" class="test-email iawp-button ghost-purple"><?php esc_html_e('Send test email', 'independent-analytics'); ?></button> |
| 90 | <p class="warning-message"><span class="dashicons dashicons-warning"></span> <?php esc_html_e('Unsaved changes', 'independent-analytics'); ?></p> |
| 91 | </div> |
| 92 | </div> |
| 93 | </form> |
| 94 | </div> |