burntheedges

Header.php

Sep 5th, 2012
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  5. <title><?php
  6. global $page, $paged;
  7. wp_title( '|', true, 'right' );
  8. bloginfo( 'name' );
  9. $site_description = get_bloginfo( 'description', 'display' );
  10. if ( $site_description && ( is_home() || is_front_page() ) )
  11. echo " | $site_description";
  12. if ( $paged >= 2 || $page >= 2 )
  13. echo ' | ' . sprintf( __( 'Page %s', 'the_devil_theme' ), max( $paged, $page ) );
  14. ?></title>
  15.  
  16.  
  17.  
  18. <!-- METAS -->
  19. <meta name="keywords" content="<?php echo bloginfo( 'keywords' ); ?>" />
  20. <meta name="description" content="<?php echo bloginfo( 'description' ); ?>" />
  21. <meta name="author" content="<?php echo bloginfo( 'author' ); ?>" />
  22.  
  23. <!-- CSS -->
  24. <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/main.css" />
  25. <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/player/style.css" />
  26. <link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" />
  27. <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri();?>/css/nivo-slider.css" />
  28. <?php
  29. // Google Font
  30. $the_google_font = get_option('dcb_google_font');
  31. if($the_google_font == "enable") {
  32. ?>
  33. <link href='http://fonts.googleapis.com/css?family=<?php echo get_option('dcb_google_font_family_code'); ?>' rel='stylesheet' type='text/css'>
  34. <style type="text/css">
  35. .<?php echo get_option('dcb_google_font_title'); ?> .gfont{<?php echo stripslashes(get_option('dcb_google_font_family')).';'; ?> }
  36. </style>
  37. <?php } ?>
  38.  
  39.  
  40. <?php
  41. if(get_option('dcb_dynamic_color') !== ' '){
  42. include('custom_css.php');
  43. }
  44. else {
  45. ?>
  46. <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/default.css" />
  47. <?php
  48. }
  49. ?>
  50. <!--[if IE 7]>
  51. <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/ie7.css" />
  52. <![endif]-->
  53.  
  54. <!--[if IE 8]>
  55. <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/ie8.css" />
  56. <![endif]-->
  57.  
  58. <!--[if lt IE 9]>
  59. <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  60. <![endif]-->
  61.  
  62. <!-- JS -->
  63. <?php wp_head(); ?>
  64.  
  65.  
  66. <?php
  67. //
  68. if(get_option('dcb_slider_type') == "nivo" || get_option('dcb_slider_type') == "nivo960") {
  69. if(is_home()) {
  70. ?>
  71. <!-- Nivo Slider -->
  72. <script type="text/javascript">
  73. $j(function() {
  74. $j('#nivo_slider_plugin').nivoSlider({
  75. effect:'<?php echo get_option('dcb_nivo_effect');?>', //Specify sets like: 'fold,fade,sliceDown'
  76. slices:<?php echo get_option('dcb_nivo_slices');?>,
  77. animSpeed:<?php echo get_option('dcb_nivo_speed');?>,
  78. pauseTime:<?php echo get_option('dcb_nivo_pauseTime');?>, // How long each slide will show
  79. startSlide:<?php echo get_option('dcb_nivo_startSlide');?>, // Set starting Slide (0 index)
  80. boxCols: <?php echo get_option('dcb_nivo_box_cols');?>,
  81. boxRows: <?php echo get_option('dcb_nivo_box_rows');?>,
  82. directionNav:<?php echo get_option('dcb_nivo_dir');?>, //Next and Prev
  83. directionNavHide:<?php echo get_option('dcb_nivo_dirHide');?>, //Only show on hover
  84. controlNav:<?php echo get_option('dcb_nivo_paginate');?> //1,2,3...
  85. });
  86. });
  87. </script>
  88. <!-- Nivo Slider -->
  89. <?php
  90. }}
  91. ?>
  92. <?php
  93. //
  94. if(get_option('dcb_slider_type') == "accordion") {
  95. if(is_home()) {
  96. ?>
  97. <!-- Accordion Slider -->
  98. <script type="text/javascript" src="<?php echo get_template_directory_uri();?>/js/jquery.kwicks-1.5.1.js"></script>
  99. <script type="text/javascript">
  100. $j(function() {
  101. $j('#accordion-slider').kwicks({
  102. event : 'mouseenter',
  103. max : 880,
  104. easing: '<?php $accordion_effect = get_option('dcb_accordion_easing'); if($accordion_effect) { echo get_option('dcb_accordion_easing'); } else { echo 'jswing'; }?>',
  105. spacing : 1
  106. });
  107. });
  108. </script>
  109. <?php } } ?>
  110.  
  111. </head>
  112.  
  113. <body <?php
  114. $bg = "bg-".get_option('dcb_bg');
  115. $font = get_option('dcb_google_font_title');
  116. $font_text = get_option('dcb_text_font')."_text";
  117. $sliderbg = "sliderbg-".get_option('dcb_slider');
  118. $the_classes = $bg." ".$font." ".$font_text. " " .$sliderbg;
  119. body_class( $the_classes ); ?> id="top">
  120.  
  121. <!-- Top Bar -->
  122. <section id="top_bar">
  123. <!-- Content of Top Bar -->
  124. <div class="content">
  125.  
  126.  
  127. <!-- Top Navigation -->
  128. <nav id="top_navigation">
  129. <?php
  130. wp_nav_menu( array(
  131. 'menu' => '',
  132. 'menu_class' => '',
  133. 'container_class' => '',
  134. 'echo' => true,
  135. 'fallback_cb' => false,
  136. 'theme_location' => 'secondary',
  137. 'depth' => 1
  138. ) );
  139. ?>
  140. </nav>
  141. <!-- /Top Navigation -->
  142.  
  143. <?php
  144. // Login and subscribe buttons
  145. if(get_option('dcb_connect_login') == "enable") {
  146. ?>
  147. <!-- Login | Subscribe -->
  148. <div id="login_subscribe">
  149. <?php if ( is_user_logged_in() ) {
  150. ?>
  151. <a href="<?php echo esc_url( home_url( '/' ) ); ?>wp-admin/" class="color_button"><?php _e('Dashboard', 'the_devil_theme'); ?></a>
  152. <a href="<?php echo esc_url( home_url( '/' ) ); ?>wp-login.php?action=logout" class="grey_button"><?php _e('Sign Out', 'the_devil_theme'); ?></a>
  153. <?php
  154. } else {
  155. ?>
  156. <a href="<?php echo get_option('dcb_connect_login_logurl'); ?>" class="color_button"><?php echo get_option('dcb_connect_login_logtext'); ?></a>
  157. <a href="<?php echo get_option('dcb_connect_login_suburl'); ?>" class="grey_button"><?php echo get_option('dcb_connect_login_subtext'); ?></a>
  158. <?php
  159. }
  160. ?>
  161. </div>
  162. <!-- /Login | Subscribe -->
  163. <?php } ?>
  164.  
  165.  
  166.  
  167. </div>
  168. <!-- /Content of Top Bar -->
  169. </section>
  170. <!-- /Top Bar -->
  171.  
  172. <div id="header_wrap">
  173. <!-- HEADER -->
  174. <header id="header">
  175. <!-- Content of HEADER -->
  176. <div class="content">
  177.  
  178. <!-- Logo -->
  179. <hgroup id="logo">
  180.  
  181. <h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><span class="inv"><?php bloginfo( 'name' ); ?></span><img src="<?php echo get_option('dcb_top_logo');?>" alt="" /></a></h1>
  182.  
  183. </hgroup>
  184. <!-- /Logo -->
  185.  
  186. <?php
  187. // ADS
  188. if(get_option('dcb_advertising') == "enable") {
  189. ?>
  190. <!-- banner_ads -->
  191. <div class="banner_ads">
  192. <a href="<?php echo get_option('dcb_advertising_url'); ?>"><img src="<?php echo get_option('dcb_advertising_file'); ?>" alt="<?php echo get_option('dcb_advertising_title'); ?>" /></a>
  193. </div>
  194. <!-- /banner_ads -->
  195. <?php } ?>
  196. <?php
  197. // GOOGLE ADS
  198. if(get_option('dcb_advertising_google') == "enable") {
  199. ?>
  200. <!-- banner_ads -->
  201. <div class="banner_ads">
  202. <script type="text/javascript">
  203. <!--
  204. google_ad_client = "<?php echo get_option('dcb_advertising_google_client'); ?>";
  205. google_ad_slot = "<?php echo get_option('dcb_advertising_google_slot'); ?>";
  206. google_ad_width = 468;
  207. google_ad_height = 60;
  208. // -->
  209. </script>
  210. <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
  211. </div>
  212. <!-- /banner_ads -->
  213. <?php } ?>
  214.  
  215. <br class="clear" />
  216.  
  217. <!-- Navigation -->
  218. <nav id="navigation" role="navigation">
  219. <?php
  220. wp_nav_menu( array(
  221. 'menu' => '',
  222. 'menu_class' => '',
  223. 'container_class' => '',
  224. 'echo' => true,
  225. 'fallback_cb' => false,
  226. 'theme_location' => 'primary',
  227. 'depth' => 4
  228. ) );
  229. ?>
  230. </nav>
  231. <!-- /Navigation -->
  232.  
  233. <!-- Search Popup -->
  234. <div class="search_opener">
  235. <a href="#" id="magnify_open"><span class="inv"><?php _e('Open', 'the_devil_theme'); ?></span></a>
  236. <div class="search_tab">
  237. <a href="#" id="magnify_close"><span class="inv"><?php _e('Close', 'the_devil_theme'); ?></span></a>
  238. <form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="post">
  239. <input type="text" name="s" title="<?php _e('Hit enter to search...', 'the_devil_theme'); ?>" value="<?php _e('Hit enter to search...', 'the_devil_theme'); ?>" onFocus="if (this.value == '<?php _e('Hit enter to search...', 'the_devil_theme'); ?>') {this.value = '';}" onBlur="if (this.value == '') {this.value = '<?php _e('Hit enter to search...', 'the_devil_theme'); ?>';}" />
  240. </form>
  241. </div>
  242. </div>
  243. <!-- /Search Popup -->
  244.  
  245. <br class="clear" />
  246.  
  247. </div>
  248. <!-- /Content of HEADER -->
  249. </header>
  250. <!-- /HEADER -->
  251. </div>
RAW Paste Data