Guest User

Untitled

a guest
Mar 27th, 2012
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. <?php global $default_colorscheme, $shortname, $category_menu, $exclude_pages, $exclude_cats, $hide, $strdepth, $strdepth2, $page_menu; ?>
  2. <?php $colorSchemePath = '';
  3. $colorScheme = get_option($shortname . '_color_scheme');
  4. if ($colorScheme <> $default_colorscheme) $colorSchemePath = strtolower($colorScheme) . '/'; ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  7. <head profile="http://gmpg.org/xfn/11">
  8. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  9. <title><?php elegant_titles(); ?></title>
  10. <?php elegant_description(); ?>
  11. <?php elegant_keywords(); ?>
  12. <?php elegant_canonical(); ?>
  13.  
  14. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  15. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  16. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  17. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  18.  
  19. <!--[if lt IE 7]>
  20. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie6style.css" />
  21. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/DD_belatedPNG_0.0.8a-min.js"></script>
  22. <script type="text/javascript">DD_belatedPNG.fix('img#logo, #cat-nav-left, #cat-nav-right, #search-form, #cat-nav-content, div.top-overlay, .slide .description, div.overlay, a#prevlink, a#nextlink, .slide a.readmore, .slide a.readmore span, .recent-cat .entry .title, #recent-posts .entry p.date, .footer-widget ul li, #tabbed-area ul#tab_controls li span');</script>
  23. <![endif]-->
  24. <!--[if IE 7]>
  25. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie7style.css" />
  26. <![endif]-->
  27. <!--[if IE 8]>
  28. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie8style.css" />
  29. <![endif]-->
  30.  
  31. <script type="text/javascript">
  32. document.documentElement.className = 'js';
  33. </script>
  34.  
  35. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  36. <?php wp_head(); ?>
  37.  
  38. </head>
  39. <body<?php if (is_home()) echo(' id="home"'); ?> <?php body_class(); ?>>
  40. <div id="header-top" class="clearfix">
  41. <div class="container clearfix">
  42. <!-- Start Logo -->
  43. <?php $colorFolder = '';
  44. if ( $colorScheme == 'Light' || $colorScheme == 'Red' || $colorScheme == 'Blue') $colorFolder = $colorSchemePath; ?>
  45.  
  46. <a href="<?php bloginfo('url'); ?>">
  47. <?php $logo = (get_option('thesource_logo') <> '') ? get_option('thesource_logo') : get_bloginfo('template_directory').'/images/'.$colorFolder.'logo.png'; ?>
  48. <img src="<?php echo esc_url($logo); ?>" alt="Logo" id="logo"/>
  49. </a>
  50. <p id="slogan"><?php bloginfo('description'); ?></p>
  51. <!-- End Logo -->
  52.  
  53. <!-- Start Page-menu -->
  54. <div id="page-menu">
  55. <div id="p-menu-left"> </div>
  56. <div id="p-menu-content">
  57.  
  58. <?php $menuClass = 'nav clearfix';
  59. $primaryNav = '';
  60.  
  61. if (function_exists('wp_nav_menu')) $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) );
  62. if ($primaryNav == '') show_page_menu($menuClass);
  63. else echo($primaryNav); ?>
  64.  
  65. </div>
  66. <div id="p-menu-right"> </div>
  67. </div> <!-- end #page-menu -->
  68. <!-- End Page-menu -->
  69.  
  70. <div id="cat-nav" class="clearfix">
  71. <div id="cat-nav-left"> </div>
  72. <div id="cat-nav-content">
  73.  
  74. <?php $menuClass = 'superfish nav clearfix';
  75. $secondaryNav = '';
  76.  
  77. if (function_exists('wp_nav_menu')) $secondaryNav = wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) );
  78. if ($secondaryNav == '') show_categories_menu($menuClass);
  79. else echo($secondaryNav); ?>
  80.  
  81. <!-- Start Searchbox -->
  82. <div id="search-form">
  83. <form method="get" id="searchform1" action="<?php echo home_url(); ?>">
  84. <input type="text" value="<?php esc_attr_e('search...','TheSource'); ?>" name="s" id="searchinput" />
  85.  
  86. <input type="image" src="<?php bloginfo('template_directory'); ?>/images/<?php echo esc_attr($colorSchemePath); ?>search_btn.png" id="searchsubmit" />
  87. </form>
  88. </div>
  89. <!-- End Searchbox -->
  90. </div> <!-- end #cat-nav-content -->
  91. <div id="cat-nav-right"> </div>
  92. </div> <!-- end #cat-nav -->
  93. </div> <!-- end .container -->
  94. </div> <!-- end #header-top -->
  95.  
  96.  
  97.  
  98. <?php if ( (is_home() || is_front_page()) && get_option('thesource_featured') == 'on' ) get_template_part('includes/featured'); ?>
  99.  
  100. <div id="content">
  101. <?php if (!is_home()) { ?>
  102. <div id="content-top-shadow"></div>
  103. <?php }; ?>
  104. <div class="container">
Advertisement
Add Comment
Please, Sign In to add comment