settings.php
3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
} ?> <style type="text/css">
.crm_fields_table{
width: 100%; margin-top: 30px;
}.crm_fields_table .crm_field_cell1 label{
font-weight: bold; font-size: 14px;
}
.crm_fields_table .clear{
clear: both;
}
.crm_fields_table .crm_field{
margin: 20px 0px;
}
.crm_fields_table .crm_text{
width: 100%;
}
.crm_fields_table .crm_field_cell1{
width: 20%; min-width: 100px; float: left; display: inline-block;
line-height: 26px;
}
.crm_fields_table .crm_field_cell2{
width: 80%; float: left; display: inline-block;
}
.vxc_alert{
padding: 10px 20px;
}
.vx_icons{
color: #888;
}
.vx_green{
color:rgb(0, 132, 0);
}
#tiptip_content{
max-width: 200px;
}
.vx_tr{
display: table; width: 100%;
}
.vx_td{
display: table-cell; width: 90%;
}
.vx_td2{
display: table-cell;
}
.crm_field .vx_td2 .vx_toggle_btn{
margin: 0 0 0 10px; vertical-align: baseline; width: 80px;
}
</style>
<div class="vx_wrap">
<form id="mainform" method="post">
<?php wp_nonce_field("vx_nonce") ?>
<h2>
<?php esc_html_e("Settings", 'contact-form-mailchimp-crm') ?>
</h2>
<table class="form-table">
<tr>
<th scope="row"><label for="vx_plugin_data"><?php esc_html_e("Plugin Data", 'contact-form-mailchimp-crm'); ?></label>
</th>
<td>
<label for="vx_plugin_data"><input type="checkbox" name="meta[plugin_data]" value="yes" <?php if($this->post('plugin_data',$meta) == "yes"){echo 'checked="checked"';} ?> id="vx_plugin_data"><?php esc_html_e('On deleting this plugin remove all of its data','contact-form-mailchimp-crm'); ?></label>
</td>
</tr>
<?php
if(class_exists('vxcf_form')){
?>
<tr>
<th><label for="update_entry"><?php esc_html_e("Update Entry",'contact-form-mailchimp-crm'); ?></label></th>
<td><label for="update_entry"><input type="checkbox" id="update_entry" name="meta[update]" value="yes" <?php if($this->post('update',$meta) == "yes"){echo 'checked="checked"';} ?> ><?php esc_html_e("Update entry data in Mailchimp when updated in Contact Form Entries Plugin",'contact-form-mailchimp-crm'); ?></label></td>
</tr>
<tr>
<th><label for="delet_entry"><?php esc_html_e("Delete Entry",'contact-form-mailchimp-crm'); ?></label></th>
<td><label for="delet_entry"><input type="checkbox" id="delet_entry" name="meta[delete]" value="yes" <?php if($this->post('delete',$meta) == "yes"){echo 'checked="checked"';} ?> ><?php esc_html_e("Delete entry data from Mailchimp when deleted from Contact Form Entries Plugin",'contact-form-mailchimp-crm'); ?></label></td>
</tr>
<tr>
<th><label for="restore_entry"><?php esc_html_e("Restore Entry",'contact-form-mailchimp-crm'); ?></label></th>
<td><label for="restore_entry"><input type="checkbox" id="restore_entry" name="meta[restore]" value="yes" <?php if($this->post('restore',$meta) == "yes"){echo 'checked="checked"';} ?> ><?php esc_html_e("Restore entry in Mailchimp when restored in Contact Form Entries Plugin",'contact-form-mailchimp-crm'); ?></label></td>
</tr>
<tr>
<th><label for="notes_meta"><?php esc_html_e("Entry Notes",'contact-form-mailchimp-crm'); ?></label></th>
<td><label for="notes_meta"><input type="checkbox" id="notes_meta" name="meta[notes]" value="yes" <?php if($this->post('notes',$meta) == "yes"){echo 'checked="checked"';} ?> ><?php esc_html_e("Add / delete notes to Mailchimp when added / deleted in Contact Form Entries Plugin",'contact-form-mailchimp-crm'); ?></label></td>
</tr>
<?php
}
?>
</table>
<p class="submit"><input type="submit" name="save" class="button-primary" title="<?php esc_html_e('Save Settings','contact-form-mailchimp-crm'); ?>" value="<?php esc_html_e("Save Settings", 'contact-form-mailchimp-crm') ?>" /></p>
</form>
<?php
//var_dump(self::$tooltips);
do_action('add_section_'.$this->id);
?>
</div>