سلام
باشه همرو اینجا میزارم @},-
sitemaps.php
<?php
/*
Template Name: Sitemap
*/
?>
<?php get_header(); ?>
<div id="lsidebar"><?php include (TEMPLATEPATH . '/lsidebar.php'); ?></div>
<div class="entry">
<h2><?php the_title(); ?></h2><br />
<h3><?php _e('All internal pages:','rhea'); ?></h3>
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
<br /><h3><?php _e('All internal blog posts:','rhea'); ?></h3><br />
<ul>
<?php $archive_query = new WP_Query('showposts=1000');
while ($archive_query->have_posts()) : $archive_query->the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','rhea'); ?><?php the_title(); ?>"><?php the_title(); ?></a> <strong><?php comments_number('0', '1', '%'); ?></strong></li>
<?php endwhile; ?>
</ul>
<br /><h3><?php _e('Monthly archive pages:','rhea'); ?></h3><br />
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<br /><h3><?php _e('Topical archive pages:','rhea'); ?></h3><br />
<ul>
<?php wp_list_categories('title_li=0'); ?>
</ul>
<br /><h3><?php _e('Available RSS Feeds:','rhea'); ?></h3><br />
<ul>
<li><a href="<?php bloginfo('rdf_url'); ?>" title="RDF/RSS 1.0 feed"><acronym title="Resource Description Framework">RDF</acronym>/<acronym title="Really Simple Syndication">RSS</acronym> 1.0 feed</a></li>
<li><a href="<?php bloginfo('rss_url'); ?>" title="RSS 0.92 feed"><acronym title="Really Simple Syndication">RSS</acronym> 0.92 feed</a></li>
<li><a href="<?php bloginfo('rss2_url'); ?>" title="RSS 2.0 feed"><acronym title="Really Simple Syndication">RSS</acronym> 2.0 feed</a></li>
<li><a href="<?php bloginfo('atom_url'); ?>" title="Atom feed">Atom feed</a></li>
</ul>
</div></div>
<div id="sidebar"><?php include (TEMPLATEPATH . '/rsidebar.php'); ?></div>
<?php get_footer(); ?>
دیدگاهها (comments.php)
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die (__('Please do not load this page directly. Thanks!','rhea'));
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','rhea'); ?><p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'odd';
?>
<!-- You can start editing here. -->
<div id="commentsbox">
<?php if ($comments) : ?>
<?php
/* Count the totals */
$numPingBacks = 0;
$numComments = 0;
/* Loop through comments to count these totals */
foreach ($comments as $comment) {
if (get_comment_type() != "comment") { $numPingBacks++; }
else { $numComments++; }
}
?>
<?php
/* This is a loop for printing comments */
if ($numComments != 0) : ?>
<h2 id="comments">
<br /> <?php comments_number(__('No Responses','rhea'), __('One Response','rhea'), __('% Responses','rhea')); ?>
<?php _e('to','rhea'); ?> “<?php the_title(); ?>”</h2>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<?php if (get_comment_type()=="comment") : ?>
<li class="<?php if ($comment->comment_author_email == "") echo 'mycomment'; else echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<p style="margin-bottom:5px; border-bottom:1px #fff dotted; padding-bottom:5px;"><?php _e('By','rhea'); ?> <strong><?php comment_author_link() ?></strong> <?php _e('on','rhea'); ?> <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('M j, Y') ?></a> | <a href="#respond"><?php _e('Reply','rhea'); ?></a><?php edit_comment_link(__('Edit','rhea'), __(' | ','rhea'), ''); ?></p>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation.','rhea'); ?></em>
<?php endif; ?>
<?php comment_text() ?>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'odd';
?>
<?php endif; endforeach; ?>
</ol>
<?php endif; ?>
<?php
/* This is a loop for printing trackbacks if there are any */
if ($numPingBacks != 0) : ?>
<ol class="tblist">
<li><h2><?php _e($numPingBacks); ?> Trackback(s)</h2></li>
<?php foreach ($comments as $comment) : ?>
<?php if (get_comment_type()!="comment") : ?>
<li id="comment-<?php comment_ID() ?>">
<?php comment_date('M j, Y') ?>: <?php comment_author_link() ?>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation.','rhea'); ?></em>
<?php endif; ?>
</li>
<?php if('odd'==$thiscomment) { $thiscomment = 'even'; } else { $thiscomment = 'odd'; } ?>
<?php endif; endforeach; ?>
</ol>
<?php endif; ?>
<?php else :
/* No comments at all means a simple message instead */
?>
<?php endif; ?>
<?php if (comments_open()) : ?>
<?php if (get_option('comment_registration') && !$user_ID ) : ?>
<p id="comments-blocked"><?php _e('You must be','rhea'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=
<?php the_permalink(); ?>"><?php _e('logged in','rhea'); ?></a> <?php _e('to post a comment.','rhea'); ?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<h2><?php _e('Post a Comment','rhea'); ?></h2>
<?php if ($user_ID) : ?>
<p><?php _e('You are logged in as','rhea'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php">
<?php echo $user_identity; ?></a><?php _e('. To logout,','rhea'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account','rhea'); ?>"><?php _e('click here','rhea'); ?></a>.
</p>
<?php else : ?>
<p><label for="author"><?php _e('Name','rhea'); ?><?php if ($req) _e(__(' (required)','rhea')); ?></label>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /></p>
<p><label for="email"><?php _e('E-mail (will not be published)','rhea'); ?><?php if ($req) _e(__(' (required)','rhea')); ?></label>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" size="22" /></p>
<p><label for="url"><?php _e('Website','rhea'); ?></label>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /></p>
<?php
/****** Math Comment Spam Protection Plugin ******/
if ( function_exists('math_comment_spam_protection') ) {
$mcsp_info = math_comment_spam_protection();
?> <p><input type="text" name="mcspvalue" id="mcspvalue" value="" size="22" tabindex="4" />
<label for="mcspvalue"><small><?php _e('Spam protection: Sum of','rhea'); ?> <?php echo $mcsp_info['operand1'] . ' + ' . $mcsp_info['operand2'] . ' ?' ?></small></label>
<input type="hidden" name="mcspinfo" value="<?php echo $mcsp_info['result']; ?>" />
</p>
<?php } // if function_exists... ?>
<?php endif; ?>
<p><textarea name="comment" id="comment" cols="5" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment','rhea'); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p id="comments-closed"><?php _e('Sorry, comments for this entry are closed at this time.','rhea'); ?></p>
<?php endif; ?></div>
پانوشت (footer.php)
<br clear="all" />
</div>
<div id="footer">
<div class="footer">Copyright © 2007 <?php bloginfo('name'); ?> | Designed by - <a href="http://www.blogohblog.com/">Jai</a> and Localized by <a href="http://www.cusoon.ir/" class="fpc"> <b>SiaVash </b></a> <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --></div>
<div class="top"><a href="#top"><?php _e('Top','rhea'); ?></a></div>
</div>
</div>
<div id="wrapper_"></div>
</body>
</html>
نتایج جستوجو (search.php)
<?php get_header(); ?>
<div id="themes"><?php include (TEMPLATEPATH . '/lsidebar.php'); ?></div>
<div class="entry">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','rhea'); ?><?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php _e('Written by','rhea'); ?> <?php the_author() ?> <?php _e('on','rhea'); ?> <abbr title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s'), the_date('', '', '', false), get_the_time()) ?></abbr> - <?php if(function_exists('the_views')) { the_views(); } ?> </small><br /><br />
<?php the_content(__('Read more »','rhea')); ?>
<br />
<?php the_tags(__('Tags: ','rhea'), __(', ','rhea'), __('<br />','rhea')); ?><?php _e('Posted in','rhea'); ?> <?php the_category(__(', ','rhea')); ?> | <?php edit_post_link(__('Edit','rhea'), '', __(' | ','rhea')); ?> <?php comments_popup_link(__('No Comments »','rhea'), __('1 Comment »','rhea'), __('% Comments »','rhea')); ?><br />
<div class="line"></div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Older Entries','rhea')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »','rhea')) ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e('No posts found. Try a different search?','rhea'); ?></h2>
<?php endif; ?>
</div></div>
<div id="sidebar"><?php include (TEMPLATEPATH . '/rsidebar.php'); ?></div>
<?php get_footer(); ?>
ستونکناری (sidebar.php)
<div id="sidebar">
<?php include (TEMPLATEPATH . '/sidebarhome.php'); ?>
</div>
rsidebar.php
<div class="rsidebar">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
<?php endif; ?>
</ul>
</div>
سربرگ (header.php)
<?php load_theme_textdomain('rhea'); ?>
<!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">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<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'); ?>" />
<?php wp_head(); ?>
</head>
<body>
<div id="wrapper">
<div id="top">
<div id="header"><h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1></div>
<div id="title"></div>
</div>
<div id="navbar">
<div id="menu">
<ul class="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'); ?>"><?php _e('Home','rhea'); ?><?php echo $langblog;?></a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
</div>
<div id="searchrss">
<div id="rss"><a href="?feed=rss2"><?php _e('Feed','rhea'); ?></a> | <a href="<?php _e('#','rhea'); ?>"><?php _e('Subscribe via Email','rhea'); ?></a></div>
<div id="topsearch">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="text" name="s" id="ls" onfocus="if (this.value == '<?php _e('Search...','rhea'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Search...','rhea'); ?>';}" class="swap_value" />
<input type="image" src="<?php bloginfo('template_url'); ?>/images/btn_search_box.gif" id="go" alt="Search" title="Search" />
</form>
</div>
</div>
</div>
<br clear="all" />
<div id="main">
<div id="content">
پوستهی اصلی (index.php)
<?php get_header(); ?>
<div id="lsidebar"><?php include (TEMPLATEPATH . '/lsidebar.php'); ?></div>
<div class="entry">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','rhea'); ?><?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php _e('Written by','rhea'); ?> <?php the_author() ?> <?php _e('on','rhea'); ?> <abbr title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s'), the_date('', '', '', false), get_the_time()) ?></abbr> - <?php if(function_exists('the_views')) { the_views(); } ?> </small><br /><br />
<?php the_content(__('Read more »','rhea')); ?>
<br />
<?php the_tags(__('Tags: ','rhea'), __(', ','rhea'), __('<br />','rhea')); ?><?php _e('Posted in','rhea'); ?> <?php the_category(__(', ','rhea')); ?> | <?php edit_post_link(__('Edit','rhea'), '', __(' | ','rhea')); ?> <?php comments_popup_link(__('No Comments »','rhea'), __('1 Comment »','rhea'), __('% Comments »','rhea')); ?><br />
<div class="line"></div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Older Entries','rhea')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »','rhea')) ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e('Not Found','rhea'); ?></h2>
<p class="center"><?php _e('Sorry, but you are looking for something that isnt here.','rhea'); ?></p>
<?php endif; ?>
</div></div>
<div id="sidebar"><?php include (TEMPLATEPATH . '/rsidebar.php'); ?></div>
<?php get_footer(); ?>
lsidebar.php
<div class="lsidebar">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
<?php endif; ?>
</ul>
</div>
تابعهای پوسته (functions.php)
<?php
if ( function_exists('register_sidebars') )
register_sidebars(2);
?>
تک نوشته (single.php)
<?php get_header(); ?>
<div id="lsidebar"><?php include (TEMPLATEPATH . '/lsidebar.php'); ?></div>
<div class="entry">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','rhea'); ?><?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php _e('Written by','rhea'); ?> <?php the_author() ?> <?php _e('on','rhea'); ?> <abbr title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s'), the_date('', '', '', false), get_the_time()) ?></abbr> - <?php if(function_exists('the_views')) { the_views(); } ?> </small><br /><br />
<?php the_content(__('Read more »','rhea')); ?>
<br />
<?php the_tags(__('Tags: ','rhea'), __(', ','rhea'), __('<br />','rhea')); ?><?php _e('Posted in','rhea'); ?> <?php the_category(__(', ','rhea')); ?> | <?php edit_post_link(__('Edit','rhea'), '', __(' | ','rhea')); ?> <?php comments_popup_link(__('No Comments »','rhea'), __('1 Comment »','rhea'), __('% Comments »','rhea')); ?><br />
<div class="line"></div>
</div>
<?php comments_template(); ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Older Entries','rhea')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »','rhea')) ?></div>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.','rhea'); ?></p>
<?php endif; ?>
</div></div>
<div id="sidebar"><?php include (TEMPLATEPATH . '/rsidebar.php'); ?></div>
<?php get_footer(); ?>
پوسته برگه (page.php)
<?php get_header(); ?>
<div id="lsidebar"><?php include (TEMPLATEPATH . '/lsidebar.php'); ?></div>
<div class="entry">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<?php the_content(__('Read more »','rhea')); ?>
<br />
<?php edit_post_link(__('Edit','rhea'), ''); ?> <br />
<div class="line"></div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Older Entries','rhea')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »','rhea')) ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e('Not Found','rhea'); ?></h2>
<p class="center"><?php _e('Sorry, but you are looking for something that isnt here.','rhea'); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div></div>
<div id="sidebar"><?php include (TEMPLATEPATH . '/rsidebar.php'); ?></div>
<?php get_footer(); ?>