Advertisement
Juan_M

fnb_header

Feb 11th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. <!-- header START -->
  2. <div id="header">
  3.  
  4. <!-- banner START -->
  5. <?php if( $options['banner_content'] && (
  6. ($options['banner_registered'] && $user_ID) ||
  7. ($options['banner_commentator'] && !$user_ID && isset($_COOKIE['comment_author_'.COOKIEHASH])) ||
  8. ($options['banner_visitor'] && !$user_ID && !isset($_COOKIE['comment_author_'.COOKIEHASH]))
  9. ) ) : ?>
  10. <div class="banner">
  11. <?php echo($options['banner_content']); ?>
  12. </div>
  13. <?php endif; ?>
  14. <!-- banner END -->
  15.  
  16. <div id="caption">
  17. <h1 id="title"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
  18. <div id="tagline"><?php bloginfo('description'); ?></div>
  19. </div>
  20.  
  21. <div class="fixed"></div>
  22. </div>
  23. <!-- header END -->
  24.  
  25. <!-- navigation START -->
  26. <div id="navigation">
  27. <!-- menus START -->
  28. <?php do_action ('wp_menubar', 'menu-fnb'); ?>
  29. <!-- menus END -->
  30.  
  31. <!-- searchbox START -->
  32. <div id="searchbox">
  33. <?php if($options['google_cse'] && $options['google_cse_cx']) : ?>
  34. <form action="http://www.google.com/cse" method="get">
  35. <div class="content">
  36. <input type="text" class="textfield" name="q" size="24" />
  37. <input type="submit" class="button" name="sa" value="" />
  38. <input type="hidden" name="cx" value="<?php echo $options['google_cse_cx']; ?>" />
  39. <input type="hidden" name="ie" value="UTF-8" />
  40. </div>
  41. </form>
  42. <?php else : ?>
  43. <form action="<?php bloginfo('home'); ?>" method="get">
  44. <div class="content">
  45. <input type="text" class="textfield" name="s" size="24" value="<?php echo wp_specialchars($s, 1); ?>" />
  46. <input type="submit" class="button" value="" />
  47. </div>
  48. </form>
  49. <?php endif; ?>
  50. </div>
  51. <script type="text/javascript">
  52. //<![CDATA[
  53. var searchbox = MGJS.$("searchbox");
  54. var searchtxt = MGJS.getElementsByClassName("textfield", "input", searchbox)[0];
  55. var searchbtn = MGJS.getElementsByClassName("button", "input", searchbox)[0];
  56. var tiptext = "<?php _e('Type text to search here...', 'inove'); ?>";
  57. if(searchtxt.value == "" || searchtxt.value == tiptext) {
  58. searchtxt.className += " searchtip";
  59. searchtxt.value = tiptext;
  60. }
  61. searchtxt.onfocus = function(e) {
  62. if(searchtxt.value == tiptext) {
  63. searchtxt.value = "";
  64. searchtxt.className = searchtxt.className.replace(" searchtip", "");
  65. }
  66. }
  67. searchtxt.onblur = function(e) {
  68. if(searchtxt.value == "") {
  69. searchtxt.className += " searchtip";
  70. searchtxt.value = tiptext;
  71. }
  72. }
  73. searchbtn.onclick = function(e) {
  74. if(searchtxt.value == "" || searchtxt.value == tiptext) {
  75. return false;
  76. }
  77. }
  78. //]]>
  79. </script>
  80. <!-- searchbox END -->
  81.  
  82. <div class="fixed"></div>
  83. </div>
  84. <!-- navigation END -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement