wp_head(); 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>
<!-- header-inner --> <div id="header-inner"> <div id="logo"> <a href="<?php echo get_option('home'); ?> /"><?php bloginfo('name'); ?> </a> </div> <?php $status = new SourceUpdate(); $sources = new SourceAdmin(); ?> <?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(); ?>