Advertisement
Guest User

header

a guest
Mar 8th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.55 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7 ]><html class="ie ie6" <?php language_attributes();?>> <![endif]-->
  3. <!--[if IE 7 ]><html class="ie ie7" <?php language_attributes();?>> <![endif]-->
  4. <!--[if IE 8 ]><html class="ie ie8" <?php language_attributes();?>> <![endif]-->
  5. <!--[if IE 9 ]><html class="ie ie9" <?php language_attributes();?>> <![endif]-->
  6. <!--[if (gt IE 9)|!(IE)]><!--><html <?php language_attributes();?>> <!--<![endif]-->
  7. <head>
  8. <title><?php if ( is_category() ) {
  9. echo __('Category Archive for &quot;', 'theme1845'); single_cat_title(); echo __('&quot; | ', 'theme1845'); bloginfo( 'name' );
  10. } elseif ( is_tag() ) {
  11. echo __('Tag Archive for &quot;', 'theme1845'); single_tag_title(); echo __('&quot; | ', 'theme1845'); bloginfo( 'name' );
  12. } elseif ( is_archive() ) {
  13. wp_title(''); echo __(' Archive | ', 'theme1845'); bloginfo( 'name' );
  14. } elseif ( is_search() ) {
  15. echo __('Search for &quot;', 'theme1845').wp_specialchars($s).__('&quot; | ', 'theme1845'); bloginfo( 'name' );
  16. } elseif ( is_home() || is_front_page()) {
  17. bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );
  18. } elseif ( is_404() ) {
  19. echo __('Error 404 Not Found | ', 'theme1845'); bloginfo( 'name' );
  20. } elseif ( is_single() ) {
  21. wp_title('');
  22. } else {
  23. echo wp_title( ' | ', false, right ); bloginfo( 'name' );
  24. } ?></title>
  25. <meta name="description" content="<?php wp_title(); echo ' | '; bloginfo( 'description' ); ?>" />
  26. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  27. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  28. <link rel="profile" href="http://gmpg.org/xfn/11" />
  29. <?php if(of_get_option('favicon') != ''){ ?>
  30. <link rel="icon" href="<?php echo of_get_option('favicon', "" ); ?>" type="image/x-icon" />
  31. <?php } else { ?>
  32. <link rel="icon" href="<?php bloginfo( 'template_url' ); ?>/favicon.ico" type="image/x-icon" />
  33. <?php } ?>
  34. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  35. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'rss2_url' ); ?>" />
  36. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'atom_url' ); ?>" />
  37. <?php /* The HTML5 Shim is required for older browsers, mainly older versions IE */ ?>
  38. <!--[if lt IE 8]>
  39. <div style=' clear: both; text-align:center; position: relative;'>
  40. <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" alt="" /></a>
  41. </div>
  42. <![endif]-->
  43. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/normalize.css" />
  44. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  45. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/prettyPhoto.css" />
  46. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/cameraslideshow.css" />
  47. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/skeleton.css" />
  48. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/touchTouch.css" />
  49. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/320.css" />
  50. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/480.css" />
  51. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/768.css" />
  52. <!--[if lt IE 9]>
  53. <link rel="stylesheet" href="<?php bloginfo( 'template_url' ); ?>/css/ie.css">
  54. <![endif]-->
  55. <?php
  56. /* We add some JavaScript to pages with the comment form
  57. * to support sites with threaded comments (when in use).
  58. */
  59. if ( is_singular() && get_option( 'thread_comments' ) )
  60. wp_enqueue_script( 'comment-reply' );
  61.  
  62. /* Always have wp_head() just before the closing </head>
  63. * tag of your theme, or you will break many plugins, which
  64. * generally use this hook to add elements to <head> such
  65. * as styles, scripts, and meta tags.
  66. */
  67. wp_head();
  68. ?>
  69. <!--[if lt IE 9]>
  70. <style type="text/css">
  71. .border {
  72. behavior:url(<?php bloginfo('stylesheet_directory'); ?>/PIE.php)
  73. }
  74. </style>
  75. <![endif]-->
  76. <!--[if (gt IE 9)|!(IE)]><!-->
  77. <script src="<?php bloginfo( 'template_url' ); ?>/js/jquery.mobile.customized.min.js" type="text/javascript"></script>
  78. <!--<![endif]-->
  79.  
  80. <script type="text/javascript">
  81. // initialise plugins
  82. jQuery(function(){
  83. // main navigation init
  84. jQuery('ul.sf-menu').superfish({
  85. delay: <?php echo of_get_option('sf_delay'); ?>, // one second delay on mouseout
  86. animation: {opacity:'<?php echo of_get_option('sf_f_animation'); ?>'<?php if (of_get_option('sf_sl_animation')=='show') { ?>,height:'<?php echo of_get_option('sf_sl_animation'); ?>'<?php } ?>}, // fade-in and slide-down animation
  87. speed: '<?php echo of_get_option('sf_speed'); ?>', // faster animation speed
  88. autoArrows: <?php echo of_get_option('sf_arrows'); ?>, // generation of arrow mark-up (for submenu)
  89. dropShadows: false
  90. });
  91.  
  92. // prettyphoto init
  93. jQuery("a[rel^='prettyPhoto']").prettyPhoto({
  94. animation_speed:'normal',
  95. slideshow:5000,
  96. autoplay_slideshow: false,
  97. overlay_gallery: true
  98. });
  99.  
  100. // Initialize the gallery
  101. jQuery("#gallery .touch-item").touchTouch();
  102.  
  103.  
  104. });
  105.  
  106. // Init for audiojs
  107. audiojs.events.ready(function() {
  108. var as = audiojs.createAll();
  109. });
  110.  
  111. // Init for si.files
  112. SI.Files.stylizeAll();
  113. $(function(){
  114. $('.sf-menu li li, .sf-menu li li li').append('<span class="bg-submenu"></span>');
  115. $('.recent-posts.team li:nth-child(4n), .latestpost li:nth-child(4n), .related-posts li:nth-child(4n)').addClass('nomargin');
  116. });
  117. </script>
  118.  
  119.  
  120. <!--[if (gt IE 9)|!(IE)]><!-->
  121. <script type="text/javascript">
  122. jQuery(function(){
  123. jQuery('.sf-menu').mobileMenu();
  124. })
  125. </script>
  126. <!--<![endif]-->
  127.  
  128.  
  129.  
  130. <!-- Custom CSS -->
  131. <?php if(of_get_option('custom_css') != ''){?>
  132. <style type="text/css">
  133. <?php echo of_get_option('custom_css' ) ?>
  134. </style>
  135. <?php }?>
  136.  
  137.  
  138.  
  139.  
  140. <style type="text/css">
  141. <?php $background = of_get_option('body_background');
  142. if ($background != '') {
  143. if ($background['image'] != '') {
  144. echo 'body { background-image:url('.$background['image']. '); background-repeat:'.$background['repeat'].'; background-position:'.$background['position'].'; background-attachment:'.$background['attachment'].'; }';
  145. }
  146. if($background['color'] != '') {
  147. echo 'body { background-color:'.$background['color']. '}';
  148. }
  149. };
  150. ?>
  151.  
  152. <?php $header_styling = of_get_option('header_color');
  153. if($header_styling != '') {
  154. echo '#header {background-color:'.$header_styling.'}';
  155. }
  156. ?>
  157.  
  158. <?php $links_styling = of_get_option('links_color');
  159. if($links_styling) {
  160. echo 'a{color:'.$links_styling.'}';
  161. echo '.button {background:'.$links_styling.'}';
  162. }
  163. ?>
  164.  
  165. </style>
  166. </head>
  167.  
  168. <body <?php body_class(); ?>>
  169.  
  170. <div id="main"><!-- this encompasses the entire Web site -->
  171. <div class="bg">
  172. <div class="container_24 clearfix">
  173. <div class="grid_24">
  174. <header id="header">
  175. <div class="row-menu">
  176. <div class="clearfix">
  177. <nav class="primary">
  178. <?php wp_nav_menu( array(
  179. 'container' => 'ul',
  180. 'menu_class' => 'sf-menu',
  181. 'menu_id' => 'topnav',
  182. 'depth' => 0,
  183. 'theme_location' => 'header_menu'
  184. ));
  185. ?>
  186. </nav><!--.primary-->
  187. </div>
  188. </div>
  189. <div class="row-logo clearfix">
  190. <div class="logo">
  191. <p class="tagline"><?php bloginfo('description'); ?></p>
  192. <?php if(of_get_option('logo_type') == 'text_logo'){?>
  193. <?php if( is_front_page() || is_home() || is_404() ) { ?>
  194. <h1><a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h1>
  195. <?php } else { ?>
  196. <h2><a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h2>
  197. <?php } ?>
  198. <?php } else { ?>
  199. <?php if(of_get_option('logo_url') != ''){ ?>
  200. <a href="<?php bloginfo('url'); ?>/" id="logo"><img src="<?php echo of_get_option('logo_url', "" ); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('description'); ?>"></a>
  201. <?php } else { ?>
  202. <a href="<?php bloginfo('url'); ?>/" id="logo"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('description'); ?>"></a>
  203. <?php } ?>
  204. <?php }?>
  205. </div>
  206. <?php if ( of_get_option('g_search_box_id') == 'yes') { ?>
  207. <div id="top-search">
  208. <form method="get" action="<?php echo get_option('home'); ?>/">
  209. <div class="bg-form"><input type="text" name="s" class="input-search"/><input type="submit" value="<?php _e('search', 'theme1845'); ?>" id="submit"></div>
  210. </form>
  211. </div>
  212. <?php } ?>
  213. </div>
  214. </header>
  215. </div><!--.grid_24-->
  216. <?php if( is_front_page() ) { ?>
  217. <section id="slider-wrapper">
  218. <div class="slider-container">
  219. <?php include_once(TEMPLATEPATH . '/slider.php'); ?>
  220. </div>
  221. </section><!--#slider-->
  222. <?php } ?>
  223. </div><!--.container-->
  224. <div class="primary_content_wrap">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement