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