PluginProbe ʕ •ᴥ•ʔ
Independent Analytics – WordPress Analytics Plugin / 2.10.0
Independent Analytics – WordPress Analytics Plugin v2.10.0
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 block-by-role.blade.php 1 year ago block-ips.blade.php 1 year ago capabilities.blade.php 1 year ago dark-mode.blade.php 2 years ago delete.blade.php 1 year 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 1 year ago export-reports.blade.php 1 year ago first-day-of-week.blade.php 2 years ago index.blade.php 2 years ago pruner.blade.php 1 year ago refresh-salt.blade.php 2 years ago track-authenticated-users.blade.php 2 years ago view-counter.blade.php 2 years ago woocommerce.blade.php 1 year ago
email-reports.blade.php
163 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 <div id="next-email" class="schedule-notification <?php echo $is_scheduled ? 'is-scheduled' : 'is-not-scheduled'; ?>"
17 data-timestamp="<?php echo absint($timestamp); ?>">
18 <span class="dashicons dashicons-yes-alt"></span><span class="dashicons dashicons-dismiss"></span>
19 <p><?php echo wp_kses_post($scheduled_date); ?></p>
20 </div>
21 <div class="delivery-interval iawp-section">
22 <h3><?php esc_html_e('Delivery Interval', 'independent-analytics'); ?></h3>
23 <select id="iawp_email_report_interval" name="iawp_email_report_interval">
24 <option value="monthly" <?php selected($interval, 'monthly', true); ?>><?php esc_html_e('Monthly', 'independent-analytics'); ?></option>
25 <option value="weekly" <?php selected($interval, 'weekly', true); ?>><?php esc_html_e('Weekly', 'independent-analytics'); ?></option>
26 <option value="daily" <?php selected($interval, 'daily', true); ?>><?php esc_html_e('Daily', 'independent-analytics'); ?></option>
27 </select>
28 <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>
29 <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>
30 <p id="daily-interval-note" class="interval-note"><?php esc_html_e('The email will be delivered every day.', 'independent-analytics'); ?></p>
31 </div>
32 <div class="delivery-time iawp-section">
33 <h3><?php esc_html_e('Delivery Time', 'independent-analytics'); ?></h3>
34 <select id="iawp_email_report_time" name="iawp_email_report_time">
35 <?php for ($i = 0; $i < 24; $i++) {
36 $readable_time = new DateTime(date('Y-m-d') . ' ' . $i . ':00:00');
37 $readable_time = $readable_time->format(iawp()->get_option('time_format', 'g:i a')); ?>
38 <option value="<?php echo esc_attr($i); ?>" <?php selected($time, $i, true); ?>><?php echo esc_html($readable_time); ?></option>
39 <?php
40 } ?>
41 </select>
42 </div>
43 <div class="custom-colors iawp-section">
44 <h3><?php esc_html_e('Customize the colors', 'independent-analytics'); ?></h3>
45 <div class="custom-colors-list">
46 <div class="custom-color">
47 <p class="element-name"><?php esc_html_e('Header background', 'independent-analytics'); ?></p>
48 <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]); ?>" />
49 </div>
50 <div class="custom-color">
51 <p class="element-name"><?php esc_html_e('Header text', 'independent-analytics'); ?></p>
52 <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]); ?>" />
53 </div>
54 <div class="custom-color">
55 <p class="element-name"><?php esc_html_e('Sub-header background', 'independent-analytics'); ?></p>
56 <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]); ?>" />
57 </div>
58 <div class="custom-color">
59 <p class="element-name"><?php esc_html_e('Sub-header text', 'independent-analytics'); ?></p>
60 <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]); ?>" />
61 </div>
62 <div class="custom-color">
63 <p class="element-name"><?php esc_html_e('Bar chart', 'independent-analytics'); ?></p>
64 <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]); ?>" />
65 </div>
66 <div class="custom-color">
67 <p class="element-name"><?php esc_html_e('Bar chart accent', 'independent-analytics'); ?></p>
68 <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]); ?>" />
69 </div>
70 <div class="custom-color">
71 <p class="element-name"><?php esc_html_e('Borders', 'independent-analytics'); ?></p>
72 <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]); ?>" />
73 </div>
74 <div class="custom-color">
75 <p class="element-name"><?php esc_html_e('Metric background', 'independent-analytics'); ?></p>
76 <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]); ?>" />
77 </div>
78 <div class="custom-color">
79 <p class="element-name"><?php esc_html_e('Outer background', 'independent-analytics'); ?></p>
80 <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]); ?>" />
81 </div>
82 <div class="custom-color">
83 <p class="element-name"><?php esc_html_e('Footer background', 'independent-analytics'); ?></p>
84 <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]); ?>" />
85 </div>
86 </div>
87 <input type="hidden" id="iawp_email_report_colors" name="iawp_email_report_colors" value="<?php echo implode(',', $input_default); ?>" />
88 </div>
89 <div class="from-email iawp-section">
90 <h3><?php esc_html_e('From email address', 'independent-analytics'); ?></h3>
91 <input type="email"
92 name="iawp_email_report_from_address"
93 id="iawp_email_report_from_address"
94 data-option="iawp_email_report_from_address"
95 value="{{ esc_attr($from) }}">
96 <p class="description">{{ esc_html__('The email address should come from this domain or your emails may not be delivered.', 'independent-analytics')}}</p>
97 </div>
98 <div class="reply-to-email iawp-section">
99 <h3><?php esc_html_e('Reply To email address', 'independent-analytics'); ?></h3>
100 <input type="email"
101 name="iawp_email_report_reply_to_address"
102 id="iawp_email_report_reply_to_address"
103 data-option="iawp_email_report_reply_to_address"
104 value="{{ esc_attr($reply_to) }}">
105 <p class="description">{{ esc_html__('Any replies to the email report will be delivered to this email address.', 'independent-analytics')}}</p>
106 </div>
107 <div class="email-footer-text iawp-section">
108 <h3><?php esc_html_e('Email footer text', 'independent-analytics'); ?></h3>
109 <textarea type="email"
110 name="iawp_email_report_footer"
111 id="iawp_email_report_footer"
112 data-option="iawp_email_report_footer"
113 rows=2>
114 {{ esc_html($footer_text) }}
115 </textarea>
116 </div>
117 <div class="email-addresses iawp-section">
118 <h3><?php esc_html_e('Add new email addresses', 'independent-analytics'); ?></h3>
119 <div class="new-address duplicator">
120 <div class="entry">
121 <input class="new-field" type="email" placeholder="name@email.com" value="" />
122 <button class="iawp-button purple duplicate-button"><?php esc_html_e('Add email', 'independent-analytics'); ?></button>
123 </div>
124 <div class="blueprint">
125 <div class="entry">
126 <input type="text" readonly
127 name="iawp_email_report_email_addresses[]"
128 id="iawp_email_report_email_addresses[]"
129 data-option="iawp_email_report_email_addresses"
130 value="">
131 <button class="remove iawp-button ghost-purple"><?php esc_html_e('Remove email', 'independent-analytics'); ?></button>
132 </div>
133 </div>
134 <p class="error-message empty"><?php esc_html_e('Input is empty', 'independent-analytics'); ?></p>
135 <p class="error-message exists"><?php esc_html_e('This email already exists', 'independent-analytics'); ?></p>
136 </div>
137 <div class="saved">
138 <h3><?php esc_html_e('Sending to these addresses', 'independent-analytics'); ?></h3>
139 <?php for ($i = 0; $i < count($emails); $i++) : ?>
140 <div class="entry">
141 <input type="email" readonly
142 id="iawp_email_report_email_addresses[<?php echo esc_attr($i); ?>]"
143 name="iawp_email_report_email_addresses[<?php echo esc_attr($i); ?>]"
144 data-option="iawp_email_report_email_addresses"
145 value="<?php echo esc_attr($emails[$i]); ?>" />
146 <button class="remove iawp-button ghost-purple"><?php esc_html_e('Remove email', 'independent-analytics'); ?></button>
147 </div>
148 <?php endfor; ?>
149 </div>
150 </div>
151 <div class="save-button-container">
152 <?php submit_button(esc_html__('Save settings', 'independent-analytics'), 'save-email iawp-button purple', 'save-email-report-settings', false); ?>
153 <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>
154 <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>
155 <p class="warning-message"><span class="dashicons dashicons-warning"></span> <?php esc_html_e('Unsaved changes', 'independent-analytics'); ?></p>
156 </div>
157 </div>
158 </form>
159 </div>
160 <div id="email-preview-container" class="email-preview-container">
161 <div id="email-preview" class="email-preview"></div>
162 <button id="close-email-preview" class="close-email-preview"><span class="dashicons dashicons-dismiss"></span></button>
163 </div>