1 | <?php |
---|
2 | if ( function_exists('register_sidebar') ) |
---|
3 | register_sidebar(array( |
---|
4 | 'before_widget' => '<li id="%1$s" class="widget %2$s">', |
---|
5 | 'after_widget' => '</li>', |
---|
6 | 'before_title' => '<h2 class="widgettitle">', |
---|
7 | 'after_title' => '</h2>', |
---|
8 | )); |
---|
9 | |
---|
10 | // This theme uses wp_nav_menu() |
---|
11 | if ( function_exists('add_theme_support') )add_theme_support( 'nav-menus' ); |
---|
12 | // This theme uses wp_nav_menu() in one location. |
---|
13 | if ( function_exists('add_theme_support') ){ |
---|
14 | register_nav_menus( array( |
---|
15 | 'primary' => __( 'Primary Navigation', 'xpress' ), |
---|
16 | ) ); |
---|
17 | } |
---|
18 | load_theme_textdomain('xpress'); |
---|
19 | |
---|
20 | function xpress_head() { |
---|
21 | $head = "<style type='text/css'>\n<!--"; |
---|
22 | $output = ''; |
---|
23 | if ( xpress_header_image() ) { |
---|
24 | $url = xpress_header_image_url() ; |
---|
25 | $output .= "#xpress_header { background: url('$url') repeat-x bottom left; }\n"; |
---|
26 | } |
---|
27 | if ( false !== ( $color = xpress_header_color() ) ) { |
---|
28 | $output .= "#xpress-header-bar-top a, #xpress-header-bar-top a:visited, #xpress-header-bar-top .xpress-description ,#xpress-header-bar-top .xpress-conditional-title,#access a, #xpress-menu a{ color: $color; }\n"; |
---|
29 | } |
---|
30 | if ( false !== ( $display = xpress_header_display() ) ) { |
---|
31 | $output .= "#headerimg { display: $display }\n"; |
---|
32 | } |
---|
33 | $foot = "--></style>\n"; |
---|
34 | if ( '' != $output ) |
---|
35 | echo $head . $output . $foot; |
---|
36 | } |
---|
37 | |
---|
38 | add_action('wp_head', 'xpress_head'); |
---|
39 | |
---|
40 | function xpress_header_image() { |
---|
41 | return apply_filters('xpress_header_image', get_option('xpress_header_image')); |
---|
42 | } |
---|
43 | |
---|
44 | function xpress_upper_color() { |
---|
45 | if (strpos($url = xpress_header_image_url(), 'header-img.php?') !== false) { |
---|
46 | parse_str(substr($url, strpos($url, '?') + 1), $q); |
---|
47 | return $q['upper']; |
---|
48 | } else |
---|
49 | return 'ffffff'; |
---|
50 | } |
---|
51 | |
---|
52 | function xpress_lower_color() { |
---|
53 | if (strpos($url = xpress_header_image_url(), 'header-img.php?') !== false) { |
---|
54 | parse_str(substr($url, strpos($url, '?') + 1), $q); |
---|
55 | return $q['lower']; |
---|
56 | } else |
---|
57 | return 'ffffff'; |
---|
58 | } |
---|
59 | |
---|
60 | function xpress_header_image_url() { |
---|
61 | if ( $image = xpress_header_image() ) |
---|
62 | $url = get_template_directory_uri() . '/images/' . $image; |
---|
63 | else |
---|
64 | $url = get_template_directory_uri() . '/images/xpressheader.jpg'; |
---|
65 | |
---|
66 | return $url; |
---|
67 | } |
---|
68 | |
---|
69 | function xpress_header_color() { |
---|
70 | return apply_filters('xpress_header_color', get_option('xpress_header_color')); |
---|
71 | } |
---|
72 | |
---|
73 | function xpress_header_color_string() { |
---|
74 | $color = xpress_header_color(); |
---|
75 | if ( false === $color ) |
---|
76 | return 'black'; |
---|
77 | |
---|
78 | return $color; |
---|
79 | } |
---|
80 | |
---|
81 | function xpress_header_display() { |
---|
82 | return apply_filters('xpress_header_display', get_option('xpress_header_display')); |
---|
83 | } |
---|
84 | |
---|
85 | function xpress_header_display_string() { |
---|
86 | $display = xpress_header_display(); |
---|
87 | return $display ? $display : 'inline'; |
---|
88 | } |
---|
89 | |
---|
90 | add_action('admin_menu', 'xpress_add_theme_page'); |
---|
91 | |
---|
92 | function xpress_add_theme_page() { |
---|
93 | if ( isset( $_GET['page'] ) && $_GET['page'] == basename(__FILE__) ) { |
---|
94 | if ( isset( $_REQUEST['action'] ) && 'save' == $_REQUEST['action'] ) { |
---|
95 | check_admin_referer('xpress-header'); |
---|
96 | if ( isset($_REQUEST['njform']) ) { |
---|
97 | if ( isset($_REQUEST['defaults']) ) { |
---|
98 | delete_option('xpress_header_image'); |
---|
99 | delete_option('xpress_header_color'); |
---|
100 | delete_option('xpress_header_display'); |
---|
101 | } else { |
---|
102 | if ( '' == $_REQUEST['njfontcolor'] ) |
---|
103 | delete_option('xpress_header_color'); |
---|
104 | else { |
---|
105 | $fontcolor = preg_replace('/^.*(#[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['njfontcolor']); |
---|
106 | update_option('xpress_header_color', $fontcolor); |
---|
107 | } |
---|
108 | if ( preg_match('/[0-9A-F]{6}|[0-9A-F]{3}/i', $_REQUEST['njuppercolor'], $uc) && preg_match('/[0-9A-F]{6}|[0-9A-F]{3}/i', $_REQUEST['njlowercolor'], $lc) ) { |
---|
109 | $uc = ( strlen($uc[0]) == 3 ) ? $uc[0]{0}.$uc[0]{0}.$uc[0]{1}.$uc[0]{1}.$uc[0]{2}.$uc[0]{2} : $uc[0]; |
---|
110 | $lc = ( strlen($lc[0]) == 3 ) ? $lc[0]{0}.$lc[0]{0}.$lc[0]{1}.$lc[0]{1}.$lc[0]{2}.$lc[0]{2} : $lc[0]; |
---|
111 | update_option('xpress_header_image', "header-img.php?upper=$uc&lower=$lc"); |
---|
112 | } |
---|
113 | |
---|
114 | if ( isset($_REQUEST['toggledisplay']) ) { |
---|
115 | if ( false === get_option('xpress_header_display') ) |
---|
116 | update_option('xpress_header_display', 'none'); |
---|
117 | else |
---|
118 | delete_option('xpress_header_display'); |
---|
119 | } |
---|
120 | } |
---|
121 | } else { |
---|
122 | |
---|
123 | if ( isset($_REQUEST['headerimage']) ) { |
---|
124 | check_admin_referer('xpress-header'); |
---|
125 | if ( '' == $_REQUEST['headerimage'] ) |
---|
126 | delete_option('xpress_header_image'); |
---|
127 | else { |
---|
128 | $headerimage = preg_replace('/^.*?(header-img.php\?upper=[0-9a-fA-F]{6}&lower=[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['headerimage']); |
---|
129 | update_option('xpress_header_image', $headerimage); |
---|
130 | } |
---|
131 | } |
---|
132 | |
---|
133 | if ( isset($_REQUEST['fontcolor']) ) { |
---|
134 | check_admin_referer('xpress-header'); |
---|
135 | if ( '' == $_REQUEST['fontcolor'] ) |
---|
136 | delete_option('xpress_header_color'); |
---|
137 | else { |
---|
138 | $fontcolor = preg_replace('/^.*?(#[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['fontcolor']); |
---|
139 | update_option('xpress_header_color', $fontcolor); |
---|
140 | } |
---|
141 | } |
---|
142 | |
---|
143 | if ( isset($_REQUEST['fontdisplay']) ) { |
---|
144 | check_admin_referer('xpress-header'); |
---|
145 | if ( '' == $_REQUEST['fontdisplay'] || 'inline' == $_REQUEST['fontdisplay'] ) |
---|
146 | delete_option('xpress_header_display'); |
---|
147 | else |
---|
148 | update_option('xpress_header_display', 'none'); |
---|
149 | } |
---|
150 | } |
---|
151 | //print_r($_REQUEST); |
---|
152 | wp_redirect("themes.php?page=functions.php&saved=true"); |
---|
153 | die; |
---|
154 | } |
---|
155 | add_action('admin_head', 'xpress_theme_page_head'); |
---|
156 | } |
---|
157 | add_theme_page(__('Customize Header', 'xpress'), __('Header Image and Color', 'xpress'), 'edit_themes', basename(__FILE__), 'xpress_theme_page'); |
---|
158 | } |
---|
159 | |
---|
160 | function xpress_theme_page_head() { |
---|
161 | ?> |
---|
162 | <script type="text/javascript" src="../wp-includes/js/colorpicker.js"></script> |
---|
163 | <script type='text/javascript'> |
---|
164 | // <![CDATA[ |
---|
165 | function pickColor(color) { |
---|
166 | ColorPicker_targetInput.value = color; |
---|
167 | kUpdate(ColorPicker_targetInput.id); |
---|
168 | } |
---|
169 | function PopupWindow_populate(contents) { |
---|
170 | contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" class="button-secondary" value="<?php echo attribute_escape(__('Close Color Picker', 'xpress')); ?>" onclick="cp.hidePopup(\'prettyplease\')"></input></p>'; |
---|
171 | this.contents = contents; |
---|
172 | this.populated = false; |
---|
173 | } |
---|
174 | function PopupWindow_hidePopup(magicword) { |
---|
175 | if ( magicword != 'prettyplease' ) |
---|
176 | return false; |
---|
177 | if (this.divName != null) { |
---|
178 | if (this.use_gebi) { |
---|
179 | document.getElementById(this.divName).style.visibility = "hidden"; |
---|
180 | } |
---|
181 | else if (this.use_css) { |
---|
182 | document.all[this.divName].style.visibility = "hidden"; |
---|
183 | } |
---|
184 | else if (this.use_layers) { |
---|
185 | document.layers[this.divName].visibility = "hidden"; |
---|
186 | } |
---|
187 | } |
---|
188 | else { |
---|
189 | if (this.popupWindow && !this.popupWindow.closed) { |
---|
190 | this.popupWindow.close(); |
---|
191 | this.popupWindow = null; |
---|
192 | } |
---|
193 | } |
---|
194 | return false; |
---|
195 | } |
---|
196 | function colorSelect(t,p) { |
---|
197 | if ( cp.p == p && document.getElementById(cp.divName).style.visibility != "hidden" ) |
---|
198 | cp.hidePopup('prettyplease'); |
---|
199 | else { |
---|
200 | cp.p = p; |
---|
201 | cp.select(t,p); |
---|
202 | } |
---|
203 | } |
---|
204 | function PopupWindow_setSize(width,height) { |
---|
205 | this.width = 162; |
---|
206 | this.height = 210; |
---|
207 | } |
---|
208 | |
---|
209 | var cp = new ColorPicker(); |
---|
210 | function advUpdate(val, obj) { |
---|
211 | document.getElementById(obj).value = val; |
---|
212 | kUpdate(obj); |
---|
213 | } |
---|
214 | function kUpdate(oid) { |
---|
215 | if ( 'uppercolor' == oid || 'lowercolor' == oid ) { |
---|
216 | uc = document.getElementById('uppercolor').value.replace('#', ''); |
---|
217 | lc = document.getElementById('lowercolor').value.replace('#', ''); |
---|
218 | hi = document.getElementById('headerimage'); |
---|
219 | hi.value = 'header-img.php?upper='+uc+'&lower='+lc; |
---|
220 | document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/'+hi.value+'") center no-repeat'; |
---|
221 | document.getElementById('advuppercolor').value = '#'+uc; |
---|
222 | document.getElementById('advlowercolor').value = '#'+lc; |
---|
223 | } |
---|
224 | if ( 'fontcolor' == oid ) { |
---|
225 | document.getElementById('header').style.color = document.getElementById('fontcolor').value; |
---|
226 | document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value; |
---|
227 | } |
---|
228 | if ( 'fontdisplay' == oid ) { |
---|
229 | document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value; |
---|
230 | } |
---|
231 | } |
---|
232 | function toggleDisplay() { |
---|
233 | td = document.getElementById('fontdisplay'); |
---|
234 | td.value = ( td.value == 'none' ) ? 'inline' : 'none'; |
---|
235 | kUpdate('fontdisplay'); |
---|
236 | } |
---|
237 | function toggleAdvanced() { |
---|
238 | a = document.getElementById('jsAdvanced'); |
---|
239 | if ( a.style.display == 'none' ) |
---|
240 | a.style.display = 'block'; |
---|
241 | else |
---|
242 | a.style.display = 'none'; |
---|
243 | } |
---|
244 | function kDefaults() { |
---|
245 | document.getElementById('headerimage').value = ''; |
---|
246 | document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#69aee7'; |
---|
247 | document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#4180b6'; |
---|
248 | document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/xpressheader.jpg") center no-repeat'; |
---|
249 | document.getElementById('header').style.color = '#FFFFFF'; |
---|
250 | document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = ''; |
---|
251 | document.getElementById('fontdisplay').value = 'inline'; |
---|
252 | document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value; |
---|
253 | } |
---|
254 | function kRevert() { |
---|
255 | document.getElementById('headerimage').value = '<?php echo js_escape(xpress_header_image()); ?>'; |
---|
256 | document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#<?php echo js_escape(xpress_upper_color()); ?>'; |
---|
257 | document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#<?php echo js_escape(xpress_lower_color()); ?>'; |
---|
258 | document.getElementById('header').style.background = 'url("<?php echo js_escape(xpress_header_image_url()); ?>") center no-repeat'; |
---|
259 | document.getElementById('header').style.color = ''; |
---|
260 | document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '<?php echo js_escape(xpress_header_color_string()); ?>'; |
---|
261 | document.getElementById('fontdisplay').value = '<?php echo js_escape(xpress_header_display_string()); ?>'; |
---|
262 | document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value; |
---|
263 | } |
---|
264 | function kInit() { |
---|
265 | document.getElementById('jsForm').style.display = 'block'; |
---|
266 | document.getElementById('nonJsForm').style.display = 'none'; |
---|
267 | } |
---|
268 | addLoadEvent(kInit); |
---|
269 | // ]]> |
---|
270 | </script> |
---|
271 | <style type='text/css'> |
---|
272 | #headwrap { |
---|
273 | text-align: center; |
---|
274 | } |
---|
275 | #xpress-header { |
---|
276 | font-size: 80%; |
---|
277 | } |
---|
278 | #xpress-header .hibrowser { |
---|
279 | width: 780px; |
---|
280 | height: 260px; |
---|
281 | overflow: scroll; |
---|
282 | } |
---|
283 | #xpress-header #hitarget { |
---|
284 | display: none; |
---|
285 | } |
---|
286 | #xpress-header #header h1 { |
---|
287 | font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif; |
---|
288 | font-weight: bold; |
---|
289 | font-size: 2em; |
---|
290 | text-align: center; |
---|
291 | padding-top: 70px; |
---|
292 | margin: 0; |
---|
293 | } |
---|
294 | |
---|
295 | #xpress-header #header .description { |
---|
296 | font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; |
---|
297 | font-size: 1.2em; |
---|
298 | text-align: center; |
---|
299 | } |
---|
300 | #xpress-header #header { |
---|
301 | text-decoration: none; |
---|
302 | color: <?php echo xpress_header_color_string(); ?>; |
---|
303 | padding: 0; |
---|
304 | margin: 0; |
---|
305 | height: 200px; |
---|
306 | text-align: center; |
---|
307 | background: url('<?php echo xpress_header_image_url(); ?>') center no-repeat; |
---|
308 | } |
---|
309 | #xpress-header #headerimg { |
---|
310 | margin: 0; |
---|
311 | height: 200px; |
---|
312 | width: 100%; |
---|
313 | display: <?php echo xpress_header_display_string(); ?>; |
---|
314 | } |
---|
315 | #jsForm { |
---|
316 | display: none; |
---|
317 | text-align: center; |
---|
318 | } |
---|
319 | #jsForm input.submit, #jsForm input.button, #jsAdvanced input.button { |
---|
320 | padding: 0px; |
---|
321 | margin: 0px; |
---|
322 | } |
---|
323 | #advanced { |
---|
324 | text-align: center; |
---|
325 | width: 620px; |
---|
326 | } |
---|
327 | html>body #advanced { |
---|
328 | text-align: center; |
---|
329 | position: relative; |
---|
330 | left: 50%; |
---|
331 | margin-left: -380px; |
---|
332 | } |
---|
333 | #jsAdvanced { |
---|
334 | text-align: right; |
---|
335 | } |
---|
336 | #nonJsForm { |
---|
337 | position: relative; |
---|
338 | text-align: left; |
---|
339 | margin-left: -370px; |
---|
340 | left: 50%; |
---|
341 | } |
---|
342 | #nonJsForm label { |
---|
343 | padding-top: 6px; |
---|
344 | padding-right: 5px; |
---|
345 | float: left; |
---|
346 | width: 100px; |
---|
347 | text-align: right; |
---|
348 | } |
---|
349 | .defbutton { |
---|
350 | font-weight: bold; |
---|
351 | } |
---|
352 | .zerosize { |
---|
353 | width: 0px; |
---|
354 | height: 0px; |
---|
355 | overflow: hidden; |
---|
356 | } |
---|
357 | #colorPickerDiv a, #colorPickerDiv a:hover { |
---|
358 | padding: 1px; |
---|
359 | text-decoration: none; |
---|
360 | border-bottom: 0px; |
---|
361 | } |
---|
362 | </style> |
---|
363 | <?php |
---|
364 | } |
---|
365 | |
---|
366 | function xpress_theme_page() { |
---|
367 | if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated fade"><p><strong>'.__('Options saved.', 'xpress').'</strong></p></div>'; |
---|
368 | ?> |
---|
369 | <div class='wrap'> |
---|
370 | <div id="xpress-header"> |
---|
371 | <h2><?php _e('Header Image and Color', 'xpress'); ?></h2> |
---|
372 | <div id="headwrap"> |
---|
373 | <div id="header"> |
---|
374 | <div id="headerimg"> |
---|
375 | <h1><?php bloginfo('name'); ?></h1> |
---|
376 | <div class="description"><?php bloginfo('description'); ?></div> |
---|
377 | </div> |
---|
378 | </div> |
---|
379 | </div> |
---|
380 | <br /> |
---|
381 | <div id="nonJsForm"> |
---|
382 | <form method="post" action=""> |
---|
383 | <?php wp_nonce_field('xpress-header'); ?> |
---|
384 | <div class="zerosize"><input type="submit" name="defaultsubmit" value="<?php echo attribute_escape(__('Save', 'xpress')); ?>" /></div> |
---|
385 | <label for="njfontcolor"><?php _e('Font Color:', 'xpress'); ?></label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo attribute_escape(xpress_header_color()); ?>" /> <?php printf(__('Any CSS color (%s or %s or %s)', 'xpress'), '<code>red</code>', '<code>#FF0000</code>', '<code>rgb(255, 0, 0)</code>'); ?><br /> |
---|
386 | <label for="njuppercolor"><?php _e('Upper Color:', 'xpress'); ?></label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo attribute_escape(xpress_upper_color()); ?>" /> <?php printf(__('HEX only (%s or %s)', 'xpress'), '<code>#FF0000</code>', '<code>#F00</code>'); ?><br /> |
---|
387 | <label for="njlowercolor"><?php _e('Lower Color:', 'xpress'); ?></label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo attribute_escape(xpress_lower_color()); ?>" /> <?php printf(__('HEX only (%s or %s)', 'xpress'), '<code>#FF0000</code>', '<code>#F00</code>'); ?><br /> |
---|
388 | <input type="hidden" name="hi" id="hi" value="<?php echo attribute_escape(xpress_header_image()); ?>" /> |
---|
389 | <input type="submit" name="toggledisplay" id="toggledisplay" value="<?php echo attribute_escape(__('Toggle Text', 'xpress')); ?>" /> |
---|
390 | <input type="submit" name="defaults" value="<?php echo attribute_escape(__('Use Defaults', 'xpress')); ?>" /> |
---|
391 | <input type="submit" class="defbutton" name="submitform" value=" <?php _e('Save', 'xpress'); ?> " /> |
---|
392 | <input type="hidden" name="action" value="save" /> |
---|
393 | <input type="hidden" name="njform" value="true" /> |
---|
394 | </form> |
---|
395 | </div> |
---|
396 | <div id="jsForm"> |
---|
397 | <form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo attribute_escape($_SERVER['REQUEST_URI']); ?>"> |
---|
398 | <?php wp_nonce_field('xpress-header'); ?> |
---|
399 | <input type="button" class="button-secondary" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php echo attribute_escape(__('Font Color', 'xpress')); ?>"></input> |
---|
400 | <input type="button" class="button-secondary" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php echo attribute_escape(__('Upper Color', 'xpress')); ?>"></input> |
---|
401 | <input type="button" class="button-secondary" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="<?php echo attribute_escape(__('Lower Color', 'xpress')); ?>"></input> |
---|
402 | <input type="button" class="button-secondary" name="revert" value="<?php echo attribute_escape(__('Revert', 'xpress')); ?>" onclick="kRevert()" /> |
---|
403 | <input type="button" class="button-secondary" value="<?php echo attribute_escape(__('Advanced', 'xpress')); ?>" onclick="toggleAdvanced()" /> |
---|
404 | <input type="hidden" name="action" value="save" /> |
---|
405 | <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo attribute_escape(xpress_header_display()); ?>" /> |
---|
406 | <input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo attribute_escape(xpress_header_color()); ?>" /> |
---|
407 | <input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo attribute_escape(xpress_upper_color()); ?>" /> |
---|
408 | <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo attribute_escape(xpress_lower_color()); ?>" /> |
---|
409 | <input type="hidden" name="headerimage" id="headerimage" value="<?php echo attribute_escape(xpress_header_image()); ?>" /> |
---|
410 | <p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php echo attribute_escape(__('Update Header »', 'xpress')); ?>" onclick="cp.hidePopup('prettyplease')" /></p> |
---|
411 | </form> |
---|
412 | <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div> |
---|
413 | <div id="advanced"> |
---|
414 | <form id="jsAdvanced" style="display:none;" action=""> |
---|
415 | <?php wp_nonce_field('xpress-header'); ?> |
---|
416 | <label for="advfontcolor"><?php _e('Font Color (CSS):', 'xpress'); ?> </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo attribute_escape(xpress_header_color()); ?>" /><br /> |
---|
417 | <label for="advuppercolor"><?php _e('Upper Color (HEX):');?> </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo attribute_escape(xpress_upper_color()); ?>" /><br /> |
---|
418 | <label for="advlowercolor"><?php _e('Lower Color (HEX):'); ?> </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo attribute_escape(xpress_lower_color()); ?>" /><br /> |
---|
419 | <input type="button" class="button-secondary" name="default" value="<?php echo attribute_escape(__('Select Default Colors', 'xpress')); ?>" onclick="kDefaults()" /><br /> |
---|
420 | <input type="button" class="button-secondary" onclick="toggleDisplay();return false;" name="pick" id="pick" value="<?php echo attribute_escape(__('Toggle Text Display', 'xpress')); ?>"></input><br /> |
---|
421 | </form> |
---|
422 | </div> |
---|
423 | </div> |
---|
424 | </div> |
---|
425 | </div> |
---|
426 | <?php } ?> |
---|