brasofilo

Dandelion Original - header.php

Nov 8th, 2011
165
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
  3. <head>
  4. <meta http-equiv="Content-Type"
  5.     content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  6. <title>
  7. <?php if (is_home()) {
  8.     echo bloginfo('name');
  9. } elseif (is_category()) {
  10.     echo __('Category &raquo; ', 'blank'); wp_title('&laquo; @ ', TRUE, 'right');
  11.     echo bloginfo('name');
  12. } elseif (is_tag()) {
  13.     echo __('Tag &raquo; ', 'blank'); wp_title('&laquo; @ ', TRUE, 'right');
  14.     echo bloginfo('name');
  15. } elseif (is_search()) {
  16.     echo __('Search results &raquo; ', 'blank');
  17.     echo the_search_query();
  18.     echo '&laquo; @ ';
  19.     echo bloginfo('name');
  20. } elseif (is_404()) {
  21.     echo '404 '; wp_title(' @ ', TRUE, 'right');
  22.     echo bloginfo('name');
  23. } else {
  24.     echo wp_title(' @ ', TRUE, 'right');
  25.     echo bloginfo('name');
  26. } ?>
  27. </title>
  28.  
  29. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS" href="<?php bloginfo('rss2_url'); ?>" />
  30. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  31. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
  32. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/nivo-slider.css" type="text/css" media="screen" charset="utf-8" />
  33. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/superfish.css" type="text/css" media="screen" charset="utf-8" />
  34. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  35. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/cssLoader.php" type="text/css" media="screen" charset="utf-8" />
  36.    
  37.    
  38. <?php wp_enqueue_script("jquery"); ?>
  39. <?php wp_head(); ?>
  40.  
  41. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/script/jquery.prettyPhoto.js"></script>
  42. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/script/jquery.tools.min.js"></script>
  43. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/script/script.js"></script>
  44.  
  45. <?php
  46. $enable_cufon=get_opt('_enable_cufon');
  47. if($enable_cufon=='on'){
  48. if(get_opt('_custom_cufon_font')!=''){
  49.     $font_file=get_opt('_custom_cufon_font');
  50. }else{
  51.     $font_file=get_template_directory_uri().'/script/fonts/'.get_opt('_cufon_font');
  52. }
  53. ?>
  54. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/script/cufon-yui.js"></script>
  55. <script type="text/javascript" src="<?php echo $font_file; ?>"></script>
  56. <?php
  57. }
  58. ?>
  59.  
  60. <script type="text/javascript">
  61. pexetoSite.enableCufon="<?php echo $enable_cufon; ?>";
  62. jQuery(document).ready(function($){
  63.     pexetoSite.initSite();
  64. });
  65. </script>
  66.  
  67. <?php if (is_page_template('template-portfolio.php')) {
  68. //load the scripts for the portfolio template
  69.     ?>
  70. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/script/portfolio-previewer.js"></script>
  71.  
  72. <?php } ?>
  73.  
  74. <?php if (is_page_template('template-portfolio-gallery.php')) {
  75. //load the scripts for the portfolio gallery template
  76.     ?>
  77. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/script/portfolio-setter.js"></script>
  78. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/script/jquery-easing.js"></script>
  79. <?php } ?>
  80.    
  81. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  82. <!-- enables nested comments in WP 2.7 -->
  83.  
  84.  
  85. <!--[if lte IE 6]>
  86. <link href="<?php echo get_template_directory_uri(); ?>/css/style_ie6.css" rel="stylesheet" type="text/css" />
  87.  <input type="hidden" value="<?php echo get_template_directory_uri(); ?>" id="baseurl" />
  88. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/script/supersleight.js"></script>
  89. <![endif]-->
  90.  
  91. <!--[if IE 7]>
  92. <link href="<?php echo get_template_directory_uri(); ?>/css/style_ie7.css" rel="stylesheet" type="text/css" />  
  93. <![endif]-->
  94.  
  95.  
  96. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  97.  
  98. </head>
  99. <?php $bodyclass=$enable_cufon=='on'?'class="cufon"':'';?>
  100. <body <?php echo $bodyclass; ?>>
  101. <div id="main-container">
  102.  
  103. <div class="center">
  104. <div id="site">
  105.   <div id="header" >
  106.    <div id="header-top">
  107. <div id="logo-container" class="center"><a href="<?php echo home_url(); ?>"></a></div>
  108. <div id="menu-container">
  109.       <div id="menu">
  110. <?php wp_nav_menu(array('theme_location' => 'pexeto_main_menu' )); ?>
  111.  
  112.  </div>
  113.      </div>
  114.     </div>
  115.  
RAW Paste Data