Download linki
Hata vermeye başlayınca tema aktifken ne zaman admin paneline girsem bu uyarıyı alıyorum.
Alıntı
7
●307
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));
function mavatars($size = false) {
global $comment;
$m_out = "http://mavatar.cn/avatar.php?mavatar_id=".md5($comment->comment_author_email);
if($size && $size != '')
$m_out .="&size=".$size;
$md5 = md5($comment -> comment_author_email);
$default = urlencode("http://mavatar.cn/avatarimg/48_noimg.jpg");
$gravatar="http://www.gravatar.com/avatar.php?gravatar_id=$md5&size=$size&default=$default";
echo "<a href=\"http://mavatar.cn\"><img src=\"".$m_out."\" border=\"0\" style=\"background:url(".$gravatar.") no-repeat;\" /></a>";
} ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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'); ?>" />
<title><?php
// Page or Single Post
if ( is_page() or is_single() ) {
the_title();
// Category Archive
} elseif ( is_category() ) {
echo 'Category Archive for ‘'.single_cat_title('', false).'’';
// Tag Archive
} elseif ( function_exists('is_tag') and function_exists('single_tag_title') and is_tag() ) {
echo 'Tag Archive for ‘'.single_tag_title('', false).'’';
// General Archive
} elseif ( is_archive() ) {
echo wp_title('', false).' Archive';
// Search Results
} elseif ( is_search() ) {
echo 'Search Results for ‘'.get_query_var('s').'’';
}
// Insert separator for the titles above
if ( !is_home() and !is_404() ) {
echo ' at ';
}
// Finally the blog name
bloginfo('name');
?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="shortcut icon" href="<?php echo get_settings('home'); ?>/favicon.ico" />
<style>
<?php
$random= rand(1,2);
?>
<!--
#header{
background:url('<?php bloginfo('stylesheet_directory'); ?>/images/header<?php echo $random;?>.gif') no-repeat right top;
}
-->
</style>
<?php wp_head(); ?>
</head>
<body>
<div id="page">
<div id="header">
<div id="headerimg">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<div class="description"><?php bloginfo('description'); ?></div>
</div>
<ul id="menu">
<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>/" title="Home">首页</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
</div>