settings.php
4.4 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
<?php
namespace Tz\WordPress\Tools\Notifications\Settings;
?>
<div id="" class="wrap">
<h2>Notifications - Settings</h2>
<p>In order to comply with the CAN-SPAM act, each outgoing email must include the following:</p>
<form method="post" action="options.php">
<?php settings_fields(SETTING_NS); ?>
<table cellspacing="0" class="widefat post fixed" style="margin-top:15px;">
<thead>
<tr>
<th width="150">CAN-SPAM Settings</th>
<th> </th>
</tr>
</thead>
<tbody>
<tr>
<td width="150">Company Name:</td>
<?php $wp_option = SETTING_NS . '[company]'; ?>
<td><input type="text" id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" value="<?php echo Vars::$settings['company'];?>" /></td>
</tr>
<tr>
<td width="150">Address:</td>
<?php $wp_option = SETTING_NS . '[address]'; ?>
<td><input type="text" id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" value="<?php echo Vars::$settings['address'];?>" /></td>
</tr>
<tr>
<td width="150">City:</td>
<?php $wp_option = SETTING_NS . '[city]'; ?>
<td><input type="text" id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" value="<?php echo Vars::$settings['city'];?>" /></td>
</tr>
<tr>
<td width="150">Province:</td>
<td>
<?php $wp_option = SETTING_NS . '[province]'; ?>
<select name="<?php echo $wp_option; ?>" class="wide-input-field" >
<option value="Ontario">Ontario</option>
<option value="Quebec">Quebec</option>
<option value="Nova Scotia">Nova Scotia</option>
<option value="New Brunswick">New Brunswick</option>
<option value="Manitoba">Manitoba</option>
<option value="British Columbia">British Columbia</option>
<option value="Prince Edward Island">Prince Edward Island</option>
<option value="Saskatchewan">Saskatchewan</option>
<option value="Alberta">Alberta</option>
<option value="Newfoundland and Labrador">Newfoundland and Labrador</option>
</select>
</td>
</tr>
<tr>
<td width="150">Postal Code:</td>
<?php $wp_option = SETTING_NS . '[postal]'; ?>
<td><input type="text" id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" value="<?php echo Vars::$settings['postal'];?>" /></td>
</tr>
</body>
</table>
<table cellspacing="0" class="widefat post fixed" style="margin-top:15px;">
<thead>
<tr>
<th width="150">CAN-SPAM Messages</th>
<th> </th>
</tr>
</thead>
<tbody>
<tr>
<td width="150">Standard Message:</td><!-- -->
<?php $wp_option = SETTING_NS . '[std_message]'; ?>
<td><textarea id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" class="wide-input-field" rows="4" style="width:100%;color:#999" onkeydown="this.style.color = '#000000';"><?php echo Vars::$settings['std_message'];?></textarea></td>
</tr>
<tr>
<td width="150">OPT-OUT Message:</td><!-- -->
<?php $wp_option = SETTING_NS . '[opt_message]'; ?>
<td><textarea id="<?php echo $wp_option; ?>" name="<?php echo $wp_option; ?>" class="wide-input-field" rows="4" style="width:100%;color:#999" onkeydown="this.style.color = '#000000';" ><?php echo Vars::$settings['opt_message'];?></textarea></td>
</tr>
</body>
</table>
<p>
<input type="submit" value=" Update " />
</p>
</form>
</div>