This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

header

By: a guest on Sep 5th, 2012  |  syntax: None  |  size: 4.00 KB  |  views: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3.  * The Header for our theme.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Paradise
  7.  */
  8. ?><!DOCTYPE html>
  9. <html <?php language_attributes(); ?>>
  10. <head>
  11. <meta http-equiv="content-type" content="text/html;charset=<?php bloginfo( 'charset' ); ?>" />
  12. <link rel="shortcut icon" href="<?php theme_favico(); ?>" />
  13. <title><?php
  14.         /*
  15.          * Print the <title> tag based on what is being viewed.
  16.          */
  17.         global $page, $paged;
  18.  
  19.         wp_title( '|', true, 'right' );
  20.  
  21.         // Add the blog name.
  22.         bloginfo( 'name' );
  23.  
  24.         // Add the blog description for the home/front page.
  25.         $site_description = get_bloginfo( 'description', 'display' );
  26.         if ( $site_description && ( is_home() || is_front_page() ) )
  27.                 echo " | $site_description";
  28.  
  29.         // Add a page number if necessary:
  30.         if ( $paged >= 2 || $page >= 2 )
  31.                 echo ' | ' . sprintf( __( 'Page %s', TEMPLATENAME ), max( $paged, $page ) );
  32.  
  33.         ?></title>
  34.  
  35.         <?php enqueue_color_styles();   ?>
  36.         <?php wp_enqueue_style('css_ddsmoothmenu'); ?>
  37.         <?php wp_enqueue_style('css_tipsy'); ?>
  38.         <?php wp_enqueue_style('css_custom'); ?>
  39.  
  40.         <?php slider_enqueue(); ?>
  41.  
  42.         <?php if (get_option('show_switcher')): ?>
  43.                 <?php wp_enqueue_script('js_style_switcher'); ?>
  44.         <?php endif; ?>
  45.         <?php wp_enqueue_script('js_watermarkinput'); ?>
  46.         <?php wp_enqueue_script('js_ddsmoothmenu'); ?>
  47.         <?php wp_enqueue_script('jquery-color'); ?>
  48.         <?php wp_enqueue_script('jquery-ui-tabs'); ?>
  49.         <?php wp_enqueue_script('js_tipsy'); ?>
  50.         <?php wp_enqueue_script('js_localscrol'); ?>
  51.         <?php wp_enqueue_script('js_autoAlign'); ?>
  52.         <?php wp_enqueue_script('js_preloader'); ?>
  53.         <?php wp_enqueue_script('js_common'); ?>
  54. <?php
  55.         if (is_portfolio() || is_tax('gallery')) {
  56.                 wp_enqueue_style('css_pretty');
  57.                 wp_enqueue_script('js_pretty');
  58.         }
  59.  ?>
  60. <?php
  61.         if (is_tax('gallery')) {
  62.                 wp_enqueue_script('js_quicksand');
  63.                 wp_enqueue_script('js_easing');
  64.         }
  65.  ?>
  66.  
  67. <?php
  68.         /* We add some JavaScript to pages with the comment form
  69.          * to support sites with threaded comments (when in use).
  70.          */
  71.         if ( is_singular() && get_option( 'thread_comments' ) )
  72.                 wp_enqueue_script( 'comment-reply' );
  73.  
  74.         /* Always have wp_head() just before the closing </head>
  75.          * tag of your theme, or you will break many plugins, which
  76.          * generally use this hook to add elements to <head> such
  77.          * as styles, scripts, and meta tags.
  78.          */
  79.         wp_head();
  80. ?>
  81.         <?php theme_color_switcher('init'); ?>
  82.  
  83.         <?php slider_init(); ?>
  84.  
  85.         <?php if (get_option('ga_use')) echo get_option('ga_code'); ?>
  86. </head>
  87. <body<?php if (!is_front_page() || (is_front_page() && get_option('slider_type') == 'disable')): ?> id="sp"<?php endif; ?>>
  88. <?php theme_color_switcher('render'); ?>
  89. <!-- Begin Container -->
  90. <div class="container">
  91.         <!-- Begin Header -->
  92.         <div id="header">
  93.                 <!-- Site Logo -->
  94.                 <a href="<?php echo home_url('/'); ?>" class="logo">
  95.                         <img src="<?php theme_logo(); ?>" alt="" />
  96.                 </a>
  97.                 <!-- SearchBox -->
  98.                 <?php get_search_form(); ?>
  99.                 <div class="clear"></div>
  100.         </div>
  101.         <!-- End Header -->
  102.         <!-- Start Main Nav -->
  103.         <div id="MainNav">
  104.                 <a href="<?php echo home_url('/'); ?>" class="home_btn"><img src="<?php echo get_bloginfo('template_url').'/images/icon_home.gif'; ?>" width="17" height="19" alt="<?php _e('Home', TEMPLATENAME); ?>" /></a>
  105.                 <div id="menu">
  106.                 <?php wp_nav_menu(
  107.                         array(
  108.                                 'container' => false,
  109.                                 'menu_class' => 'ddsmoothmenu',
  110.                                 'theme_location' => 'primary',
  111.                         )
  112.                 ); ?>
  113.                 </div>
  114.                 <?php get_social_links(); ?>
  115.                 <div class="clear"></div>
  116.         </div>
  117.         <!-- End Main Nav -->
  118.         <?php if (is_front_page()): ?>
  119.         <?php theme_slider_render(); ?>
  120.         <?php if (get_option('use_feature_home_box')): ?>
  121.         <!-- Start Featured Home Page Line -->
  122.         <div id="featured_line">
  123.                 <?php echo do_shortcode(get_option('feature_home_box')); ?>
  124.                 <div class="clear"></div>
  125.         </div>
  126.         <!-- End Featured Home Page Line -->
  127.         <?php endif; ?>
  128.         <?php else: ?>
  129.         <!-- Start Breadcrumbs -->
  130.         <?php if (function_exists('theme_breadcrumbs') && get_option('use_breadcrumbs', true)) theme_breadcrumbs(); ?>
  131.         <!-- End Breadcrumbs -->
  132.         <?php endif; ?>
clone this paste RAW Paste Data