1
|
1 |
<?php |
|
2 |
$malleable_categories = get_categories(); |
|
3 |
$malleable_categories[] = false; |
|
4 |
?> |
|
5 |
|
|
6 |
<div class="postbox open"> |
|
7 |
|
|
8 |
<h3><?php _e('General settings','malleable'); ?></h3> |
|
9 |
|
|
10 |
<div class="inside"> |
|
11 |
|
|
12 |
<table class="form-table"> |
|
13 |
|
|
14 |
<tr> |
|
15 |
<th> |
|
16 |
<label for="<?php echo $data['feature_category']; ?>"><?php _e('Address:','malleable'); ?></label> |
|
17 |
<p>This contact information is used to help visitors contact you more easily <em>and</em> it helps search engines better understand where you are.</p> |
|
18 |
</th> |
|
19 |
<td> |
|
20 |
Show address & phone number<br /> |
|
21 |
<input name="<?php echo $data['general_address']; ?>" id="<?php echo $data['general_address']; ?>" type="radio" value="yes"<?php if ( $val['general_address'] == "yes") { echo " checked='checked'"; } ?> onclick="showMe()" /> Yes |
|
22 |
<input name="<?php echo $data['general_address']; ?>" id="<?php echo $data['general_address']; ?>" type="radio" value="no"<?php if ( $val['general_address'] == "no") { echo " checked='checked'"; } ?> onclick="showMe()" /> No |
|
23 |
<br /> |
|
24 |
|
|
25 |
<div id="showAddress"> |
|
26 |
|
|
27 |
<span class="address-form">Street</span><br /><input name="<?php echo $data['general_address_street']; ?>" id="<?php echo $data['general_address_street']; ?>" type="text" value="<?php echo $val['general_address_street']; ?>" /><br /> |
|
28 |
<span class="address-form">City</span><br /> <input name="<?php echo $data['general_address_city']; ?>" id="<?php echo $data['general_address_city']; ?>" type="text" value="<?php echo $val['general_address_city']; ?>" /><br /> |
|
29 |
<span class="address-form">State</span><br /> <input name="<?php echo $data['general_address_state']; ?>" id="<?php $data['general_address_state']; ?>" type="text" value="<?php echo $val['general_address_state']; ?>" /><br /> |
|
30 |
<span class="address-form">Zip</span><br /> <input name="<?php echo $data['general_address_zip']; ?>" id="<?php $data['general_address_zip']; ?>" type="text" value="<?php echo $val['general_address_zip']; ?>" /><br /> |
|
31 |
<span class="address-form">Phone</span><br /> <input name="<?php echo $data['general_address_phone']; ?>" id="<?php $data['general_address_phone']; ?>" type="text" value="<?php echo $val['general_address_phone']; ?>" /> |
|
32 |
|
|
33 |
</div> |
|
34 |
|
|
35 |
</td> |
|
36 |
</tr> |
|
37 |
|
|
38 |
</table> |
|
39 |
|
|
40 |
</div> |
|
41 |
</div> |
|
42 |
|
|
43 |
<div class="postbox open"> |
|
44 |
|
|
45 |
<h3><?php _e('Front Page template settings','malleable'); ?></h3> |
|
46 |
|
|
47 |
<div class="inside"> |
|
48 |
|
|
49 |
<table class="form-table"> |
|
50 |
|
|
51 |
<tr> |
|
52 |
<th> |
|
53 |
<label for="<?php echo $data['feature_category']; ?>"><?php _e('Feature Category:','malleable'); ?></label> |
|
54 |
</th> |
|
55 |
<td> |
|
56 |
<select id="<?php echo $data['feature_category']; ?>" name="<?php echo $data['feature_category']; ?>"> |
|
57 |
<?php foreach($malleable_categories as $cat) : ?> |
|
58 |
|
|
59 |
<option value="<?php echo $cat->term_id; ?>" <?php if($val['feature_category'] == $cat->term_id) echo ' selected="selected"'; ?>> |
|
60 |
<?php echo $cat->name; ?> |
|
61 |
</option> |
|
62 |
|
|
63 |
<?php endforeach; ?> |
|
64 |
</select> |
|
65 |
<?php _e('Leave blank to use sticky posts.','malleable'); ?> |
|
66 |
</td> |
|
67 |
</tr> |
|
68 |
<tr> |
|
69 |
<th> |
|
70 |
<label for="<?php echo $data['feature_num_posts']; ?>"><?php _e('Featured Posts:','malleable'); ?></label> |
|
71 |
</th> |
|
72 |
<td> |
|
73 |
<input id="<?php echo $data['feature_num_posts']; ?>" name="<?php echo $data['feature_num_posts']; ?>" value="<?php echo $val['feature_num_posts']; ?>" size="2" maxlength="2" /> |
|
74 |
<label for="<?php echo $data['feature_num_posts']; ?>"><?php _e('How many feature posts should be shown?','hybrid'); ?></label> |
|
75 |
</td> |
|
76 |
</tr> |
|
77 |
|
|
78 |
<tr> |
|
79 |
<th> |
|
80 |
<label for="<?php echo $data['excerpt_category']; ?>"><?php _e('Excerpts Category:','malleable'); ?></label> |
|
81 |
</th> |
|
82 |
<td> |
|
83 |
<select id="<?php echo $data['excerpt_category']; ?>" name="<?php echo $data['excerpt_category']; ?>"> |
|
84 |
<?php foreach($malleable_categories as $cat) : ?> |
|
85 |
|
|
86 |
<option value="<?php echo $cat->term_id; ?>" <?php if($val['excerpt_category'] == $cat->term_id) echo ' selected="selected"'; ?>> |
|
87 |
<?php echo $cat->name; ?> |
|
88 |
</option> |
|
89 |
|
|
90 |
<?php endforeach; ?> |
|
91 |
</select> |
|
92 |
</td> |
|
93 |
</tr> |
|
94 |
|
|
95 |
<tr> |
|
96 |
<th> |
|
97 |
<label for="<?php echo $data['excerpt_num_posts']; ?>"><?php _e('Excerpts Posts:','malleable'); ?></label> |
|
98 |
</th> |
|
99 |
<td> |
|
100 |
<input id="<?php echo $data['excerpt_num_posts']; ?>" name="<?php echo $data['excerpt_num_posts']; ?>" value="<?php echo $val['excerpt_num_posts']; ?>" size="2" maxlength="2" /> |
|
101 |
<label for="<?php echo $data['excerpt_num_posts']; ?>"><?php _e('How many excerpts should be shown?','hybrid'); ?></label> |
|
102 |
</td> |
|
103 |
</tr> |
|
104 |
|
|
105 |
<tr> |
|
106 |
<th> |
|
107 |
<label for="<?php echo $data['headlines_category']; ?>"><?php _e('Headline Categories:','malleable'); ?></label> |
|
108 |
</th> |
|
109 |
<td> |
|
110 |
<label for="<?php echo $data['headlines_category']; ?>"> |
|
111 |
<?php _e('Multiple categories may be chosen by holding the <code>Ctrl</code> key and selecting.', 'malleable'); ?> |
|
112 |
</label> |
|
113 |
<br /> |
|
114 |
<select id="<?php echo $data['headlines_category']; ?>" name="<?php echo $data['headlines_category']; ?>[]" multiple="multiple" style="height:150px;"> |
|
115 |
<?php foreach($malleable_categories as $cat) : ?> |
|
116 |
|
|
117 |
<option value="<?php echo $cat->term_id; ?>" <?php if(is_array($val['headlines_category']) && in_array($cat->term_id, $val['headlines_category'])) echo ' selected="selected"'; ?>> |
|
118 |
<?php echo $cat->name; ?> |
|
119 |
</option> |
|
120 |
|
|
121 |
<?php endforeach; ?> |
|
122 |
</select> |
|
123 |
</td> |
|
124 |
</tr> |
|
125 |
|
|
126 |
<tr> |
|
127 |
<th> |
|
128 |
<label for="<?php echo $data['headlines_num_posts']; ?>"><?php _e('Headlines Posts:','malleable'); ?></label> |
|
129 |
</th> |
|
130 |
<td> |
|
131 |
<input id="<?php echo $data['headlines_num_posts']; ?>" name="<?php echo $data['headlines_num_posts']; ?>" value="<?php echo $val['headlines_num_posts']; ?>" size="2" maxlength="2" /> |
|
132 |
<label for="<?php echo $data['headlines_num_posts']; ?>"><?php _e('How many posts should be shown per headline category?','hybrid'); ?></label> |
|
133 |
</td> |
|
134 |
</tr> |
|
135 |
|
|
136 |
</table> |
|
137 |
|
|
138 |
</div> |
|
139 |
</div> |