PluginProbe ʕ •ᴥ•ʔ
Independent Analytics – WordPress Analytics Plugin / 2.14.2
Independent Analytics – WordPress Analytics Plugin v2.14.2
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 1.19.1 1.2 1.20.0 1.21.0 1.22.0 1.22.1 1.23.0 1.23.1 1.24.0 1.24.1 1.25.0 1.25.1 1.26.0 1.27.0 1.28.0 1.28.1 1.28.2 1.28.3 1.29.0 1.3 1.30.0 1.30.1 1.4 1.5 1.6 1.7 1.8 1.9 2.0.0 2.0.1 2.1.4 2.1.5 2.1.6 2.10.0 2.10.1 2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.10 2.11.2 2.11.3 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.11.9 2.12.0 2.12.1 2.12.2 2.13.1 2.13.2 2.13.5 2.13.6 2.14.0 2.14.1 2.14.2 2.14.4 2.14.6 2.14.7 2.14.8 2.14.9 2.2.0 2.2.1 2.3.1 2.3.2 2.4.2 2.4.3 2.5.0 2.5.1 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.7.1 2.7.2 2.7.3 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7
independent-analytics / views / settings / email-reports.blade.php
independent-analytics / views / settings Last commit date
view-counter 1 year ago appearance.blade.php 1 year ago block-by-role.blade.php 1 year ago block-ips.blade.php 1 year ago capabilities.blade.php 1 year ago delete.blade.php 1 year ago disable-admin-toolbar-analytics.blade.php 2 years ago disable-views-column.blade.php 2 years ago disable-widget.blade.php 2 years ago email-reports.blade.php 6 months ago export-reports.blade.php 7 months ago first-day-of-week.blade.php 2 years ago index.blade.php 2 years ago pruner.blade.php 6 months ago track-authenticated-users.blade.php 2 years ago view-counter.blade.php 2 years ago visitor-salt-refresh-interval.blade.php 7 months ago woocommerce.blade.php 1 year ago
email-reports.blade.php
177 lines
1 <div class="email-reports settings-container">
2 <div class="heading">
3 <h2><?php esc_html_e('Email Report', 'independent-analytics'); ?></h2>
4 <a class="tutorial-link" href="https://independentwp.com/knowledgebase/pro/email-reports/" target="_blank">
5 <?php esc_html_e('Read Tutorial', 'independent-analytics'); ?>
6 </a>
7 <div class="pro-tag"><?php esc_html_e('Pro', 'independent-analytics'); ?></div>
8 </div>
9 <form method='post' action='options.php' id="email-reports-form" class="email-reports-form">
10 <input type='hidden' name='option_page' value='iawp_email_report_settings'/>
11 <input type="hidden" name="action" value="update"/>
12 <input type="hidden" name="_wp_http_referer"
13 value="/wp-admin/admin.php?page=independent-analytics-settings">
14 <?php wp_nonce_field('iawp_email_report_settings-options'); ?>
15 <div class="inner">
16 <?php if($is_scheduled): ?>
17 <div id="next-email" class="schedule-notification is-scheduled" data-timestamp="<?php echo absint($timestamp); ?>">
18 <span class="dashicons dashicons-yes-alt"></span>
19 <p><?php echo wp_kses_post($scheduled_date); ?></p>
20 <button class="iawp-button" type="button" data-controller="pause-emails" data-action="pause-emails#pause"><?php esc_html_e('Pause Emails', 'independent-analytics'); ?></button>
21 </div>
22 <?php elseif($is_paused): ?>
23 <div id="next-email" class="schedule-notification is-paused" data-timestamp="<?php echo absint($timestamp); ?>">
24 <span class="dashicons dashicons-controls-pause"></span>
25 <p><?php esc_html_e('Emails are currently paused.', 'independent-analytics'); ?></p>
26 <button class="iawp-button" type="button" data-controller="pause-emails" data-action="pause-emails#resume"><?php esc_html_e('Resume Emails', 'independent-analytics'); ?></button>
27 </div>
28 <?php else: ?>
29 <div id="next-email" class="schedule-notification is-not-scheduled">
30 <span class="dashicons dashicons-dismiss"></span>
31 <p><?php echo wp_kses_post($scheduled_date); ?></p>
32 </div>
33 <?php endif; ?>
34 <div class="delivery-interval iawp-section">
35 <h3><?php esc_html_e('Delivery Interval', 'independent-analytics'); ?></h3>
36 <select id="iawp_email_report_interval" name="iawp_email_report_interval">
37 <option value="monthly" <?php selected($interval, 'monthly', true); ?>><?php esc_html_e('Monthly', 'independent-analytics'); ?></option>
38 <option value="weekly" <?php selected($interval, 'weekly', true); ?>><?php esc_html_e('Weekly', 'independent-analytics'); ?></option>
39 <option value="daily" <?php selected($interval, 'daily', true); ?>><?php esc_html_e('Daily', 'independent-analytics'); ?></option>
40 </select>
41 <p id="monthly-interval-note" class="interval-note"><?php esc_html_e('The email will be delivered on the 1st of every month.', 'independent-analytics'); ?></p>
42 <p id="weekly-interval-note" class="interval-note"><?php esc_html_e('The email will be delivered on the first day of the week (selected in the settings above).', 'independent-analytics'); ?></p>
43 <p id="daily-interval-note" class="interval-note"><?php esc_html_e('The email will be delivered every day.', 'independent-analytics'); ?></p>
44 </div>
45 <div class="delivery-time iawp-section">
46 <h3><?php esc_html_e('Delivery Time', 'independent-analytics'); ?></h3>
47 <select id="iawp_email_report_time" name="iawp_email_report_time">
48 <?php for ($i = 0; $i < 24; $i++) {
49 $readable_time = new DateTime(date('Y-m-d') . ' ' . $i . ':00:00', new \DateTimeZone('utc'));
50 $readable_time = $readable_time->format(iawp()->get_option('time_format', 'g:i a')); ?>
51 <option value="<?php echo esc_attr($i); ?>" <?php selected($time, $i, true); ?>><?php echo esc_html($readable_time); ?></option>
52 <?php
53 } ?>
54 </select>
55 </div>
56 <div class="custom-colors iawp-section">
57 <h3><?php esc_html_e('Customize the colors', 'independent-analytics'); ?></h3>
58 <div class="custom-colors-list">
59 <div class="custom-color">
60 <p class="element-name"><?php esc_html_e('Header background', 'independent-analytics'); ?></p>
61 <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($input_default[0]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[0]); ?>" />
62 </div>
63 <div class="custom-color">
64 <p class="element-name"><?php esc_html_e('Header text', 'independent-analytics'); ?></p>
65 <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($input_default[1]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[1]); ?>" />
66 </div>
67 <div class="custom-color">
68 <p class="element-name"><?php esc_html_e('Sub-header background', 'independent-analytics'); ?></p>
69 <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($input_default[2]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[2]); ?>" />
70 </div>
71 <div class="custom-color">
72 <p class="element-name"><?php esc_html_e('Sub-header text', 'independent-analytics'); ?></p>
73 <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($input_default[3]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[3]); ?>" />
74 </div>
75 <div class="custom-color">
76 <p class="element-name"><?php esc_html_e('Bar chart', 'independent-analytics'); ?></p>
77 <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($input_default[4]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[4]); ?>" />
78 </div>
79 <div class="custom-color">
80 <p class="element-name"><?php esc_html_e('Bar chart accent', 'independent-analytics'); ?></p>
81 <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($input_default[5]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[5]); ?>" />
82 </div>
83 <div class="custom-color">
84 <p class="element-name"><?php esc_html_e('Borders', 'independent-analytics'); ?></p>
85 <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($input_default[6]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[6]); ?>" />
86 </div>
87 <div class="custom-color">
88 <p class="element-name"><?php esc_html_e('Metric background', 'independent-analytics'); ?></p>
89 <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($input_default[7]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[7]); ?>" />
90 </div>
91 <div class="custom-color">
92 <p class="element-name"><?php esc_html_e('Outer background', 'independent-analytics'); ?></p>
93 <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($input_default[8]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[8]); ?>" />
94 </div>
95 <div class="custom-color">
96 <p class="element-name"><?php esc_html_e('Footer background', 'independent-analytics'); ?></p>
97 <input type="text" class="iawp-color-picker" value="<?php echo sanitize_hex_color($input_default[9]); ?>" data-default-color="<?php echo sanitize_hex_color($default_colors[9]); ?>" />
98 </div>
99 </div>
100 <input type="hidden" id="iawp_email_report_colors" name="iawp_email_report_colors" value="<?php echo implode(',', $input_default); ?>" />
101 </div>
102 <div class="from-email iawp-section">
103 <h3><?php esc_html_e('From email address', 'independent-analytics'); ?></h3>
104 <input type="email"
105 name="iawp_email_report_from_address"
106 id="iawp_email_report_from_address"
107 data-option="iawp_email_report_from_address"
108 value="<?php echo esc_attr($from); ?>">
109 <p class="description"><?php esc_html_e('The email address should come from this domain or your emails may not be delivered.', 'independent-analytics'); ?></p>
110 </div>
111 <div class="reply-to-email iawp-section">
112 <h3><?php esc_html_e('Reply To email address', 'independent-analytics'); ?></h3>
113 <input type="email"
114 name="iawp_email_report_reply_to_address"
115 id="iawp_email_report_reply_to_address"
116 data-option="iawp_email_report_reply_to_address"
117 value="<?php echo esc_attr($reply_to); ?>">
118 <p class="description"><?php esc_html_e('Any replies to the email report will be delivered to this email address.', 'independent-analytics'); ?></p>
119 </div>
120 <div class="email-footer-text iawp-section">
121 <h3><?php esc_html_e('Email footer text', 'independent-analytics'); ?></h3>
122 <textarea type="email"
123 name="iawp_email_report_footer"
124 id="iawp_email_report_footer"
125 data-option="iawp_email_report_footer"
126 rows=2>
127 <?php echo esc_html($footer_text); ?>
128 </textarea>
129 </div>
130 <div class="email-addresses iawp-section">
131 <h3><?php esc_html_e('Add new email addresses', 'independent-analytics'); ?></h3>
132 <div class="new-address duplicator">
133 <div class="entry">
134 <input class="new-field" type="email" placeholder="name@email.com" value="" />
135 <button class="iawp-button purple duplicate-button"><?php esc_html_e('Add email', 'independent-analytics'); ?></button>
136 </div>
137 <div class="blueprint">
138 <div class="entry">
139 <input type="text" readonly
140 name="iawp_email_report_email_addresses[]"
141 id="iawp_email_report_email_addresses[]"
142 data-option="iawp_email_report_email_addresses"
143 value="">
144 <button class="remove iawp-button ghost-purple"><?php esc_html_e('Remove email', 'independent-analytics'); ?></button>
145 </div>
146 </div>
147 <p class="error-message empty"><?php esc_html_e('Input is empty', 'independent-analytics'); ?></p>
148 <p class="error-message exists"><?php esc_html_e('This email already exists', 'independent-analytics'); ?></p>
149 </div>
150 <div class="saved">
151 <h3><?php esc_html_e('Sending to these addresses', 'independent-analytics'); ?></h3>
152 <?php for ($i = 0; $i < count($emails); $i++) : ?>
153 <div class="entry">
154 <input type="email" readonly
155 id="iawp_email_report_email_addresses[<?php echo esc_attr($i); ?>]"
156 name="iawp_email_report_email_addresses[<?php echo esc_attr($i); ?>]"
157 data-option="iawp_email_report_email_addresses"
158 value="<?php echo esc_attr($emails[$i]); ?>" />
159 <button class="remove iawp-button ghost-purple"><?php esc_html_e('Remove email', 'independent-analytics'); ?></button>
160 </div>
161 <?php endfor; ?>
162 </div>
163 </div>
164 <div class="save-button-container">
165 <?php submit_button(esc_html__('Save settings', 'independent-analytics'), 'save-email iawp-button purple', 'save-email-report-settings', false); ?>
166 <button id="preview-email" class="preview-email iawp-button ghost-purple"><span class="dashicons dashicons-visibility"></span> <?php esc_html_e('Preview email', 'independent-analytics'); ?></button>
167 <button id="test-email" class="test-email iawp-button ghost-purple"><span class="dashicons dashicons-email-alt2"></span> <?php esc_html_e('Send test email', 'independent-analytics'); ?></button>
168 <p class="warning-message"><span class="dashicons dashicons-warning"></span> <?php esc_html_e('Unsaved changes', 'independent-analytics'); ?></p>
169 </div>
170 </div>
171 </form>
172 </div>
173 <div id="email-preview-container" class="email-preview-container">
174 <div id="email-preview" class="email-preview"></div>
175 <button id="close-email-preview" class="close-email-preview"><span class="dashicons dashicons-dismiss"></span></button>
176 </div>
177