*
* @package WordPress
* @subpackage Twenty_Ten
*
@since Twenty Ten 1.0
*/
?>
<html >
<meta charset="” />
<?php
/*
* Print the 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’, ‘twentyten’ ), max( $paged, $page ) );
?>
<link rel="stylesheet" type="text/css" media="all" href="” />
<link rel="pingback" href="” />
<?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
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if (node == null)
node = document;
if (tag == null)
tag = ‘*’;
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp(“(^|\s)”+searchClass+”(\s|$)”);
for (i = 0, j = 0; i < elsLen; i++) {
if (pattern.test(els.className) ) {
classElements[j] = els;
j++;
}
}
return classElements;
}
function switchClassElements(className) {
var elems = getElementsByClass(className);
for(var i=0; i<elems.length ; i++) {
if(elems.style.display!=”none”)
elems.style.display = “none”;
else
elems.style.display = “block”;
}
}
window.onload = function() { switchClassElements(‘quick_post_widget_hide’); }
<body >