All pastes #2122702 Raw Edit

Miscellany

public text v1 · immutable
#2122702 ·published 2012-02-29 05:10 UTC
rendered paste body
<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?><!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?> >
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?> >
<!--<![endif]-->
<head>
<meta property="og:image" content="http://blogs.zoho.com/image/zoho-fb-logo.png" />

<title><?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );

	?></title>
<?php

if (is_single())
{
$categories = get_the_category();$cat_slug = $categories[0]->slug;
$topicuri = $_SERVER['REQUEST_URI'];  
$topic_slug = explode("/", $topicuri);
?>
<link rel="canonical" href="http://www.zoho.com/<?php echo $cat_slug ?>/blog/<?php echo $topic_slug[2] ?>"/>
<?php
}
else if(is_home())
{
?>
<link rel="canonical" href="http://www.zoho.com/blog/"/>
<?php
}
?>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="shortcut icon" href="https://www.zoho.com/favicon.ico" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/style1.0.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->

<?php
	/* We add some JavaScript to pages with the comment form
	 * to support sites with threaded comments (when in use).
	 */
	if ( is_singular() && get_option( 'thread_comments' ) )
		wp_enqueue_script( 'comment-reply' );

	/* Always have wp_head() just before the closing </head>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to add elements to <head> such
	 * as styles, scripts, and meta tags.
	 */

?>


<link rel='stylesheet' id='admin-bar-css'  href='https://blogs.zoho.com/wp-includes/css/admin-bar.css?ver=20110622' type='text/css' media='all' />
<link rel='stylesheet' id='wp-pagenavi-css'  href='https://blogs.zoho.com/wp-content/plugins/wp-pagenavi/pagenavi-css.css?ver=2.50' type='text/css' media='all' />





<style>
#content {
text-align:justify;
}
</style>
<script>
<!--
function popitup(url) {
	newwindow=window.open(url,'name','height=450,width=680');
	if (window.focus) {newwindow.focus()}
	return false;
}

// -->
</script>

<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/me-jquery.js"></script>


	<script type="text/javascript">
	  $(document).ready(function(){
			$("#nav-one li").hover(
				function(){ $("ul", this).fadeIn("fast"); }, 
				function() { } 
			);
	  	if (document.all) {
				$("#nav-one li").hoverClass ("sfHover");
			}
	  });
	  
		$.fn.hoverClass = function(c) {
			return this.each(function(){
				$(this).hover( 
					function() { $(this).addClass(c);  },
					function() { $(this).removeClass(c); }
				);
			});
		};	  
	</script>
	
<script type="text/javascript">	
	
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-2544340-2']);
	_gaq.push(['_setDomainName', '.zoho.com']);
	_gaq.push(['_setAllowHash', false]);
	_gaq.push(['_trackPageview']);
	
	(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
	
</script>

</head>

<body <?php body_class(); ?>>

<div class="headerbar">
<div style="margin:0px auto; width:1000px">
<a class="hlinks" href="https://www.zoho.com/">Zoho.com</a> &nbsp;|&nbsp; <a class="hlinks" href="https://forums.zoho.com/">Forums</a> &nbsp;|&nbsp; <a class="hlinks" href="https://www.zoho.com/contact.html">Contact Us</a></div></div>


 
<div id="wr">
<div id="he">

    <div class="lo"> <a title="Zoho Blogs" href="http://blogs.zoho.com/"> Zoho Blogs </a> </div>
<div style="float: right;">
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>"  class="hs" >
    <input type="text" name="s" value="" style="border: medium none; box-shadow: none; margin: 0pt; padding: 0pt; height:33px;width:215px;background:#f5f5f5">
</form>
</div>
</div><div style="clear:left"></div>

<div class="borderw2"></div>

</div>
</div>






<div id="page" class="hfeed">
	<!-- #branding -->


	<div id="main">