Advertisement
Guest User

Header

a guest
Sep 7th, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.10 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4.  
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <title><?php bloginfo('name'); ?> <?php wp_title(' | ', true, 'left'); ?></title>
  7.  
  8. <?php if(get_option('reedwan_feedburner')): ?>
  9. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php echo get_option('reedwan_feedburner'); ?>" />
  10. <?php endif; ?>
  11.  
  12. <?php if(get_option('reedwan_favicon')): ?>
  13. <link rel="shortcut icon" href="<?php echo get_option('reedwan_favicon'); ?>" />
  14. <?php endif; ?>
  15.  
  16. <!--Stylesheets-->
  17. <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/css/reset.css" type="text/css" />
  18. <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/css/text.css" type="text/css" />
  19. <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/css/960.css" type="text/css" />
  20. <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/js/colorbox/colorbox.css" type="text/css" />
  21. <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style.css" type="text/css" />
  22. <?php if(get_option('reedwan_style_color') == 'dark'): ?>
  23. <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/css/dark.css" type="text/css" />
  24. <?php endif; ?>
  25. <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/css/nivo-slider.css" type="text/css" />
  26. <link href="http://fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+', get_option('reedwan_heading_font')); ?>|<?php echo str_replace(' ', '+', get_option('reedwan_navigation_font')); ?>|<?php echo str_replace(' ', '+', get_option('reedwan_tabs_font')); ?>" rel="stylesheet" type="text/css" />
  27.  
  28. <!--Jquery-->
  29. <?php wp_enqueue_script('jquery'); ?>
  30. <?php wp_enqueue_script('jCarouselLite', get_template_directory_uri(). '/js/jcarousellite_1.0.1.pack.js'); ?>
  31. <?php wp_enqueue_script('TiktakCustom', get_template_directory_uri(). '/js/custom.js'); ?>
  32. <?php wp_enqueue_script('nivo', get_template_directory_uri(). '/js/jquery.nivo.slider.pack.js'); ?>
  33. <?php wp_enqueue_script('jquery.colorbox', get_template_directory_uri(). '/js/colorbox/jquery.colorbox-min.js'); ?>
  34. <?php wp_enqueue_script('scrollTop', get_template_directory_uri(). '/js/scrolltopcontrol.js'); ?>
  35. <?php wp_enqueue_script('Ticker', get_template_directory_uri(). '/js/jquery.li-scroller.1.0.js'); ?>
  36.  
  37. <!--CSS Options-->
  38. <style type="text/css" media="screen">
  39. body, .magazine-widget .block-small h3, .block-tabs .description h3, .magazine-widget .block-small-noimage h3, .related-post h6, .postForm textarea { font-family: '<?php echo get_option('reedwan_general_font'); ?>'; }
  40. ul.tabs-sidebar li a, ul.tabs li a, .postForm .submit, .nav-left, .nav-right, .button a, .pagination, .nivoSlider a, .nivo-caption .date-info, .nivo-caption a, .comment-submit, .title-social, .commenters, .widget-footer-title, .single-title h1, .comment-author .name, .author-title a, .content-title p, .bottomNav a, .title-404 span, h1, h2, h3, h4, h5, h6 {
  41. font-family: '<?php echo get_option('reedwan_heading_font'); ?>';
  42. }
  43. .mainNav a, .bottomNav a { font-family: '<?php echo get_option('reedwan_navigation_font'); ?>'; }
  44. html {
  45. background-color:#<?php echo get_option('reedwan_bg_color'); ?>;
  46. <?php if (get_option('reedwan_pattern')!='none') {?>
  47. background-image:url('<?php bloginfo('template_directory'); ?>/images/patterns/<?php echo get_option('reedwan_pattern'); ?>.png');
  48. background-repeat:repeat;
  49. <?php }?>
  50. }
  51. body {
  52. <?php if (get_option('reedwan_bg_image')) {?>
  53. background-color:transparent;
  54. background-image:url('<?php echo get_option('reedwan_bg_image'); ?>');
  55. background-repeat:no-repeat;
  56. background-attachment:fixed;
  57. background-position:<?php echo get_option('reedwan_img_position'); ?>;
  58. <?php }?>
  59.  
  60. }
  61. .current-menu-parent a, .current-menu-item a { color:#777; }
  62. .mainNav li > ul li a:hover, .error_msg, readmore, a:hover, .single-content ul.tabs li a:hover, .single-content ul.tabs li a.active, h5.toggle a:hover, .nivo-caption a:hover{
  63. color:#<?php echo get_option('reedwan_color'); ?>;
  64. }
  65. .nivo-prevNav:hover { background:#<?php echo get_option('reedwan_color') ; ?> url('<?php bloginfo('template_directory'); ?>/images/nivo-left-arrow.png') no-repeat 50% 50%; }
  66. .nivo-nextNav:hover { background:#<?php echo get_option('reedwan_color'); ?> url('<?php bloginfo('template_directory'); ?>/images/nivo-right-arrow.png') no-repeat 50% 50%; }
  67. .tagcloud a:hover, .reply-comment:hover, .comment-submit:hover, .pagination a:hover, .pagination span.current, .postForm .submit:hover { background:#<?php echo get_option('reedwan_color'); ?>; }
  68. .postForm .error { border: 1px solid #<?php echo get_option('reedwan_color'); ?>; }
  69. .header { position:relative; height:<?php echo get_option('reedwan_header_height'); ?>px; }
  70. .top { background:#<?php echo get_option('reedwan_color_top_bg'); ?>; }
  71. <?php if(get_option('reedwan_style_color') == 'dark'): ?>
  72. .spotlight-title { background:#<?php echo get_option('reedwan_spotlight_title_bg'); ?> url('<?php bloginfo('template_directory'); ?>/images/dark/side-title-spotlight.png') no-repeat right; }
  73. <?php endif; ?>
  74. <?php if(get_option('reedwan_style_color') == 'light'): ?>
  75. .spotlight-title { background:#<?php echo get_option('reedwan_spotlight_title_bg'); ?> url('<?php bloginfo('template_directory'); ?>/images/side-title-spotlight.png') no-repeat right; }
  76. <?php endif; ?>
  77.  
  78. </style>
  79.  
  80. <?php
  81. wp_localize_script('ReedwanStyle', 'ReedwanVars', array(
  82. 'ajaxUrl' => admin_url('admin-ajax.php'),
  83. ));
  84. ?>
  85. <?php if(is_singular()) { wp_enqueue_script('comment-reply'); } ?>
  86. <?php wp_head(); ?>
  87.  
  88. <script type='text/javascript'>
  89. jQuery(window).load(function() {
  90. // Implementation of Nivo Slider
  91. jQuery('#slider').nivoSlider({
  92. effect: '<?php echo get_option('reedwan_slider_effect'); ?>',
  93. pauseTime: <?php echo get_option('reedwan_slider_speed'); ?>,
  94. controlNav: true,
  95. directionNav: true,
  96. directionNavHide: true,
  97. captionOpacity: <?php echo get_option('reedwan_slider_caption'); ?>
  98. });
  99. <?php if(get_option('reedwan_adds_toggle') == 'On'): ?>
  100. // Header Adds Toggle
  101. jQuery('.header-adds').hide();
  102. jQuery(".header-adds-toggle").click(function(){
  103. jQuery(".header-adds").slideToggle("slow");
  104. jQuery(this).toggleClass("active");
  105. });
  106. <?php endif; ?>
  107. });
  108. </script>
  109.  
  110. </head>
  111.  
  112. <body <?php body_class(); ?>>
  113. <?php if(get_option('reedwan_show_top_container') == 'On'): ?>
  114. <!-- Begin Top -->
  115. <div class="top">
  116. <div class="top-wrap">
  117. <!-- Begin Top Navigation -->
  118. <div class="top-nav-wrapper">
  119. <?php wp_nav_menu(array('theme_location' => 'topNav', 'depth' => 1, 'fallback_cb' => false, 'menu_class' => 'topNav')); ?>
  120. </div>
  121. <!-- End Top Navigation -->
  122. <?php if(get_option('reedwan_show_date_time') == 'On'): ?>
  123. <!-- Begin Date -->
  124. <div class="datetime">
  125. <?php echo date('l dS F Y, '); ?>
  126. <span id="theTime"></span>
  127. </div>
  128. <!-- End Date -->
  129. <?php endif; ?>
  130. </div>
  131. </div>
  132. <!-- End Top -->
  133. <?php endif; ?>
  134. <!-- Begin General -->
  135. <div class="general">
  136. <div class="header-adds">
  137. <a href='<?php echo get_option('reedwan_adds_url');?>'><img src="<?php echo get_option('reedwan_adds_image');?>" title="<?php echo get_option('reedwan_adds_title');?>" /></a>
  138. <?php echo get_option('reedwan_adds_text');?>
  139. </div>
  140. <?php if(get_option('reedwan_adds_toggle') == 'On'): ?>
  141. <a class="header-adds-toggle" href="#"></a>
  142. <?php endif; ?>
  143. <!-- Begin Container -->
  144. <div class="container">
  145. <!-- Begin Top Container 960 gs -->
  146. <div class="header container_12">
  147. <!-- Begin Logo Header -->
  148. <div class="grid_4 logo-header">
  149. <?php
  150. if(get_option('reedwan_logo')) {
  151. $logo = get_option('reedwan_logo');
  152. }
  153. else if(get_option('reedwan_style_color')=='dark') {
  154. $logo = get_template_directory_uri() . '/images/dark/header-logo.png';
  155. }
  156. else if(get_option('reedwan_style_color')=='light')
  157. {
  158. $logo = get_template_directory_uri() . '/images/header-logo.png';
  159. }
  160. ?>
  161. <a href='<?php echo home_url(); ?>'><img src="<?php echo $logo; ?>" alt="<?php bloginfo('name'); ?>" /></a>
  162. </div>
  163. <!-- End Logo Header -->
  164. <!-- Begin Header Content -->
  165. <div class="grid_8 prefix_4 header-content">
  166. <?php if(get_option('reedwan_show_search_header') == 'On'): ?>
  167. <!-- Begin Search Header -->
  168. <div class="search-header">
  169. <form method="get" id="search" action="<?php echo home_url(); ?>/">
  170. <div><input type="text" name="s" id="s" value="<?php _e('Search the site ...','Backstreet'); ?>" onfocus='if (this.value == "<?php _e('Search the site ...', 'Backstreet'); ?>") { this.value = ""; }' onblur='if (this.value == "") { this.value = "<?php _e('Search the site ...', 'Backstreet'); ?>"; }' /></div>
  171. <div><button type="submit" id="searchbutton">Go</button></div>
  172. </form>
  173. </div>
  174. <!-- End Search Header -->
  175. <?php endif; ?>
  176.  
  177. <?php if(get_option('reedwan_show_social_header') == 'On'): ?>
  178. <!-- Begin Social Header -->
  179. <div class="social-header">
  180. <ul>
  181. <?php if(get_option('reedwan_feedburner')): ?>
  182. <li class="rss"><a href="<?php echo get_option('reedwan_feedburner'); ?>"></a></li>
  183. <?php endif; ?>
  184. <?php if(get_option('reedwan_twitter_id')): ?>
  185. <li class="twitter"><a href="http://www.twitter.com/<?php echo get_option('reedwan_twitter_id'); ?>"></a></li>
  186. <?php endif; ?>
  187. <?php if(get_option('reedwan_facebook_id')): ?>
  188. <li class="facebook"><a href="http://www.facebook.com/<?php echo get_option('reedwan_facebook_id'); ?>"></a></li>
  189. <?php endif; ?>
  190. <?php if(get_option('reedwan_google_id')): ?>
  191. <li class="google"><a href="http://www.plus.google.com/<?php echo get_option('reedwan_facebook_id'); ?>"></a></li>
  192. <?php endif; ?>
  193. <?php if(get_option('reedwan_vimeo_id')): ?>
  194. <li class="vimeo"><a href="http://www.vimeo.com/<?php echo get_option('reedwan_vimeo_id'); ?>"></a></li>
  195. <?php endif; ?>
  196. <?php if(get_option('reedwan_youtube_id')): ?>
  197. <li class="youtube"><a href="http://www.youtube.com/<?php echo get_option('reedwan_youtube_id'); ?>"></a></li>
  198. <?php endif; ?>
  199. <?php if(get_option('reedwan_flickr_id')): ?>
  200. <li class="flickr"><a href="http://www.flickr.com/<?php echo get_option('reedwan_flickr_id'); ?>"></a></li>
  201. <?php endif; ?>
  202. <?php if(get_option('reedwan_deviantart_id')): ?>
  203. <li class="deviantart"><a href="http://www.deviantart.com/<?php echo get_option('reedwan_deviantart_id'); ?>"></a></li>
  204. <?php endif; ?>
  205. <?php if(get_option('reedwan_linkedin_id')): ?>
  206. <li class="linkedin"><a href="http://www.linkedin.com/<?php echo get_option('reedwan_linkedin_id'); ?>"></a></li>
  207. <?php endif; ?>
  208. </ul>
  209. </div>
  210. <!-- End Social Header -->
  211. <?php endif; ?>
  212. </div>
  213. <!-- End Header Content -->
  214. </div>
  215. <!-- End Top Container 960 gs -->
  216. <div class="container_12">
  217. <!-- Begin Main Navigation -->
  218. <div class="grid_12 main-nav-wrapper">
  219. <?php wp_nav_menu(array('theme_location' => 'mainNav', 'depth' => 3, 'fallback_cb' => false, 'menu_class' => 'mainNav')); ?>
  220. </div>
  221. <!-- End Main Navigation -->
  222. </div>
  223. <div class="clear"></div>
  224. <div class="line-head"></div>
  225. <div class="clear"></div>
  226. <?php if(get_option('reedwan_show_spotlight') == 'On' && get_option('reedwan_spotlight_tags')): ?>
  227. <!-- Begin Spotlight -->
  228. <div class="side-corner">
  229. <div class="spotlight">
  230. <?php get_template_part('includes/spotlight'); ?>
  231. </div>
  232. </div>
  233. <!--End Spotlight -->
  234.  
  235.  
  236.  
  237. <?php endif; ?>
  238. <?php get_template_part('includes/full-featured'); ?>
  239. <div class="clear"></div>
  240. <!-- Begin Bottom Container 960 gs -->
  241. <div class="container_12 wrapper">
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250. <?php if(get_option('reedwan_page_style') == 'sidebar'): ?>
  251. <?php if(get_option('reedwan_sidebar_position') == 'left'): ?>
  252. <div class="left-sidebar grid_4">
  253. <?php get_sidebar(); ?>
  254. </div>
  255. <?php endif; ?>
  256. <div class="single-container page grid_8" >
  257. <div class="single-block">
  258. <div class="single-content">}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement