Advertisement
Guest User

Header

a guest
Jul 4th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 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.  
  7. <title><?php bloginfo('name'); ?> <?php wp_title(' - ', true, 'left'); ?></title>
  8.  
  9. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
  10. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/js/colorbox/colorbox.css" type="text/css" />
  11.  
  12. <?php if(get_option('pyre_feedburner')): ?>
  13. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php echo get_option('pyre_feedburner'); ?>" />
  14. <?php endif; ?>
  15.  
  16. <?php if(get_option('pyre_favicon')): ?>
  17. <link rel="shortcut icon" href="<?php echo get_option('pyre_favicon'); ?>" />
  18. <?php endif; ?>
  19.  
  20. <?php wp_enqueue_script('jquery'); ?>
  21. <?php wp_enqueue_script('jCarouselLite', get_bloginfo('template_directory'). '/js/jcarousellite_1.0.1.pack.js'); ?>
  22. <?php wp_enqueue_script('nivo', get_bloginfo('template_directory'). '/js/jquery.nivo.slider.pack.js'); ?>
  23. <?php wp_enqueue_script('jquery.colorbox', get_bloginfo('template_directory'). '/js/colorbox/jquery.colorbox-min.js'); ?>
  24. <?php wp_enqueue_script('AvenueTheme', get_bloginfo('template_directory'). '/js/scripts.js'); ?>
  25. <?php
  26. wp_localize_script('AvenueTheme', 'AvenueVars', array(
  27. 'ajaxUrl' => admin_url('admin-ajax.php'),
  28. ));
  29. ?>
  30. <?php if(is_singular()) { wp_enqueue_script('comment-reply'); } ?>
  31. <?php wp_head(); ?>
  32.  
  33. <script type='text/javascript'>
  34. jQuery(window).load(function() {
  35. // Implementation of Nivo Slider
  36. jQuery('#slider').nivoSlider({
  37. effect: '<?php echo get_option('pyre_slider_effect'); ?>',
  38. pauseTime: '<?php echo get_option('pyre_slider_speed'); ?>',
  39. controlNavThumbs: true,
  40. controlNavThumbsFromRel: true,
  41. directionNav: false,
  42. directionNavHide: false,
  43. captionOpacity: false
  44. });
  45.  
  46. jQuery('.nivo-control').each(function() {
  47. jQuery('<div class="overlay">').appendTo(this);
  48. });
  49. });
  50. </script>
  51.  
  52. <style type='text/css'>
  53. body { background:#<?php echo get_option('pyre_bg_color'); ?> url('<?php bloginfo('template_url'); ?>/images/patterns/<?php echo get_option('pyre_pattern'); ?>.png') repeat; }
  54. .arrows { color:#<?php echo get_option('pyre_link_color'); ?>; }
  55. .block-arrows, .block-arrows a { color:#<?php echo get_option('pyre_link_color'); ?>; }
  56. .meta-arrow { font-size:16px; color:#<?php echo get_option('pyre_link_color'); ?>; }
  57. .tweets a, .textwidget a { color:#<?php echo get_option('pyre_link_color'); ?>; }
  58. </style>
  59.  
  60. </head>
  61.  
  62. <body <?php body_class($class); ?>>
  63. <a name='top'></a>
  64.  
  65. <!-- BEGIN WRAPPER -->
  66. <div id="wrapper">
  67.  
  68. <!-- BEGIN HEADER-TOP -->
  69. <?php wp_nav_menu(array('theme_location' => 'topNav', 'depth' => 3, 'fallback_cb' => false, 'menu_class' => 'topNav')); ?>
  70. <!-- END HEADER-TOP -->
  71.  
  72. <!-- BEGIN WRAPPER-CONTENT -->
  73. <div id="wrapper-content">
  74.  
  75. <!-- BEGIN HEADER -->
  76. <div id="header">
  77.  
  78. <!-- BEGIN HEADER-MIDDLE -->
  79. <div id="header-middle">
  80.  
  81. <div id="logo">
  82. <?php
  83. if(get_option('pyre_logo')) {
  84. $logo = get_option('pyre_logo');
  85. } else {
  86. if(get_option('pyre_skins')) {
  87. $color = explode('_', get_option('pyre_skins'));
  88. $logo = get_bloginfo('template_directory') . '/css/skins/images/' . $color[1] . '_logo.png';
  89. } else {
  90. $logo = get_bloginfo('template_directory') . '/images/logo4.png';
  91. }
  92. }
  93. ?>
  94. <a href='<?php bloginfo('wpurl'); ?>'><img src="<?php echo $logo; ?>" alt="<?php bloginfo('name'); ?>" /></a>
  95. </div>
  96.  
  97. <?php if(get_option('pyre_header_banner')): ?>
  98. <div id="header-banner">
  99. <?php echo get_option('pyre_header_banner'); ?>
  100. </div>
  101. <?php endif; ?>
  102.  
  103. </div>
  104. <!-- END HEADER-MIDDLE -->
  105.  
  106. <!-- BEGIN WRAPPER-NAVIGATION -->
  107. <div id="wrapper-navigation">
  108.  
  109. <div id="navigation">
  110. <?php wp_nav_menu(array('theme_location' => 'mainNav', 'depth' => 3)); ?>
  111. </div>
  112.  
  113. </div>
  114. <!-- END WRAPPER-NAVIGATION -->
  115.  
  116. </div>
  117. <!-- END HEADER -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement