Advertisement
Guest User

Untitled

a guest
Nov 14th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.35 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <?php
  5. // declare the new helper
  6. $helper = new Html();
  7. ?>
  8.  
  9. <?php
  10. // print out the charset
  11. $helper->charset('utf-8');
  12. $helper->favicon();
  13.  
  14. // print out the meta data
  15. the_meta_tags();
  16. ?>
  17.  
  18. <title>
  19. <?php bloginfo('name'); wp_title('-', true);?>
  20. </title>
  21. <script type="text/javascript">
  22. var template_url = '<?php echo TEMPLATE_URL ?>';
  23. </script>
  24. <?php
  25. // css tag
  26. $helper->css('style.css');
  27. $helper->css('css/custom.css');
  28.  
  29. // javascript tags
  30. $helper->js('jquery.js');
  31. $helper->js('validations.js');
  32. $helper->js('init.js');
  33. ?>
  34.  
  35. <!--[if !IE]><!-->
  36. <?php $helper->css('css/corner.css');?>
  37. <!--<![endif]-->
  38.  
  39. <!--[if IE 9]>
  40. <?php $helper->css('css/corner.css');?>
  41. <![endif]-->
  42.  
  43. <!-- include fix corner border for ie -->
  44. <!--[if lt ie 9]>
  45. <?php $helper->js('jquery.curvycorners.js') ?>
  46. <?php $helper->js('curvycorners.js') ?>
  47. <?php $helper->js('ie.js')?>
  48. <?php $helper->css('css/ie.css'); ?>
  49. <![endif]-->
  50. <!--[if ie 7]>
  51. <script type="text/javascript">
  52. // <![CDATA[
  53. jQuery(document).ready(function(){
  54. jQuery('#top-search-butt').width(jQuery('#search-button').width() + 25);
  55. jQuery('#bottom-search-butt').width(jQuery('#bottom-search-button').width() + 50);
  56. });
  57.  
  58. // ]]>
  59. </script>
  60. <![endif]-->
  61. <?php wp_head();?>
  62.  
  63. </head>
  64.  
  65. <?php
  66. $default_search = get_option('tgt_default_search');
  67. ?>
  68.  
  69. <body>
  70. <div id="header">
  71. <div class="header_res">
  72. <div class="header_main">
  73. <div class="top">
  74. <div class="logo">
  75. <a href="<?php echo HOME_URL ?>">
  76. <?php
  77. echo $helper->image(get_option('tgt_logo'), 'logo');
  78. ?>
  79. </a>
  80. </div>
  81.  
  82. <div class="main_menu">
  83. <div class="navi_list" id="navi_list">
  84. <ul>
  85. <?php
  86. the_auth_menu();
  87. ?>
  88. </ul>
  89. </div>
  90. <?php wp_nav_menu( array( 'container_class' => 'menu', 'theme_location' => 'header_location', 'menu' => 'header_menu' ) ); ?>
  91. </div>
  92. </div>
  93.  
  94. <div class="search" id="search_panel" style="height:73px;margin-top:85px;">
  95. <div class="search_text">
  96. <p><?php _e('Welcome to', 'ad'); ?><span> <?php _e('Article Directory', 'ad')?></span></p>
  97. </div>
  98.  
  99. <div class="search_box">
  100.  
  101. <!-- Google Search -->
  102. <?php
  103. if ($default_search == GOOGLE_SEARCH) {
  104. /**
  105. * SHOW THE GOOGLE SEARCH
  106. **/
  107. ?>
  108. <form action="<?php echo HOME_URL . '/?action=g_search_result'?>" id="cse-search-box">
  109. <div id="advance_search">
  110. <?php echo $helper->link(__('Advance Search?', 'ad'), '?action=advanced_search');?>
  111. </div>
  112. <!-- -->
  113. <div class="box_input1"></div>
  114. <div class="box_input">
  115. <?php echo $helper->image('icon_google.gif', 'google_search')?>
  116. <input type="hidden" name="action" value="g_search_result"/>
  117.  
  118. <input type="hidden" name="cx" value="<?php echo get_option(SETTING_SEARCH_GOOGLE_SEARCH_ID);?>" />
  119. <!-- <input type="hidden" name="cx" value="000883175454700452352:v9awvyefv-m" />-->
  120. <input type="hidden" name="cof" value="FORID:10" />
  121. <input type="hidden" name="ie" value="UTF-8" />
  122. <input id="search-content" type="text" name="q" size="40px" />
  123. </div>
  124.  
  125. <div class="box_input2"></div>
  126.  
  127. <div id="top-search-butt" class="butt">
  128. <input id="search-button" type="submit" value="<?php _e('Search', 'ad')?>" class="button" name="sa"/>
  129. </div>
  130. <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
  131.  
  132. </form>
  133. <?php
  134. }else{
  135. /**
  136. * SHOW THE INNER SEARCH
  137. **/
  138. ?>
  139.  
  140. <form action="<?php bloginfo('url');?>" id="inner-search=box">
  141. <div id="advance_search">
  142. <?php echo $helper->link('Advance Search?', '?action=advanced_search');?>
  143. </div>
  144. <!-- -->
  145. <div class="box_input1"></div>
  146. <div class="box_input">
  147. <input id="search-content" type="text" name="searchcontent" size="40px" style="width: 316px" value=""/>
  148. <input type="hidden" name="s" value="how" />
  149. </div>
  150.  
  151. <div class="box_input2"></div>
  152.  
  153. <div id="top-search-butt" class="butt">
  154. <input id="search-button" type="submit" value="<?php _e('Search', 'ad')?>" class="button" name="sa"/>
  155. </div>
  156. </form>
  157.  
  158. <?php
  159. }
  160. ?>
  161. </div>
  162. </div>
  163.  
  164. </div>
  165. </div>
  166. </div>
  167.  
  168. <!-- HEADER -->
  169. <script type="text/javascript">
  170. jQuery('.menu ul li:last').removeClass('menu-item').addClass("last_item");
  171. </script>
  172.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement