سلام نوید جان
محتویات فایل های ایندکس و سی اس اس رو براتون در اینجا قرار دادم .
-------------------------------------------------------------------------------------------
فایل های ایندکس
<?php get_header(); ?>
<div id="page">
<div id="contentleft">
<?php if ( $paged < 2 ) { // Do stuff specific to first page?>
<?php $my_query = new WP_Query('category_name=Featured&showposts=1');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<h2 class="sectionhead"><a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.gif" alt="Main Content RSS Feed" title="Main Content RSS Feed" style="float:right;margin: 2px 0 0 5px;" /></a>روز نوشت</h2>
<div class="featurepost" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?>
</a></h2>
<p class="postinfo">نوشته شده توسط <?php the_author_posts_link(); ?> در <?php the_time('M j, Y') ?> از <?php the_category(', ') ?> | <?php comments_popup_link('0 نظر', '1 نظر', '% نظر'); ?><?php edit_post_link('ویرایش', ' | ', ''); ?></p>
<div class="entry">
<?php the_content('Read the rest'); ?>
</div>
</div>
<?php endwhile; ?>
<div id="content">
<h2 class="sectionhead"><a href="<?php bloginfo('rss2_url'); ?>"></a>مطالب</h2>
<?php if (have_posts()) : while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?>
</a></h2>
<div class="entry">
<?php the_content('ادامه ی مطلب'); ?>
<p class="postinfo">نوشته شده توسط <?php the_author_posts_link(); ?> در <?php the_time('j M, Y') ?> از <?php the_category(', ') ?> | <?php comments_popup_link('0 نظر', '1 نظر', '% نظر'); ?><?php edit_post_link('ویرایش', ' | ', ''); ?></p><a target="_blank"
padding: 0px'/>
</a>
</div>
</div>
<?php endwhile; endif; ?>
<?php } else { // Do stuff specific to non-first page ?>
<div id="content">
<h2 class="sectionhead">مطالب قدیمی</h2><p><font face="Tahoma" style="font-size: 9pt">
<?php if (have_posts()) : while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?>
</a></h2>
<p class="postinfo">نوشته شده توسط <?php the_author_posts_link(); ?> در <?php the_time('j M, Y') ?> | از <?php the_category(', ') ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% نظر'); ?><?php edit_post_link('Edit', ' | ', ''); ?></p>
<div class="entry">
<?php the_content('<strong>Read the rest »</strong>'); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php } ?>
<div class="navigation">
<p><font face="Tahoma" style="font-size: 9pt"><div class="alignleft">
<?php next_posts_link('« مطالب قدیمی تر') ?>
</div>
<div class="alignright">
<?php previous_posts_link('مطالب جدیدتر »') ?>
</div>
</div>
</div>
<?php include (TEMPLATEPATH . "/sidebar1.php"); ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
---------------------------------------------------------------------------------------------
فایل های سی اس اس
/*
Theme Name: Simplicity
Disinged by: http://solostream.com/
Translate & Redisinged: <a href="http://itnegar.net">ItNegar</a>
Disinged for ItNegar.
*/
body, html {
margin:0;
padding:0;
direction:rtl;
font-family:"Tahoma";
}
body {
background-color: #DCDCB7; margin:0; padding:0;
}
*::-moz-selection {
background-color:#FF3C00;
color:white;
}
.book img {
border: 1px #bfdaed solid;
padding: 1px;
}
.book {
margin-bottom: 2px;
}
#wrap {
padding: 15px;
clear: both;
width: 940px;
margin: 0 auto;
border-left: 1px solid #B3B4B2;
border-right: 1px solid #B3B4B2;
background-color: #ffffff;
}
#nav {
height:26px;
line-height:26px;
margin: 0 auto;
padding:0;
}
#page {
clear: both;
margin: 0 auto;
padding: 0;
}
#contentleft {
width: 670px;
float:left;
padding: 10px 0;
margin: 0;
}
#content {
width: 490px;
float: left;
margin: 0;
padding: 0;
}
#midcontent {
font-size: 8pt;
width: 170px;
float: right;
margin: 0;
padding: 0 0 5px;
border-bottom: 1px dotted #b5d7f1;
}
#contentright {
width: 260px;
float:right;
padding: 10px 0;
margin: 0;
}
#sidebar {
width: 260px;
background-color:#F3F3F3;
font-size: 8pt;
float: right;
margin: 0;
padding: 0 0 5px;
border-bottom: 1px dotted #b5d7f1;
}
#footer {
font-size: 8pt;
border-top:1px solid #b5d7f1;
line-height: 160%;
clear: both;
margin: 0px auto;
text-align: right; color:#666666; padding-left:10px; padding-right:10px; padding-top:5px; padding-bottom:0
}
#footer p {
margin: 0;
}
/* -------------------[ Headings ]------------------- */
h1, h2, h3, h4, h5, h6, h7 {
letter-spacing:-1px;
line-height: 130%;
margin: 0;
padding: 0;
text-align: right;
font-weight:normal;
}
h1 {
font-size: 18pt;
margin: 0;font-family:Tahoma
}
h2 {
font-size: 16pt; font-family:Tahoma
}
h3 {
font-size: 14pt;
}
h4, h5, h6, h7 {
font-size: 10pt;
}
#header h1.blogtitle {
font-family: georgia, times, 'times new roman', serif;
color: #FFFFFF;
text-align:right;
font-size:48px;
font-weight: bold;
line-height:100%;
margin-left:0; margin-right:0; margin-top:0; margin-bottom:10px; padding-left:50px; padding-right:50px; padding-top:0; padding-bottom:0
}
.post h1 a, .post h2 a, .featurepost h2 a, .featurepost h1 a {
font-size:14pt;
font-weight:bold;
color:#FF8C00;
padding:0;
margin:0;
border:medium none;
clear:both; font-family: Times New Roman; text-align:right
}
.featurepost h2 a, .featurepost h1 a {
font-size:14pt;
font-weight:bold;
color:#FF8C00;
padding:0;
margin:0;
border:medium none;
clear:both; font-family:Times New Roman; text-align:right
}
h1.sectionhead, h2.sectionhead, #midcontent h2, h2.related, #sidebar h2, h2#comments, h2#trackbacks, h2#respond {
text-transform: uppercase;
color:#333;
font-weight: bold;
line-height: 16px;
height:16px;
background: url('images/heading-bg.gif') repeat-x top left;
letter-spacing: 0px;
font-weight:bold; font-style:normal; font-variant:normal; font-size:14px; font-family:Arial; margin-left:0; margin-right:0; margin-top:0; margin-bottom:5px; padding-left:5px; padding-right:5px; padding-top:4px; padding-bottom:4px
}
h2#trackbacks, h2.related, h2#comments, h2#respond {
margin-bottom:1px;
}
.entry h1, .entry h2, .entry h3, .entry h4, .entry h5, .entry h6, .entry h7 {
font-family: georgia, times, 'times new roman', serif;
margin-bottom: 10px;
}
/* -------------------[ Links ]------------------- */
a, a:link, a:visited {
color: #3366FF;
text-decoration: none;
padding: 0;
font-size: bold
}
a:hover, a:active {
text-decoration:none;
color:#FF0000;
}
.entry a, .entry a:link, .entry a:visited, .postinfo a, .postinfo a:link, .postinfo a:visited, .postinfo2 a, .postinfo2 a:link, .postinfo2 a:visited {
text-decoration: none; text-align:justify
}
/* -------------------[ Images ]------------------- */
img.alignright {
float: right;
clear: right;
margin: 0 0 5px 10px;
background: #fff;
padding: 2px;
border: 1px solid #78a7ca;
}
img.alignleft {
float: left;
clear: left;
margin: 0 10px 5px 0px;
background: #fff;
padding: 2px;
border: 1px solid #78a7ca;
}
img.centered {
display: block;
padding: 2px;
margin: 0 auto 20px auto;
border: 1px solid #78a7ca;
float: none;
clear: both;
}
/* -------------------[ Sidebar ]------------------- */
#sidebar ul {
list-style-type: none;
margin: 0 ;
padding: 0;
}
#sidebar ul li {
list-style-type: none;
margin: 0 0 5px 0;
padding: 0;
}
#sidebar ul li ul {
list-style-type: square;
margin: 0px;
padding: 0 5px;
}
#sidebar ul li ul li {
list-style-type:none;
background: url('images/pt-greenb.gif') no-repeat right;
border: 0px none;
margin: 0; padding-left:14px; padding-right:14px; padding-top:0px; padding-bottom:2px
}
#sidebar p {
padding: 0 5px;
}
#midcontent h2{
font: 14px Arial;
font-weight:bold;
}
#contentright h2{
font: 14px Arial;
font-weight:bold;
}
/* -------------------[ Middle Content ]------------------- */
#midcontent {
background-color:#F3F3F3; }
#midcontent ul {
list-style-type: none;
margin: 0 ;
padding: 0;
}
#midcontent ul li {
list-style-type: none;
margin: 0 0 5px;
padding: 0;
}
#midcontent ul li ul {
list-style-type: square;
margin: 0px;
padding: 0 5px;
}
#midcontent ul li ul li {
list-style-type:none;
background: url('images/pt-greenb.gif') no-repeat right;
border: 0px none;
margin: 0; padding-left:14px; padding-right:14px; padding-top:0px; padding-bottom:2px
}
#midcontent p {
padding: 0 5px;
}
/* -------------------[ Form Elements ]------------------- */
#commentform {
background: #eee;
font-size:8pt;
padding: 15px 15px 1px;
margin: 0 0 10px 0;
}
#commentform label {
display:block;
margin: 0;
}
#commentform input {
width: 170px;
padding: 1px;
margin: 0px 5px 10px 0;
}
#commentform textarea {
width: 400px;
padding: 0;
margin: 0px 0px 10px 0;
}
#commentform #submit {
margin: 0 0 20px 0;
}
#commentform p {
margin: 5px 0;
}
/* -------------------[ Comments ]------------------- */
ol.commentlist {
font-size:8pt;
padding: 0;
margin: 0;
}
ol.commentlist li {
display: block;
list-style: none;
padding: 15px 15px 1px;
margin: 0 0 1px ;
background: #eee;
}
ol.tblist {
list-style: none;
background: #eee;
padding: 15px 15px 10px;
font-size: 8pt;
margin: 0 0 1px;
}
ol.tblist li {
display: block;
background: url('images/bullet2.gif') no-repeat right;
padding-right: 14px; list-style-type:none; margin-left:0; margin-right:0; margin-top:0; margin-bottom:5px; padding-left:0; padding-top:0; padding-bottom:0
}
.odd {
background:#fff;
}
/* -------------------[ Misc Tags and Classes ]------------------- */
p.description {
font-family: Tahoma;
color:#9c9c9c;
font-size: 8pt;
padding: 0 50px;
margin: 0;
text-align:right;
}
.post ul, .singlepost ul {
list-style-type: none;
}
.post ul li, .singlepost ul li {
list-style-type:none;
background: url('images/bullet2.gif') no-repeat right;
padding-left:14px; padding-right:14px; padding-top:0; padding-bottom:2px
}
.post ol li, .singlepost ol li {
list-style-type:decimal;
}
p {
margin-top: 0px;
margin-bottom: 15px;
}
acronym, abbr, span.caps {
cursor: help;
}
acronym, abbr {
border-bottom: 1px dotted #b5d7f1;
}
* html acronym, abbr {
border-bottom: 1px dashed #b5d7f1;
}
blockquote {
padding-left: 10px;
border-left: 5px solid #b5d7f1;
color: #999;
}
.center {
text-align: center;
}
a img {}
img
{
border:1px solid #ffffff; padding:4px;
}
.navigation {
text-align: center;
margin: 0
padding: 10px 0;
}
.navigation .alignright {
float: right;
margin: 0;
}
.navigation .alignleft {
float: left;
margin: 0; text-align:left
}
.entry {
margin: 2 0; text-align:justify; font-family:Tahoma; font-size:8pt; color:#333333; padding-left:0; padding-right:0; padding-top:10px; padding-bottom:10px
}
.author {
clear: both;
text-align: left;
margin: 15px 0 0 0;
}
.postinfo {
color:#999;
clear: both;
margin: 0px;
font-size: 8pt;
padding: 0;
}
.post {
margin: 0 0 10px 0;
padding: 0 5px 0;
border-bottom: 1px dotted #b5d7f1;
}
.featurepost {
margin: 0 0 10px 0;
padding: 0 5px 0;
border-bottom: 1px dotted #b5d7f1;
}
code {
font: 1.1em 'Courier New', Courier, Fixed;
}
hr {
display: block:
clear:both;
}
a.more-link {
padding-right: 14px;
}
p.tb {
background: url('images/tb.gif') no-repeat right;
padding-right:14px;
font-size:14px;
font-weight: bold;
font-family: Arial;
margin-bottom:5px
}
p.tb a, p.tb a:link, p.tb a:visited {
text-decoration:none;
}
/* -------------------[ Search ]------------------- */
#searchform {
height:26px;
line-height:26px;
float:right;
margin: 0;
padding: 0;
}
#searchform #s {
font-size:8pt;
width: 140px;
margin-right: 2px;
}
#searchform #submit {
font-size:8pt;
}
/* -------------------[ Navigation ]------------------- */
ul.nav {
height:22px;
line-height:22px;
float:left;
margin: 0;
font-size:12px;
font-family: Arial;
font-weight: bold;
text-transform:uppercase; list-style-type:none; color:#808080; padding-left:0; padding-right:0; padding-top:3px; padding-bottom:0
}
ul.nav li {
float: left !important;
margin: 0;
padding: 0;
list-style-type: none;
}
ul.nav li a, ul.nav li a:link, ul.nav li a:visited {
color:#000;
float: left;
display: block;
padding: 0 10px;
}
ul.nav li a:hover, ul.nav li a:active {
background: #fff;
color: #000;
text-decoration: none;
}
ul.nav li.first a {
border-left:1px solid #b5d7f1;
}
ul.nav li.current_page_item a {
text-decoration:none;
color:#000;
background: #fff;
border-left:1px solid #b5d7f1;
}
ul.nav li ul {
float:left;
margin:0;
padding:0;
}
/* ---------------[ Tables ]--------------- */
.entry table {
margin-bottom:15px;
padding:auto;
border:auto;
}
.entry tr, .entry td, .entry th {
margin:auto; padding:auto; border:auto;
}
.entry td, .entry th {
padding:8px;
vertical-align:top;
}
.entry th {
font-weight:bold;
background:#ddd;
}
.entry td {
border:1px solid #b5d7f1;
}
/* ---------------[ Related Entries ]--------------- */
.related {
margin: 0 0 1px;
background:#eee;
padding:10px 10px 8px;
}
.related ul {
line-height:130%;
margin: 0;
padding-left:0;
list-style-type: none;
}
.related ul li {
list-style-type:none;
background: url('images/bullet2.gif') no-repeat right;; margin-left:0; margin-right:0; margin-top:0; margin-bottom:2px; padding-left:14px; padding-right:14px; padding-top:0; padding-bottom:0
}
ul#archives {
margin: 0 0 15px 5px;
padding: 0;
}
ul#archives ul {
padding:0;
}
ul#archives ul li {
background:transparent;
padding-left:0;
margin:0;
}
ul#archives ul ul {
margin:0;
margin-left: 10px;
padding:0;
}
input {
font: 8pt Tahoma;
}
textarea {
font: 8pt Tahoma;
}
.gravatar {
float:left;
padding: 3px;
border: 1px solid #78a7ca;
background: #fff;
}
.postgrav {
float: left;
padding: 3px;
margin-right: 5px;
margin-left: 5px;
border: 1px solid #78a7ca;
background: #fff;
}
.productNote {
padding:4;
font-family: Tahoma;
font-size: 11px;
color: #E9630A;
background-color: #FFFDE1;
border: 1px solid #F4C451;
-moz-border-radius: 5px;
}
.productsList {
padding:4;
font-family: Tahoma;
font-size: 11px;
color: #3366CC;
background-color: #E1EBF4;
-moz-border-radius: 5px;
border: 1px solid #94B1D6; margin-top:1; margin-bottom:1
}
a.menu1, a:active.menu1, a:visited.menu1 {
background: #c4cae0;
font: 11px Tahoma;
color: #895da7;
border: 1px solid #afb6d0;
direction: rtl;
display: block;
padding: 3px;
margin: 1px;
}
a:hover.menu1 {
background: #FFCC66;
font: 11px Tahoma;
color: #B67B03;
border: 1px solid #FF9900;
direction: rtl;
display: block;
padding: 3px;
}
a.menu2, a:active.menu2, a:visited.menu2 {
background: #dfe5d2;
font: 11px Tahoma;
color: #86a93a;
border: 1px solid #b6ce82;
direction: rtl;
display: block;
padding: 3px;
margin: 1px;
}
a:hover.menu2 {
background: #cddfa6;
font: 11px Tahoma;
color: #748a44;
border: 1px solid #aac177;
direction: rtl;
display: block;
padding: 3px;
}
a.menu3, a:active.menu3, a:visited.menu3 {
background: #ece7de;
font: 11px Tahoma;
color: #b17a0f;
border: 1px solid #d5c8ae;
direction: rtl;
display: block;
padding: 3px;
margin: 1px;
}
a:hover.menu3 {
background: #ebd5aa;
font: 11px Tahoma;
color: #986708;
border: 1px solid #d4aa59;
direction: rtl;
display: block;
padding: 3px;
}