Guest User

Untitled

a guest
Jul 17th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.31 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_Eleven
  9.  * @since Twenty Eleven 1.0
  10.  */
  11. ?><!DOCTYPE html>
  12. <!--[if IE 6]>
  13. <html id="ie6" <?php language_attributes(); ?>>
  14. <![endif]-->
  15. <!--[if IE 7]>
  16. <html id="ie7" <?php language_attributes(); ?>>
  17. <![endif]-->
  18. <!--[if IE 8]>
  19. <html id="ie8" <?php language_attributes(); ?>>
  20. <![endif]-->
  21. <!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
  22. <html <?php language_attributes(); ?> xmlns:fb="http://ogp.me/ns/fb#">
  23. <!--<![endif]-->
  24. <head>
  25. <link rel="shortcut icon" href="<?php echo get_option('9GAG_faviconurl'); ?>">
  26. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  27. <meta name="viewport" content="width=device-width" />
  28. <title><?php
  29.     /*
  30.      * Print the <title> tag based on what is being viewed.
  31.      */
  32.     global $page, $paged;
  33.  
  34.     wp_title( '|', true, 'right' );
  35.  
  36.     // Add the blog name.
  37.     bloginfo( 'name' );
  38.  
  39.     // Add the blog description for the home/front page.
  40.     $site_description = get_bloginfo( 'description', 'display' );
  41.     if ( $site_description && ( is_home() || is_front_page() ) )
  42.         echo " | $site_description";
  43.  
  44.     // Add a page number if necessary:
  45.     if ( $paged >= 2 || $page >= 2 )
  46.         echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
  47.  
  48.     ?></title>
  49. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
  50. <link rel="profile" href="http://gmpg.org/xfn/11" />
  51. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  52. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  53. <script type="text/javascript" src=<?php bloginfo( 'url'); ?>/wp-content/themes/twentyeleven/js/jquery.js></script>
  54. <script type="text/javascript">
  55. function toggleDiv(divid){
  56.  
  57.   x = document.getElementById(divid).style;
  58.      
  59.      
  60.     if(x.display == 'none' || x.display == ''){
  61.       x.display = 'block';    
  62.     }else{
  63.       x.display = 'none';
  64.     }
  65.    
  66.   }
  67. </script>
  68. <script type="text/javascript">
  69. $(document).ready(function() {
  70.     if(location.pathname != "/") {
  71.         $('#secondary_menu a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active');
  72.     } else $('#secondary_menu a:eq(0)').addClass('active');
  73. });
  74. </script>
  75. <!--[if lt IE 9]>
  76. <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
  77. <![endif]-->
  78. <?php
  79.     /* We add some JavaScript to pages with the comment form
  80.      * to support sites with threaded comments (when in use).
  81.      */
  82.     if ( is_singular() && get_option( 'thread_comments' ) )
  83.         wp_enqueue_script( 'comment-reply' );
  84.  
  85.     /* Always have wp_head() just before the closing </head>
  86.      * tag of your theme, or you will break many plugins, which
  87.      * generally use this hook to add elements to <head> such
  88.      * as styles, scripts, and meta tags.
  89.      */
  90.     wp_head();
  91. ?>
  92. <?php echo get_option('9GAG_analyticscode'); ?>
  93. </head>
  94.  
  95. <body <?php body_class(); ?>>
  96. <div id="wrap_bar">
  97.     <div id="search_bar" style="">
  98.         <div id="search_wrap">
  99.             <div id="search_placeholder">
  100.                 <div id="search_background"><?php get_search_form(); ?></div>
  101.             </div>
  102.         </div>
  103.     </div>
  104.     <div id="head_bar">
  105.         <div id="head_bar_wrap">
  106.             <h1 id="logo_place"><a href="<?php echo home_url(); ?>"><?php echo get_bloginfo('name'); ?></a></h1>
  107.             <div id="social_share"><?php echo '<a href="https://twitter.com/' . get_option('9GAG_twittername', 'Original_EXE') . '"'; ?> class="twitter-follow-button" data-show-count="false">Follow @<?php echo get_option('9GAG_twittername', 'OriginalEXE'); ?></a></div>
  108.             <div id="main_navigation"><?php wp_nav_menu( array( 'theme_location' => 'menu-1' ) ); ?></div>
  109.             <div id="second_navigation">
  110.                 <ul>
  111.                     <li id="invisible"></li>
  112.                     <li><div id="search_toggle" onclick="toggleDiv('search_bar');"></div></li>
  113.                 </ul>
  114.                
  115.             </div>
  116.         </div>
  117.     </div>
  118. </div>
  119. <div id="featured_bar">
  120. </div>
  121. <div id="secondary_menu_wrap">
  122.     <div id="secondary_shadow">
  123.         <div id="secondary_menu"><?php wp_nav_menu( array( 'theme_location' => 'menu-2' ) ); ?></div>
  124.     </div>
  125. </div>
  126. <div id="page" class="hfeed">
  127.    
  128.     <div id="main">
Advertisement
Add Comment
Please, Sign In to add comment