tribulant

header.php

Sep 27th, 2011
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.37 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Header for our theme.
  4.  *
  5.  * Displays all of the <head> section and everything up till <div id="main">
  6.  *
  7.  * @package WordPress
  8.  * @subpackage Twenty_Ten
  9.  * @since Twenty Ten 1.0
  10.  */
  11. ?><!DOCTYPE html>
  12. <html <?php language_attributes(); ?>>
  13. <head>
  14. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  15. <title><?php
  16.     /*
  17.      * Print the <title> tag based on what is being viewed.
  18.      */
  19.     global $page, $paged;
  20.  
  21.     wp_title( '|', true, 'right' );
  22.  
  23.     // Add the blog name.
  24.     bloginfo( 'name' );
  25.  
  26.     // Add the blog description for the home/front page.
  27.     $site_description = get_bloginfo( 'description', 'display' );
  28.     if ( $site_description && ( is_home() || is_front_page() ) )
  29.         echo " | $site_description";
  30.  
  31.     // Add a page number if necessary:
  32.     if ( $paged >= 2 || $page >= 2 )
  33.         echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
  34.  
  35.     ?></title>
  36. <link rel="profile" href="http://gmpg.org/xfn/11" />
  37. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  38. <?php if (qtrans_getLanguage() == 'en') { ?><link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/english.css" /><?php } ?>
  39.  
  40. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  41.  
  42. <link rel="icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" type="image/x-icon">
  43. <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" type="image/x-icon">
  44. <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
  45. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/flash/flash.js"></script>
  46.  
  47. <?php
  48.     /* We add some JavaScript to pages with the comment form
  49.      * to support sites with threaded comments (when in use).
  50.      */
  51.     if ( is_singular() && get_option( 'thread_comments' ) )
  52.         wp_enqueue_script( 'comment-reply' );
  53.  
  54.     /* Always have wp_head() just before the closing </head>
  55.      * tag of your theme, or you will break many plugins, which
  56.      * generally use this hook to add elements to <head> such
  57.      * as styles, scripts, and meta tags.
  58.      */
  59.     wp_head();
  60. ?>
  61.  
  62. <?php if (!is_front_page()) { ?>
  63. <link type="text/css" href="<?php bloginfo('template_directory'); ?>/scrollbar/jquery.jscrollpane.css" rel="stylesheet" media="all" />
  64. <?php /*<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
  65. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scrollbar/jquery.mousewheel.js"></script>
  66. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scrollbar/jquery.jscrollpane.min.js"></script>*/ ?>
  67.  
  68. <?php
  69.  
  70. wp_enqueue_script('jquery');
  71. wp_enqueue_script('jquery-mousewheel', get_bloginfo('template_directory') . '/scrollbar/jquery.mousewheel.js', array('jquery'), false, true);
  72. wp_enqueue_script('jquery-jscrollpane', get_bloginfo('template_directory') . '/scrollbar/jquery.jscrollpane.min.js', array('jquery'), false, true);
  73.  
  74. ?>
  75.  
  76. <script type="text/javascript" id="sourcecode">
  77.     jQuery(function()
  78.     {
  79.         jQuery('.scroll-pane').jScrollPane();
  80.     });
  81. </script>
  82. <?php } ?>
  83.  
  84. <?php if (is_front_page()) { ?>
  85. <!--<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/galleryHome/js/jquery-1.3.2.min.js"></script>-->
  86. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/galleryHome/js/jquery.easing.1.3.js"></script>
  87. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/galleryHome/js/jquery-galleryview-1.1/jquery.galleryview-1.1.js"></script>
  88. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/galleryHome/js/jquery-galleryview-1.1/jquery.timers-1.1.2.js"></script>   
  89. <script type="text/javascript">
  90.     jQuery(document).ready(function(){
  91.         jQuery('#photos').galleryView({
  92.             filmstrip_size: 3,
  93.             frame_width: 138,
  94.             frame_height: 85,
  95.             background_color: 'transparent',
  96.             nav_theme: 'chianticlassico',
  97.             border: 'none',
  98.             show_captions:false,
  99.             caption_text_color: 'black'
  100.         });
  101.     });
  102. </script>
  103. <?php } ?>
  104.  
  105. </head>
  106.  
  107. <body <?php body_class(); ?>>
  108.  
  109. <div id="wrapper" class="hfeed">
  110.     <div id="header">
  111.         <div id="masthead">
  112.             <div id="branding" role="banner">
  113.                 <?php $heading_tag = ( is_front_page() ) ? 'h1' : 'div'; ?>
  114.                 <<?php echo $heading_tag; ?> id="site-title">
  115.                     <span>
  116.                         <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php bloginfo('template_directory'); ?>/images/chianticlassico/logo-chianti-classico-txt.png" alt="" width="498" height="25" />
  117.                         </a>
  118.                         <!--<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>-->
  119.                     </span>
  120.                 </<?php echo $heading_tag; ?>>
  121.             </div><!-- #branding -->
  122.             <div id="search-header">
  123.                 <div id="form-header"><?php get_search_form(); ?></div>
  124.             </div>
  125.             <div id="lang-selection"><?php echo qtrans_generateLanguageSelectCode('image'); ?></div>
  126.             <div id="access" role="navigation" <?php if (is_front_page()) {?>class="accessHome"<?php } ?>>
  127.               <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
  128.                 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
  129.                 <?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
  130.                 <div id="menuPrimo"><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primo' ) ); ?></div>
  131.                 <a href="http://shop.chianticlassico.com/" title="Shop on-line"><img src="<?php bloginfo('template_directory'); ?>/images/chianticlassico/shop-icon.gif" alt="Shop on-line" width="45" height="26" id="icoShop" /></a>
  132.                 <div id="menuSecondo"><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'secondo' ) ); ?></div>
  133.             </div><!-- #access -->
  134.         </div><!-- #masthead -->
  135.     </div><!-- #header -->
  136.  
  137.     <div id="main" <?php if (!is_front_page()) {?>class="mainPagina"<?php } ?>>
  138.  
  139.  
Advertisement
Add Comment
Please, Sign In to add comment