Advertisement
likoma

header

May 12th, 2012
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  
  5. * Header Template
  6.  
  7. *
  8.  
  9. * Here we setup all logic and XHTML that is required for the header section of all screens.
  10.  
  11. *
  12.  
  13. * @package WooFramework
  14.  
  15. * @subpackage Template
  16.  
  17. */
  18.  
  19.  
  20.  
  21. // Setup the tag to be used for the header area (`h1` on the front page and `span` on all others).
  22.  
  23. $heading_tag = 'span';
  24.  
  25. if ( is_home() OR is_front_page() ) { $heading_tag = 'h1'; }
  26.  
  27.  
  28.  
  29. // Get our website's name, description and URL. We use them several times below so lets get them once.
  30.  
  31. $site_title = get_bloginfo( 'name' );
  32.  
  33. $site_url = home_url( '/' );
  34.  
  35. $site_description = get_bloginfo( 'description' );
  36.  
  37.  
  38.  
  39. global $woo_options;
  40.  
  41. ?><!DOCTYPE html>
  42.  
  43. <html <?php language_attributes(); ?>>
  44.  
  45. <head>
  46.  
  47. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  48.  
  49. <title><?php woo_title(); ?></title>
  50.  
  51. <?php woo_meta(); ?>
  52.  
  53. <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="all" />
  54.  
  55. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  56.  
  57. <?php wp_head(); ?>
  58.  
  59. <?php woo_head(); ?>
  60.  
  61. </head>
  62.  
  63. <body <?php body_class(); ?>>
  64.  
  65. <?php woo_top(); ?>
  66.  
  67. <div id="wrapper">
  68.  
  69. <?php woo_header_before(); ?>
  70.  
  71.  
  72.  
  73. <div id="header" class="col-full">
  74.  
  75.  
  76.  
  77. <?php woo_header_inside(); ?>
  78.  
  79.  
  80.  
  81. <div id="logo">
  82.  
  83. <?php
  84.  
  85. // Website heading/logo and description text.
  86.  
  87. if ( isset($woo_options['woo_logo']) && $woo_options['woo_logo'] ) {
  88.  
  89. echo '<a href="' . $site_url . '" title="' . $site_description . '"><img src="' . $woo_options['woo_logo'] . '" alt="' . $site_title . '" /></a>' . "\n";
  90.  
  91. } // End IF Statement
  92.  
  93.  
  94.  
  95. echo '<' . $heading_tag . ' class="site-title"><a href="' . $site_url . '">' . $site_title . '</a></' . $heading_tag . '>' . "\n";
  96.  
  97. if ( $site_description ) { echo '<span class="site-description">' . $site_description . '</span>' . "\n"; }
  98.  
  99. ?>
  100.  
  101. </div><!-- /#logo -->
  102.  
  103.  
  104.  
  105. <?php if ( ( isset( $woo_options['woo_ad_top'] ) ) && ( $woo_options['woo_ad_top'] == 'true' ) ) { ?>
  106.  
  107. <div id="topad">
  108.  
  109.  
  110.  
  111. <?php if ( ( isset( $woo_options['woo_ad_top_adsense'] ) ) && ( $woo_options['woo_ad_top_adsense'] != "") ) {
  112.  
  113. echo stripslashes(get_option('woo_ad_top_adsense'));
  114.  
  115. } else { ?>
  116.  
  117. <a href="<?php echo get_option('woo_ad_top_url'); ?>"><img src="<?php echo $woo_options['woo_ad_top_image']; ?>" alt="" /></a>
  118.  
  119. <?php } ?>
  120.  
  121.  
  122.  
  123. </div><!-- /#topad -->
  124.  
  125. <?php } ?>
  126.  
  127.  
  128.  
  129. </div><!-- /#header -->
  130.  
  131. <?php woo_header_after(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement