<?php
// Blog feed URL
if(get_option('wicketpixie_blog_feed_url') != false) {
$blogfeed = get_option('wicketpixie_blog_feed_url');
} else {
$blogfeed = get_bloginfo_rss('rss2_url');
}
$status= new SourceUpdate;
global $optpre;
global $adsense;
$adsense = new AdsenseAdmin;
?>
<!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" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<!-- Debug: <?php echo $optpre; ?> -->
<title><?php if (is_home()) { ?><?php bloginfo('name'); ?><?php } else { ?><?php wp_title('',true,''); ?> » <?php bloginfo('name'); ?><?php } ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); echo '?'.time(); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/reset.css?<?php echo time(); ?>" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/screen.css?<?php echo time(); ?>" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/print.css?<?php echo time(); ?>" type="text/css" media="print" />
<!--[if IE]><link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie.css?<?php echo time(); ?>" type="text/css" media="screen, projection" /><![endif]-->
<!--[if gte IE 7]><link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie7.css?<?php echo time(); ?>" type="text/css" media="screen, projection" /><![endif]-->
<!--[if lte IE 6]><link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie6.css?<?php echo time(); ?>" type="text/css" media="screen, projection" /><![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php echo $blogfeed; ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="shortcut icon" type="image/ico" href="<?php bloginfo('home'); ?>/favicon.ico" />
<?php if(get_option('wicketpixie_enable_ajax_loader') == 'true') { ?>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/loader.css?<?php echo time(); ?>" type="text/css" media="all" />
<?php } ?>
<?php ob_flush(); flush(); ?>
<style type="text/css">
.recentcomments a {
display: inline !important;
padding: 0 !important;
margin: 0 !important;
}
</style>
<?php
include_once (TEMPLATEPATH . '/plugins/random-posts.php');
include_once (TEMPLATEPATH . '/plugins/search-excerpt.php');
clearstatcache();
if(!is_dir(ABSPATH.'wp-content/uploads/activity')) {
if(!is_dir(ABSPATH.'wp-content/uploads'))
{
mkdir(ABSPATH.'wp-content/uploads',0777);
}
mkdir(ABSPATH.'wp-content/uploads/activity',0777);
}
if(!is_dir(TEMPLATEPATH . '/app/cache')) {
mkdir(TEMPLATEPATH . '/app/cache',0777);
}
/*
if(is_user_logged_in()) { ?>
<script src="http://wicketpixie.uservoice.com/pages/general/widgets/tab.js?alignment=right&color=000000" type="text/javascript"></script>
<?php } */ ?>
<?php wp_head(); ?>
<?php
echo "\n";
wp_customheader();
echo "\n";
?>
<?php
$blogurl = get_bloginfo('url');
$currurl = $blogurl.$_SERVER['REQUEST_URI'];
$currurl = preg_quote($currurl,'/');
if(preg_match('/('.$currurl.'index.php)/','http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']) || preg_match('/('.$currurl.'index.php)/','https://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'])) {
if(get_bloginfo('description') != '') {
$metadesc = get_bloginfo('description'); // We're at the home page
} else {
$supdate = new SourceUpdate;
$metadesc = $supdate->display(0);
}
} else {
// We must be in a page or a post
$postdata = get_post($postid,ARRAY_A);
$metadesc = substr($postdata['post_content'],0,134) . ' [...]';
}
$metadesc = strip_tags($metadesc);
?>
<meta name="description" content="<?php echo $metadesc; ?>" />
</head>
<body>
<?php
if(get_option('wicketpixie_enable_ajax_loader') == 'true') { ?>
<!-- DIV Loader -->
<div id="loadingFrame">
<div id="loading">
<img src="<?php echo get_template_directory_uri(); ?>/images/loading.gif" alt="Loading"/><br />
<b>Loading....</b>
</div>
</div>
<?php } else { ?>
<!-- AJAX loader disabled, enable it in WicketPixie Settings -->
<?php } ?>
<?php flush(); ?>
<!-- google_ad_section_start(weight=ignore) -->
<!-- topbar -->
<div id="topbar">
<!-- topbar-inner -->
<div id="topbar-inner">
<ul>
<li id="topbar-subscribe"><a href="#">Suscribite</a></li>
<?php if (is_user_logged_in()) { ?><li id="topbar-admin"><a href="<?php bloginfo('wpurl'); ?>/wp-admin" rel="nofollow">Admin</a></li><?php } ?>
</ul>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div>
<!-- /topbar-inner -->
</div>
<!-- /topbar -->
<!-- subscribe -->
<div id="subscribe">
<ul>
<li><a href="<?php echo $blogfeed; ?>" title="Subscribe to my feed" class="feed" rel="nofollow">RSS Feed</a></li>
<li><a href="http://www.bloglines.com/sub/<?php echo $blogfeed; ?>" class="feed" rel="nofollow">Bloglines</a></li>
<li><a href="http://fusion.google.com/add?feedurl=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">Google Reader</a></li>
<li><a href="http://feeds.my.aol.com/add.jsp?url=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">My AOL</a></li>
<li><a href="http://my.msn.com/addtomymsn.armx?id=rss&ut=<?php echo $blogfeed; ?>&ru=<?php echo get_settings('home'); ?>" class="feed" rel="nofollow">My MSN</a></li>
<li><a href="http://add.my.yahoo.com/rss?url=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">My Yahoo!</a></li>
<li><a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">NewsGator</a></li>
<li><a href="http://www.pageflakes.com/subscribe.aspx?url=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">Pageflakes</a></li>
<li><a href="http://technorati.com/faves?add=<?php echo get_settings('home'); ?>" class="feed" rel="nofollow">Technorati</a></li>
<li><a href="http://www.live.com/?add=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">Windows Live</a></li>
</ul>
<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=zeblog-ar', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">Email: <input type="text" size="13" name="email"/><input type="hidden" value="zeblog-ar" name="uri"/><input type="hidden" name="loc" value="en_US"/><input type="submit" value="Suscribirse" /></form>
</div>
<!-- /subscribe -->
<!-- header -->
<div id="header">
<!-- header-inner -->
<div id="header-inner">
<div id="logo">
<?php
if(get_option('wicketpixie_theme_header_size')) {
$fontsize = get_option('wicketpixie_theme_header_size');
echo '<span style="font-size:',$fontsize,'px;">';
?>
<a href="<?php echo get_option('home'); ?>/" rel="nofollow"><?php bloginfo('name'); ?></a>
<?php
echo "</span>";
} else {
?>
<a href="<?php echo get_option('home'); ?>/" rel="nofollow"><?php bloginfo('name'); ?></a>
<?php } ?>
</div>
<!-- google_ad_section_end -->
<?php if (function_exists('aktt_latest_tweet')) { ?>
<!-- status -->
<div id="status">
<div id="twitter-tools">
<?php echo get_avatar('1', $size = '36', $default = 'images/avatar.jpg'); ?>
<p><?php aktt_latest_tweet(); ?></p>
<div id="status-bottom"> </div>
</div>
</div>
<!-- /status -->
<?php } elseif ($status->select()) { ?>
<!-- status -->
<div id="status">
<?php echo get_avatar('1', $size = '36', $default = 'images/avatar.jpg'); ?>
<p><?php echo $status->display(); ?></p>
<div id="status-bottom"> </div>
</div>
<!-- /status -->
<?php } else { ?>
<div id="status">
<?php echo get_avatar('1', $size = '36', $default = 'images/avatar.jpg'); ?>
<p id="description"><?php bloginfo('description'); ?></p>
<div id="status-bottom"> </div>
</div>
<?php } ?>
<!-- google_ad_section_start(weight=ignore) -->
<!-- leaderboard -->
<?php
if(is_enabled_adsense() == true) {
?>
<div id="leaderboard">
<?php $adsense->wp_adsense("blog_header"); ?>
</div>
<?php
} elseif(is_enabled_adsense() == false) {
?>
<!-- Enable Adsense on the WicketPixie Adsense Ads admin page. -->
<?php
}
?>
<!-- /leaderboard -->
</div>
<!-- /header-inner -->
</div>
<!-- /header -->
<!-- nav -->
<div id="nav">
<ul>
<?php wp_nav_menu( array( 'theme_location' => 'primary','fallback_cb'=> ” ) ); ?>
</ul>
</div>
<!-- /nav -->
<!-- google_ad_section_end -->
<!-- wrapper -->
<div id="wrapper">
<!-- mid -->
<div id="mid" class="content">