Skip to content

Instantly share code, notes, and snippets.

@woogist
Created April 1, 2014 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogist/9906133 to your computer and use it in GitHub Desktop.
Save woogist/9906133 to your computer and use it in GitHub Desktop.
backup header.php file for sealigth theme with twitter rotating
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<title><?php woo_title(); ?></title>
<?php woo_meta(); ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/css/effects.css" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $GLOBALS['feedurl'] = get_option('woo_feed_url'); if ( !empty($feedurl) ) { echo $feedurl; } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
<?php woo_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php woo_top(); ?>
<?php global $woo_options; ?>
<div id="wrapper">
<div id="header" class="col-full">
<div id="logo">
<?php if ($woo_options['woo_texttitle'] <> "true") : $logo = $woo_options['woo_logo']; ?>
<a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('description'); ?>">
<img src="<?php if ($logo) echo $logo; else { bloginfo('template_directory'); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" />
</a>
<?php endif; ?>
<?php if( is_singular() ) : ?>
<span class="site-title"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></span>
<?php else : ?>
<h1 class="site-title"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<?php endif; ?>
<span class="site-description"><?php bloginfo('description'); ?></span>
</div><!-- /#logo -->
<?php if ($woo_options['woo_ad_top'] == "true" && !$woo_options['woo_twitter']) { ?>
<!-- Top Ad Starts -->
<div id="topad">
<?php if (get_option('woo_ad_top_adsense') <> "") { ?>
<?php echo stripslashes(get_option('woo_ad_top_adsense')); ?>
<?php } else { ?>
<a href="<?php echo get_option('woo_ad_top_url'); ?>"><img src="<?php echo get_option('woo_ad_top_image'); ?>" width="468" height="60" alt="advert" /></a>
<?php } ?>
</div>
<!-- Top Ad Ends -->
<?php } ?>
<!-- Twitter Starts -->
<div class="latest_twitter">
<?php echo do_shortcode( "[rotatingtweets screen_name='ThePoolBrothers']"); ?>
</div>
<!-- Twitter Ad Ends -->
</div><!-- /#header -->
<div id="navigation" class="col-full">
<?php
if ( function_exists('has_nav_menu') && has_nav_menu('primary-menu') ) {
wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fl', 'theme_location' => 'primary-menu' ) );
} else {
?>
<ul id="main-nav" class="nav fl">
<?php
if ( get_option('woo_custom_nav_menu') == 'true' ) {
if ( function_exists('woo_custom_navigation_output') )
woo_custom_navigation_output();
} else { ?>
<?php if ( is_page() ) $highlight = "page_item"; else $highlight = "page_item current_page_item"; ?>
<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>"><?php _e('Home', 'woothemes') ?></a></li>
<?php
wp_list_pages('sort_column=menu_order&depth=6&title_li=&exclude='.get_option('woo_nav_exclude'));
}
?>
</ul><!-- /#nav -->
<?php } ?>
</div><!-- /#navigation -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment