PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 2.12
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v2.12
5.6.0 5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 3.0.0 3.0.1 3.0.2 3.0.3 3.0.5 3.0.51 3.0.60 3.0.61 3.0.62 3.0.70 3.0.71 3.0.72 All 35 releases
double-opt-in / templates / view-optin.php

view-optin.php in Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification 2.12, at templates/view-optin.php

172 lines 5.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @var \forge12\contactform7\CF7DoubleOptIn\OptIn $optin
4 * @var string $domain
5 */
6 $formfields = maybe_unserialize($optin->get_content());;
7 $Category = \forge12\contactform7\CF7DoubleOptIn\Category::get_by_id($optin->get_category());
8 $category_html = '---';
9
10 if (null != $Category) {
11 $category_html = '<a href="' . esc_url($Category->get_link_ui()) . '">' . esc_attr($Category->get_name()) . '</a>';
12 }
13 ?>
14 <script>hljs.highlightAll();</script>
15 <p>
16 <?php _e('Category', 'double-opt-in') ?>: <?php echo wp_kses($category_html, array('a' => array('href' => array()))); ?>
17 </p>
18 <?php if (current_user_can('manage_options')): ?>
19 <div class="options">
20 <a href="<?php echo esc_url(admin_url('admin.php?page=f12-cf7-doubleoptin&option=delete&hash=' . $optin->get_hash())); ?>"
21 class="button"
22 ><?php _e('Delete DOI', 'double-opt-in'); ?></a>
23 </div>
24 <?php endif; ?>
25 <table class="view-optin">
26 <tr>
27 <td><?php _e('Key', 'double-opt-in'); ?></td>
28 <td><?php _e('Value', 'double-opt-in'); ?></td>
29 </tr>
30 <tr>
31 <td>
32 <?php _e('ID', 'double-opt-in'); ?>
33 </td>
34 <td>
35 <?php echo esc_html($optin->get_id()); ?>
36 </td>
37 </tr>
38 <tr>
39 <td>
40 <?php _e('CF7 Form ID', 'double-opt-in'); ?>
41 </td>
42 <td>
43 <?php echo esc_html($optin->get_cf_form_id()); ?>
44 </td>
45 </tr>
46 <tr>
47 <td>
48 <?php _e('E-Mail', 'double-opt-in'); ?>
49 </td>
50 <td>
51 <?php echo esc_html($optin->get_email()); ?>
52 </td>
53 </tr>
54 <tr>
55 <td>
56 <?php _e('Registration Date', 'double-opt-in'); ?>
57 </td>
58 <td>
59 <?php
60 echo esc_html($optin->get_createtime('formatted'));
61 ?>
62 </td>
63 </tr>
64 <tr>
65 <td>
66 <?php _e('Registration IP', 'double-opt-in'); ?>
67 </td>
68 <td>
69 <?php echo esc_html($optin->get_ipaddr_register()); ?>
70 </td>
71 </tr>
72 <tr>
73 <td>
74 <?php _e('Confirmation Date', 'double-opt-in'); ?>
75 </td>
76 <td>
77 <?php
78 if ($optin->is_confirmed()) {
79 echo esc_html($optin->get_updatetime('formatted'));
80 }
81 ?>
82 </td>
83 </tr>
84 <tr>
85 <td>
86 <?php _e('Confirmation IP', 'double-opt-in'); ?>
87 </td>
88 <td>
89 <?php
90 echo esc_html($optin->get_ipaddr_confirmation());
91 ?>
92 </td>
93 </tr>
94 </table>
95
96 <h3><?php _e('Form Fields', 'double-opt-in'); ?></h3>
97 <table class="view-optin">
98 <tr>
99 <td><?php _e('Key', 'double-opt-in'); ?></td>
100 <td><?php _e('Value', 'double-opt-in'); ?></td>
101 </tr>
102 <?php if (isset($formfields['fields'])): ?>
103 <?php foreach ($formfields['fields'] as $key => $value): ?>
104 <tr>
105 <td>
106 <?php echo esc_attr($key); ?>
107 </td>
108 <td>
109 <?php if (is_array($value)) {
110 echo esc_html(implode(',', $value));
111 } else {
112 echo esc_html($value);
113 }
114 ?>
115 </td>
116 </tr>
117 <?php endforeach; ?>
118 <?php else: ?>
119 <?php foreach ($formfields as $key => $value): ?>
120 <tr>
121 <td>
122 <?php echo $key; ?>
123 </td>
124 <td>
125 <?php if (is_array($value)) {
126 echo esc_html(implode(',', $value));
127 } else {
128 echo esc_html($value);
129 }
130 ?>
131 </td>
132 </tr>
133 <?php endforeach; ?>
134 <?php endif; ?>
135 </table>
136
137 </div>
138 <div class="box">
139 <h2><?php _e('Formular', 'double-opt-in'); ?></h2>
140 <p>
141 <?php _e('The data above was collected by the following form used from the visitor. The data has been saved as plain text. You can copy the plain content to a html file to see the original formular.', 'double-opt-in');?>
142 </p>
143 <div class="option">
144 <div class="label">
145 <label for="category"><?php _e('HTML:', 'double-opt-in'); ?></label>
146 </div>
147 <div class="input">
148 <pre>
149 <code class="language-html">
150 <?php echo esc_html($optin->get_form()); ?>
151 </code>
152 </pre>
153 </div>
154 </div>
155 </div>
156 <div class="box">
157 <h2><?php _e('Opt-In Mail', 'double-opt-in'); ?></h2>
158 <p>
159 <?php _e('The following Opt-In mail has been submitted to the visitor to get the confirmation. The data has been saved as plain text. Depending on the form it may contain html content.', 'double-opt-in');?>
160 </p>
161 <div class="option">
162 <div class="label">
163 <label for="category"><?php _e('HTML:', 'double-opt-in'); ?></label>
164 </div>
165 <div class="input">
166 <pre>
167 <code class="language-html">
168 <?php echo esc_html(str_replace('<br />', '\n',$optin->get_mail_optin())); ?>
169 </code>
170 </pre>
171 </div>
172 </div>