Guest User

Untitled

a guest
Oct 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. <?php
  2. /**
  3. * Header Template
  4. *
  5. * Here we setup all logic and XHTML that is required for the header section of all screens.
  6. *
  7. * @package WooFramework
  8. * @subpackage Template
  9. */
  10.  
  11. // Setup the tag to be used for the header area (`h1` on the front page and `span` on all others).
  12. $heading_tag = 'span';
  13. if ( is_front_page() ) { $heading_tag = 'h1'; }
  14.  
  15. // Get our website's name, description and URL. We use them several times below so lets get them once.
  16. $site_title = get_bloginfo( 'name' );
  17. $site_url = home_url( '/' );
  18. $site_description = get_bloginfo( 'description' );
  19.  
  20. global $woo_options;
  21. ?><!DOCTYPE html>
  22. <html <?php language_attributes(); ?>>
  23. <head>
  24. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  25. <title><?php woo_title(); ?></title>
  26. <?php woo_meta(); ?>
  27. <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="all" />
  28. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  29. <?php if ( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } ?>
  30. <?php wp_head(); ?>
  31. <?php woo_head(); ?>
  32. </head>
  33. <body <?php body_class(); ?>>
  34. <div id="header" class="col-full">
  35.  
  36. <?php woo_header_inside(); ?>
  37.  
  38. <div id="logo">
  39. <?php
  40. // Website heading/logo and description text.
  41. if ( isset($woo_options['woo_logo']) && $woo_options['woo_logo'] ) {
  42. echo '<a href="' . $site_url . '" title="' . $site_description . '"><img src="' . $woo_options['woo_logo'] . '" alt="' . $site_title . '" /></a>' . "\n";
  43. } else {
  44. echo '<' . $heading_tag . ' class="site-title"><a href="' . $site_url . '">' . $site_title . '</a></' . $heading_tag . '>' . "\n";
  45. } // End IF Statement
  46.  
  47. if ( $site_description ) { echo '<span class="site-description">' . $site_description . '</span>' . "\n"; }
  48. ?>
  49. </div><!-- /#logo -->
  50.  
  51. <?php if ( ( isset( $woo_options['woo_ad_top'] ) ) && ( $woo_options['woo_ad_top'] == 'true' ) ) { ?>
  52. <div id="topad">
  53.  
  54. <?php if ( ( isset( $woo_options['woo_ad_top_adsense'] ) ) && ( $woo_options['woo_ad_top_adsense'] != "") ) {
  55. echo stripslashes(get_option('woo_ad_top_adsense'));
  56. } else { ?>
  57. <a href="<?php echo get_option('woo_ad_top_url'); ?>"><img src="<?php echo $woo_options['woo_ad_top_image']; ?>" alt="" /></a>
  58. <?php } ?>
  59.  
  60. </div><!-- /#topad -->
  61. <?php } ?>
  62.  
  63. </div><!-- /#header -->
  64. <?php woo_top(); ?>
  65. <div id="wrapper">
  66. <?php woo_header_before(); ?>
  67.  
  68.  
  69. <?php woo_header_after(); ?>
Add Comment
Please, Sign In to add comment