Guest User

Untitled

a guest
Feb 21st, 2012
85
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.  
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <meta name="google-site-verification" content="8TLGdAqCKb66cAGMdM3WgOWEE8PoWumUv7MNt2XD8DM" />
  7. <meta name="msvalidate.01" content="1DA9E22B8C0AE64CA129D40CF7402356" />
  8. <title><?php wp_title(''); ?></title>
  9.  
  10. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
  11. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/js/colorbox/colorbox.css" type="text/css" />
  12.  
  13. <?php if(get_option('pyre_feedburner')): ?>
  14. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php echo get_option('pyre_feedburner'); ?>" />
  15. <?php endif; ?>
  16.  
  17. <?php if(get_option('pyre_favicon')): ?>
  18. <link rel="shortcut icon" href="<?php echo get_option('pyre_favicon'); ?>" />
  19. <?php endif; ?>
  20.  
  21. <?php if(is_singular()) wp_enqueue_script('comment-reply'); ?>
  22. <?php wp_deregister_script('jquery'); ?>
  23. <?php wp_enqueue_script('jquery', get_template_directory_uri() . '/js/jquery-1.6.4.min.js'); ?>
  24. <?php wp_enqueue_script('jtwt', get_template_directory_uri() . '/js/jtwt.js'); ?>
  25. <?php wp_enqueue_script('jquery.nivo.slider', get_template_directory_uri() . '/js/jquery.nivo.slider.pack.js'); ?>
  26. <?php wp_enqueue_script('jquery.colorbox', get_bloginfo('template_directory'). '/js/colorbox/jquery.colorbox-min.js'); ?>
  27. <?php wp_head(); ?>
  28.  
  29. <?php if(get_option('pyre_custom_css')): ?>
  30. <?php echo '<style type="text/css">'; ?>
  31. <?php echo get_option('pyre_custom_css'); ?>
  32. <?php echo '</style>'; ?>
  33. <?php endif; ?>
  34.  
  35. <?php if(get_option('pyre_custom_js')): ?>
  36. <?php echo '<script type="text/javascript">'; ?>
  37. <?php echo get_option('pyre_custom_js'); ?>
  38. <?php echo '</script>'; ?>
  39. <?php endif; ?>
  40.  
  41. <?php echo "<style type='text/css'>"; ?>
  42. body { background-color:#<?php echo get_option('pyre_bg_color'); ?>; }
  43. #header-top-wrapper { background-color:#<?php echo get_option('pyre_top_nav_color'); ?>; }
  44. #navigation-wrapper { background-color:#<?php echo get_option('pyre_main_nav_color'); ?>; }
  45. .item .item-meta .category a, .post-content a, #sidebar .widget-item .comments a, .post-meta .category a, #post-header h1 a { color: #<?php echo get_option('pyre_link_color'); ?>; }
  46. .item-thumb .comments, .nivo-caption .category, .post-comment-box { background-color: #<?php echo get_option('pyre_link_color'); ?>; }
  47. </style>
  48.  
  49. <script type="text/javascript">
  50. jQuery(document).ready(function($) {
  51. (function ($) {
  52. // VERTICALLY ALIGN FUNCTION
  53. $.fn.vAlign = function() {
  54. return this.each(function(i){
  55. var ah = $(this).height();
  56. var ph = $(this).parent().height();
  57. var mh = Math.ceil((ph-ah) / 2);
  58. $(this).css('margin-top', mh);
  59. });
  60. };
  61. })(jQuery);
  62.  
  63. $('#logo').vAlign();
  64.  
  65. $('.slider-item').nivoSlider({
  66. directionNav: false,
  67. effect: '<?php echo get_option('pyre_slider_effect'); ?>',
  68. pauseTime: '<?php echo get_option('pyre_slider_speed'); ?>',
  69. captionOpacity: 1
  70. });
  71.  
  72. // Tabs
  73. //When page loads...
  74. $('.tabs-wrapper').each(function() {
  75. $(this).find(".tab_content").hide(); //Hide all content
  76. $(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab
  77. $(this).find(".tab_content:first").show(); //Show first tab content
  78. });
  79.  
  80. //On Click Event
  81. $("ul.tabs li").click(function(e) {
  82. $(this).parents('.tabs-wrapper').find("ul.tabs li").removeClass("active"); //Remove any "active" class
  83. $(this).addClass("active"); //Add "active" class to selected tab
  84. $(this).parents('.tabs-wrapper').find(".tab_content").hide(); //Hide all tab content
  85.  
  86. var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
  87. $(this).parents('.tabs-wrapper').find(activeTab).fadeIn(); //Fade in the active ID content
  88.  
  89. e.preventDefault();
  90. });
  91.  
  92. $("ul.tabs li a").click(function(e) {
  93. e.preventDefault();
  94. })
  95.  
  96. $(".toggle-content").hide();
  97.  
  98. $("h5.toggle").toggle(function(){
  99. $(this).addClass("active");
  100. }, function () {
  101. $(this).removeClass("active");
  102. });
  103.  
  104. $("h5.toggle").click(function(){
  105. $(this).next(".toggle-content").slideToggle();
  106. });
  107.  
  108. // Add colorbox to gallery
  109. $('.gallery').each(function(index, obj){
  110. var galleryid = Math.floor(Math.random()*10000);
  111. $(obj).find('a').colorbox({rel:galleryid, maxWidth:'95%', maxHeight:'95%'});
  112. });
  113. $("a.lightbox").colorbox({maxWidth:'95%', maxHeight:'95%'});
  114.  
  115. // Contact form
  116. $('#contactForm').live('submit', function(e) {
  117. var form = $(this);
  118. var name = $(this).find('[name=pyre_name]').val();
  119. var email = $(this).find('[name=pyre_email]').val();
  120. var message = $(this).find('[name=pyre_message]').val();
  121.  
  122. if(name == '') {
  123. $(this).find('[name=pyre_name]').addClass('error');
  124. $(this).find('[name=pyre_name]').parent().find('.error_msg').fadeIn();
  125.  
  126. return false;
  127. } else {
  128. $(this).find('[name=pyre_name]').removeClass('error');
  129. $(this).find('[name=pyre_name]').parent().find('.error_msg').fadeOut();
  130. }
  131.  
  132. var email_regex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
  133. if(email == '' || !email_regex.test(email)) {
  134. $(this).find('[name=pyre_email]').addClass('error');
  135. $(this).find('[name=pyre_email]').parent().find('.error_msg').fadeIn();
  136.  
  137. return false;
  138. } else {
  139. $(this).find('[name=pyre_email]').removeClass('error');
  140. $(this).find('[name=pyre_email]').parent().find('.error_msg').fadeOut();
  141. }
  142.  
  143. if(message == '') {
  144. $(this).find('[name=pyre_message]').addClass('error');
  145. $(this).find('[name=pyre_message]').parent().find('.error_msg').fadeIn();
  146.  
  147. return false;
  148. } else {
  149. $(this).find('[name=pyre_message]').removeClass('error');
  150. $(this).find('[name=pyre_message]').parent().find('.error_msg').fadeOut();
  151. }
  152.  
  153. $.ajax({
  154. url: '<?php echo admin_url('admin-ajax.php'); ?>',
  155. data: jQuery(form).serialize()+'&action=pyre_contact_form',
  156. type: 'POST',
  157. success: function() {
  158. $('.email_sent').fadeIn(400).delay(5000).fadeOut(400);
  159. }
  160. });
  161.  
  162. e.preventDefault();
  163. });
  164. });
  165. </script>
  166.  
  167. </head>
  168.  
  169. <body <?php body_class($class); ?>>
  170.  
  171. <?php
  172. $top_nav = wp_nav_menu(array('theme_location' => 'top_navigation', 'depth' => 3, 'container' => false, 'fallback_cb' => false, 'echo' => false));
  173. if($top_nav):
  174. ?>
  175. <div id="header-top-wrapper">
  176.  
  177. <div id="header-top">
  178.  
  179. <?php echo $top_nav; ?>
  180.  
  181. </div>
  182.  
  183. </div>
  184. <?php endif; ?>
  185.  
  186. <div id="wrapper">
  187.  
  188. <div id="header">
  189.  
  190. <div id="logo">
  191. <?php
  192. if(get_option('pyre_logo')) {
  193. $logo = get_option('pyre_logo');
  194. } else {
  195. $logo = get_template_directory_uri() . '/images/logo2.png';
  196. }
  197. ?>
  198. <a href='<?php bloginfo('wpurl'); ?>'><img src="<?php echo $logo; ?>" alt="<?php bloginfo('name'); ?>" /></a>
  199. </div>
  200.  
  201. <?php if(get_option('pyre_header_banner')): ?>
  202. <div id="header-banner">
  203. <?php echo get_option('pyre_header_banner'); ?>
  204. </div>
  205. <?php endif; ?>
  206.  
  207. </div>
  208.  
  209. <div id="navigation-wrapper">
  210.  
  211. <div id='navigation'>
  212. <?php wp_nav_menu(array('theme_location' => 'main_navigation', 'depth' => 3, 'container' => false)); ?>
  213. </div>
  214.  
  215. </div>
RAW Paste Data