Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.78 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Default_Theme
  5. */
  6. // This theme uses wp_nav_menu() in one location.
  7. register_nav_menus( array(
  8. 'primary' => __( 'Primary Navigation', 'twentyten' ),
  9. ) );
  10. $content_width = 450;
  11. function twentyten_widgets_init() {
  12. // Area 3, located in the footer. Empty by default.
  13. register_sidebar( array(
  14. 'name' => __( 'Language', 'twentyten' ),
  15. 'id' => 'language',
  16. 'description' => __( 'The Language', 'twentyten' ),
  17. 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
  18. 'after_widget' => '</li>',
  19. 'before_title' => '<h3 class="widget-title">',
  20. 'after_title' => '</h3>',
  21. ) );
  22.  
  23. // Area 1, located at the top of the sidebar.
  24. register_sidebar( array(
  25. 'name' => __( 'The menu Tours left', 'twentyten' ),
  26. 'id' => 'menu-tours',
  27. 'description' => __( 'The menu Tours left', 'twentyten' ),
  28. 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
  29. 'after_widget' => '</li>',
  30. 'before_title' => '<h3 class="widget-title">',
  31. 'after_title' => '</h3>',
  32. ) );
  33.  
  34. // Area 1, located at the top of the sidebar.
  35. register_sidebar( array(
  36. 'name' => __( 'Passeios em destaque', 'twentyten' ),
  37. 'id' => 'dest',
  38. 'description' => __( 'The menu Tours left', 'twentyten' ),
  39. 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
  40. 'after_widget' => '</li>',
  41. 'before_title' => '<h2 class="widget-title">',
  42. 'after_title' => '</h2>',
  43. ) );
  44.  
  45. // Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
  46. register_sidebar( array(
  47. 'name' => __( 'contato footer', 'twentyten' ),
  48. 'id' => 'contato',
  49. 'description' => __( 'The secondary widget area', 'twentyten' ),
  50. 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
  51. 'after_widget' => '</li>',
  52. 'before_title' => '<h3 class="widget-title">',
  53. 'after_title' => '</h3>',
  54. ) );
  55. // Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
  56. register_sidebar( array(
  57. 'name' => __( 'Testimonials Home', 'twentyten' ),
  58. 'id' => 'testemonials-home',
  59. 'description' => __( 'The secondary widget area', 'twentyten' ),
  60. 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
  61. 'after_widget' => '</li>',
  62. 'before_title' => '<h3 class="widget-title">',
  63. 'after_title' => '</h3>',
  64. ) );
  65.  
  66.  
  67. // Area 4, located in the footer. Empty by default.
  68. register_sidebar( array(
  69. 'name' => __( 'Main menu footer', 'twentyten' ),
  70. 'id' => 'menu-footer',
  71. 'description' => __( 'Main menu footer', 'twentyten' ),
  72. 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
  73. 'after_widget' => '</li>',
  74. 'before_title' => '<h3 class="widget-title">',
  75. 'after_title' => '</h3>',
  76. ) );
  77.  
  78. // Area 5, located in the footer. Empty by default.
  79. register_sidebar( array(
  80. 'name' => __( 'Menu services footer', 'twentyten' ),
  81. 'id' => 'menu-services',
  82. 'description' => __( 'Menu services footer', 'twentyten' ),
  83. 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
  84. 'after_widget' => '</li>',
  85. 'before_title' => '<h3 class="widget-title">',
  86. 'after_title' => '</h3>',
  87. ) );
  88.  
  89. // Area 6, located in the footer. Empty by default.
  90. register_sidebar( array(
  91. 'name' => __( 'Siga-nos footer', 'twentyten' ),
  92. 'id' => 'foll',
  93. 'description' => __( 'The fourth footer widget area', 'twentyten' ),
  94. 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
  95. 'after_widget' => '</li>',
  96. 'before_title' => '<h3 class="widget-title">',
  97. 'after_title' => '</h3>',
  98. ) );
  99. }
  100. /** Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */
  101. add_action( 'widgets_init', 'twentyten_widgets_init' );
  102.  
  103. /*breadcrumb*/
  104.  
  105. function the_breadcrumb() {
  106. if (!is_home()) {
  107. echo '<a href="';
  108. echo get_option('home');
  109. echo '">';
  110. bloginfo('name');
  111. echo "</a> &gt; ";
  112. if (is_category() || is_single()) {
  113. the_category('title_li=');
  114. if (is_single()) {
  115. echo " &gt; ";
  116. the_title();
  117. }
  118. } elseif (is_page()) {
  119. echo the_title();
  120. }
  121. }
  122. }
  123.  
  124. /** @ignore */
  125. function kubrick_head() {
  126. $head = "<style type='text/css'>\n<!--";
  127. $output = '';
  128. if ( kubrick_header_image() ) {
  129. $url = kubrick_header_image_url() ;
  130. $output .= "#header { background: url('$url') no-repeat bottom center; }\n";
  131. }
  132. if ( false !== ( $color = kubrick_header_color() ) ) {
  133. $output .= "#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: $color; }\n";
  134. }
  135. if ( false !== ( $display = kubrick_header_display() ) ) {
  136. $output .= "#headerimg { display: $display }\n";
  137. }
  138. $foot = "--></style>\n";
  139. if ( '' != $output )
  140. echo $head . $output . $foot;
  141. }
  142.  
  143. add_action('wp_head', 'kubrick_head');
  144.  
  145. function kubrick_header_image() {
  146. return apply_filters('kubrick_header_image', get_option('kubrick_header_image'));
  147. }
  148.  
  149. function kubrick_upper_color() {
  150. if (strpos($url = kubrick_header_image_url(), 'header-img.php?') !== false) {
  151. parse_str(substr($url, strpos($url, '?') + 1), $q);
  152. return $q['upper'];
  153. } else
  154. return '69aee7';
  155. }
  156.  
  157. function kubrick_lower_color() {
  158. if (strpos($url = kubrick_header_image_url(), 'header-img.php?') !== false) {
  159. parse_str(substr($url, strpos($url, '?') + 1), $q);
  160. return $q['lower'];
  161. } else
  162. return '4180b6';
  163. }
  164.  
  165. function kubrick_header_image_url() {
  166. if ( $image = kubrick_header_image() )
  167. $url = get_template_directory_uri() . '/images/' . $image;
  168. else
  169. $url = get_template_directory_uri() . '/images/kubrickheader.jpg';
  170.  
  171. return $url;
  172. }
  173.  
  174. function kubrick_header_color() {
  175. return apply_filters('kubrick_header_color', get_option('kubrick_header_color'));
  176. }
  177.  
  178. function kubrick_header_color_string() {
  179. $color = kubrick_header_color();
  180. if ( false === $color )
  181. return 'white';
  182.  
  183. return $color;
  184. }
  185.  
  186. function kubrick_header_display() {
  187. return apply_filters('kubrick_header_display', get_option('kubrick_header_display'));
  188. }
  189.  
  190. function kubrick_header_display_string() {
  191. $display = kubrick_header_display();
  192. return $display ? $display : 'inline';
  193. }
  194.  
  195. add_action('admin_menu', 'kubrick_add_theme_page');
  196.  
  197. function kubrick_add_theme_page() {
  198. if ( isset( $_GET['page'] ) && $_GET['page'] == basename(__FILE__) ) {
  199. if ( isset( $_REQUEST['action'] ) && 'save' == $_REQUEST['action'] ) {
  200. check_admin_referer('kubrick-header');
  201. if ( isset($_REQUEST['njform']) ) {
  202. if ( isset($_REQUEST['defaults']) ) {
  203. delete_option('kubrick_header_image');
  204. delete_option('kubrick_header_color');
  205. delete_option('kubrick_header_display');
  206. } else {
  207. if ( '' == $_REQUEST['njfontcolor'] )
  208. delete_option('kubrick_header_color');
  209. else {
  210. $fontcolor = preg_replace('/^.*(#[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['njfontcolor']);
  211. update_option('kubrick_header_color', $fontcolor);
  212. }
  213. 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) ) {
  214. $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];
  215. $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];
  216. update_option('kubrick_header_image', "header-img.php?upper=$uc&lower=$lc");
  217. }
  218.  
  219. if ( isset($_REQUEST['toggledisplay']) ) {
  220. if ( false === get_option('kubrick_header_display') )
  221. update_option('kubrick_header_display', 'none');
  222. else
  223. delete_option('kubrick_header_display');
  224. }
  225. }
  226. } else {
  227.  
  228. if ( isset($_REQUEST['headerimage']) ) {
  229. check_admin_referer('kubrick-header');
  230. if ( '' == $_REQUEST['headerimage'] )
  231. delete_option('kubrick_header_image');
  232. else {
  233. $headerimage = preg_replace('/^.*?(header-img.php\?upper=[0-9a-fA-F]{6}&lower=[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['headerimage']);
  234. update_option('kubrick_header_image', $headerimage);
  235. }
  236. }
  237.  
  238. if ( isset($_REQUEST['fontcolor']) ) {
  239. check_admin_referer('kubrick-header');
  240. if ( '' == $_REQUEST['fontcolor'] )
  241. delete_option('kubrick_header_color');
  242. else {
  243. $fontcolor = preg_replace('/^.*?(#[0-9a-fA-F]{6})?.*$/', '$1', $_REQUEST['fontcolor']);
  244. update_option('kubrick_header_color', $fontcolor);
  245. }
  246. }
  247.  
  248. if ( isset($_REQUEST['fontdisplay']) ) {
  249. check_admin_referer('kubrick-header');
  250. if ( '' == $_REQUEST['fontdisplay'] || 'inline' == $_REQUEST['fontdisplay'] )
  251. delete_option('kubrick_header_display');
  252. else
  253. update_option('kubrick_header_display', 'none');
  254. }
  255. }
  256. //print_r($_REQUEST);
  257. wp_redirect("themes.php?page=functions.php&saved=true");
  258. die;
  259. }
  260. add_action('admin_head', 'kubrick_theme_page_head');
  261. }
  262. add_theme_page(__('Custom Header'), __('Custom Header'), 'edit_themes', basename(__FILE__), 'kubrick_theme_page');
  263. }
  264.  
  265. function kubrick_theme_page_head() {
  266. ?>
  267. <script type="text/javascript" src="../wp-includes/js/colorpicker.js"></script>
  268. <script type='text/javascript'>
  269. // <![CDATA[
  270. function pickColor(color) {
  271. ColorPicker_targetInput.value = color;
  272. kUpdate(ColorPicker_targetInput.id);
  273. }
  274. function PopupWindow_populate(contents) {
  275. contents += '<br /><p style="text-align:center;margin-top:0px;"><input type="button" class="button-secondary" value="<?php esc_attr_e('Close Color Picker'); ?>" onclick="cp.hidePopup(\'prettyplease\')"></input></p>';
  276. this.contents = contents;
  277. this.populated = false;
  278. }
  279. function PopupWindow_hidePopup(magicword) {
  280. if ( magicword != 'prettyplease' )
  281. return false;
  282. if (this.divName != null) {
  283. if (this.use_gebi) {
  284. document.getElementById(this.divName).style.visibility = "hidden";
  285. }
  286. else if (this.use_css) {
  287. document.all[this.divName].style.visibility = "hidden";
  288. }
  289. else if (this.use_layers) {
  290. document.layers[this.divName].visibility = "hidden";
  291. }
  292. }
  293. else {
  294. if (this.popupWindow && !this.popupWindow.closed) {
  295. this.popupWindow.close();
  296. this.popupWindow = null;
  297. }
  298. }
  299. return false;
  300. }
  301. function colorSelect(t,p) {
  302. if ( cp.p == p && document.getElementById(cp.divName).style.visibility != "hidden" )
  303. cp.hidePopup('prettyplease');
  304. else {
  305. cp.p = p;
  306. cp.select(t,p);
  307. }
  308. }
  309. function PopupWindow_setSize(width,height) {
  310. this.width = 162;
  311. this.height = 210;
  312. }
  313.  
  314. var cp = new ColorPicker();
  315. function advUpdate(val, obj) {
  316. document.getElementById(obj).value = val;
  317. kUpdate(obj);
  318. }
  319. function kUpdate(oid) {
  320. if ( 'uppercolor' == oid || 'lowercolor' == oid ) {
  321. uc = document.getElementById('uppercolor').value.replace('#', '');
  322. lc = document.getElementById('lowercolor').value.replace('#', '');
  323. hi = document.getElementById('headerimage');
  324. hi.value = 'header-img.php?upper='+uc+'&lower='+lc;
  325. document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/'+hi.value+'") center no-repeat';
  326. document.getElementById('advuppercolor').value = '#'+uc;
  327. document.getElementById('advlowercolor').value = '#'+lc;
  328. }
  329. if ( 'fontcolor' == oid ) {
  330. document.getElementById('header').style.color = document.getElementById('fontcolor').value;
  331. document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value;
  332. }
  333. if ( 'fontdisplay' == oid ) {
  334. document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
  335. }
  336. }
  337. function toggleDisplay() {
  338. td = document.getElementById('fontdisplay');
  339. td.value = ( td.value == 'none' ) ? 'inline' : 'none';
  340. kUpdate('fontdisplay');
  341. }
  342. function toggleAdvanced() {
  343. a = document.getElementById('jsAdvanced');
  344. if ( a.style.display == 'none' )
  345. a.style.display = 'block';
  346. else
  347. a.style.display = 'none';
  348. }
  349. function kDefaults() {
  350. document.getElementById('headerimage').value = '';
  351. document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#69aee7';
  352. document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#4180b6';
  353. document.getElementById('header').style.background = 'url("<?php echo get_template_directory_uri(); ?>/images/kubrickheader.jpg") center no-repeat';
  354. document.getElementById('header').style.color = '#FFFFFF';
  355. document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '';
  356. document.getElementById('fontdisplay').value = 'inline';
  357. document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
  358. }
  359. function kRevert() {
  360. document.getElementById('headerimage').value = '<?php echo esc_js(kubrick_header_image()); ?>';
  361. document.getElementById('advuppercolor').value = document.getElementById('uppercolor').value = '#<?php echo esc_js(kubrick_upper_color()); ?>';
  362. document.getElementById('advlowercolor').value = document.getElementById('lowercolor').value = '#<?php echo esc_js(kubrick_lower_color()); ?>';
  363. document.getElementById('header').style.background = 'url("<?php echo esc_js(kubrick_header_image_url()); ?>") center no-repeat';
  364. document.getElementById('header').style.color = '';
  365. document.getElementById('advfontcolor').value = document.getElementById('fontcolor').value = '<?php echo esc_js(kubrick_header_color_string()); ?>';
  366. document.getElementById('fontdisplay').value = '<?php echo esc_js(kubrick_header_display_string()); ?>';
  367. document.getElementById('headerimg').style.display = document.getElementById('fontdisplay').value;
  368. }
  369. function kInit() {
  370. document.getElementById('jsForm').style.display = 'block';
  371. document.getElementById('nonJsForm').style.display = 'none';
  372. }
  373. addLoadEvent(kInit);
  374. // ]]>
  375. </script>
  376. <style type='text/css'>
  377. #headwrap {
  378. text-align: center;
  379. }
  380. #kubrick-header {
  381. font-size: 80%;
  382. }
  383. #kubrick-header .hibrowser {
  384. width: 780px;
  385. height: 260px;
  386. overflow: scroll;
  387. }
  388. #kubrick-header #hitarget {
  389. display: none;
  390. }
  391. #kubrick-header #header h1 {
  392. font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
  393. font-weight: bold;
  394. font-size: 4em;
  395. text-align: center;
  396. padding-top: 70px;
  397. margin: 0;
  398. }
  399.  
  400. #kubrick-header #header .description {
  401. font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
  402. font-size: 1.2em;
  403. text-align: center;
  404. }
  405. #kubrick-header #header {
  406. text-decoration: none;
  407. color: <?php echo kubrick_header_color_string(); ?>;
  408. padding: 0;
  409. margin: 0;
  410. height: 200px;
  411. text-align: center;
  412. background: url('<?php echo kubrick_header_image_url(); ?>') center no-repeat;
  413. }
  414. #kubrick-header #headerimg {
  415. margin: 0;
  416. height: 200px;
  417. width: 100%;
  418. display: <?php echo kubrick_header_display_string(); ?>;
  419. }
  420.  
  421. .description {
  422. margin-top: 16px;
  423. color: #fff;
  424. }
  425.  
  426. #jsForm {
  427. display: none;
  428. text-align: center;
  429. }
  430. #jsForm input.submit, #jsForm input.button, #jsAdvanced input.button {
  431. padding: 0px;
  432. margin: 0px;
  433. }
  434. #advanced {
  435. text-align: center;
  436. width: 620px;
  437. }
  438. html>body #advanced {
  439. text-align: center;
  440. position: relative;
  441. left: 50%;
  442. margin-left: -380px;
  443. }
  444. #jsAdvanced {
  445. text-align: right;
  446. }
  447. #nonJsForm {
  448. position: relative;
  449. text-align: left;
  450. margin-left: -370px;
  451. left: 50%;
  452. }
  453. #nonJsForm label {
  454. padding-top: 6px;
  455. padding-right: 5px;
  456. float: left;
  457. width: 100px;
  458. text-align: right;
  459. }
  460. .defbutton {
  461. font-weight: bold;
  462. }
  463. .zerosize {
  464. width: 0px;
  465. height: 0px;
  466. overflow: hidden;
  467. }
  468. #colorPickerDiv a, #colorPickerDiv a:hover {
  469. padding: 1px;
  470. text-decoration: none;
  471. border-bottom: 0px;
  472. }
  473. </style>
  474. <?php
  475. }
  476.  
  477. function kubrick_theme_page() {
  478. if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated fade"><p><strong>'.__('Options saved.').'</strong></p></div>';
  479. ?>
  480. <div class='wrap'>
  481. <h2><?php _e('Customize Header'); ?></h2>
  482. <div id="kubrick-header">
  483. <div id="headwrap">
  484. <div id="header">
  485. <div id="headerimg">
  486. <h1><?php bloginfo('name'); ?></h1>
  487. <div class="description"><?php bloginfo('description'); ?></div>
  488. </div>
  489. </div>
  490. </div>
  491. <br />
  492. <div id="nonJsForm">
  493. <form method="post" action="">
  494. <?php wp_nonce_field('kubrick-header'); ?>
  495. <div class="zerosize"><input type="submit" name="defaultsubmit" value="<?php esc_attr_e('Save'); ?>" /></div>
  496. <label for="njfontcolor"><?php _e('Font Color:'); ?></label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo esc_attr(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 />
  497. <label for="njuppercolor"><?php _e('Upper Color:'); ?></label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo esc_attr(kubrick_upper_color()); ?>" /> <?php printf(__('HEX only (%s or %s)'), '<code>#FF0000</code>', '<code>#F00</code>'); ?><br />
  498. <label for="njlowercolor"><?php _e('Lower Color:'); ?></label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo esc_attr(kubrick_lower_color()); ?>" /> <?php printf(__('HEX only (%s or %s)'), '<code>#FF0000</code>', '<code>#F00</code>'); ?><br />
  499. <input type="hidden" name="hi" id="hi" value="<?php echo esc_attr(kubrick_header_image()); ?>" />
  500. <input type="submit" name="toggledisplay" id="toggledisplay" value="<?php esc_attr_e('Toggle Text'); ?>" />
  501. <input type="submit" name="defaults" value="<?php esc_attr_e('Use Defaults'); ?>" />
  502. <input type="submit" class="defbutton" name="submitform" value="&nbsp;&nbsp;<?php esc_attr_e('Save'); ?>&nbsp;&nbsp;" />
  503. <input type="hidden" name="action" value="save" />
  504. <input type="hidden" name="njform" value="true" />
  505. </form>
  506. </div>
  507. <div id="jsForm">
  508. <form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo esc_attr($_SERVER['REQUEST_URI']); ?>">
  509. <?php wp_nonce_field('kubrick-header'); ?>
  510. <input type="button" class="button-secondary" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php esc_attr_e('Font Color'); ?>"></input>
  511. <input type="button" class="button-secondary" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php esc_attr_e('Upper Color'); ?>"></input>
  512. <input type="button" class="button-secondary" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="<?php esc_attr_e('Lower Color'); ?>"></input>
  513. <input type="button" class="button-secondary" name="revert" value="<?php esc_attr_e('Revert'); ?>" onclick="kRevert()" />
  514. <input type="button" class="button-secondary" value="<?php esc_attr_e('Advanced'); ?>" onclick="toggleAdvanced()" />
  515. <input type="hidden" name="action" value="save" />
  516. <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo esc_attr(kubrick_header_display()); ?>" />
  517. <input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo esc_attr(kubrick_header_color()); ?>" />
  518. <input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo esc_attr(kubrick_upper_color()); ?>" />
  519. <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo esc_attr(kubrick_lower_color()); ?>" />
  520. <input type="hidden" name="headerimage" id="headerimage" value="<?php echo esc_attr(kubrick_header_image()); ?>" />
  521. <p class="submit"><input type="submit" name="submitform" class="button-primary" value="<?php esc_attr_e('Update Header'); ?>" onclick="cp.hidePopup('prettyplease')" /></p>
  522. </form>
  523. <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
  524. <div id="advanced">
  525. <form id="jsAdvanced" style="display:none;" action="">
  526. <?php wp_nonce_field('kubrick-header'); ?>
  527. <label for="advfontcolor"><?php _e('Font Color (CSS):'); ?> </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo esc_attr(kubrick_header_color()); ?>" /><br />
  528. <label for="advuppercolor"><?php _e('Upper Color (HEX):');?> </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo esc_attr(kubrick_upper_color()); ?>" /><br />
  529. <label for="advlowercolor"><?php _e('Lower Color (HEX):'); ?> </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo esc_attr(kubrick_lower_color()); ?>" /><br />
  530. <input type="button" class="button-secondary" name="default" value="<?php esc_attr_e('Select Default Colors'); ?>" onclick="kDefaults()" /><br />
  531. <input type="button" class="button-secondary" onclick="toggleDisplay();return false;" name="pick" id="pick" value="<?php esc_attr_e('Toggle Text Display'); ?>"></input><br />
  532. </form>
  533. </div>
  534. </div>
  535. </div>
  536. </div>
  537. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement