index
<?php get_header(); ?>
<div id="rightcol"><?php include (TEMPLATEPATH . '/sidebar1.php'); ?></div>
<div id="leftcol"><?php include (TEMPLATEPATH . '/sidebar2.php'); ?></div>
<div id="centercol">
<div id="centercol-ads">
<div id="centercol-adsb">
<img alt="http://www.websoftdownload.com/images/b-ads.jpg" src="http://www.websoftdownload.com/images/b-ads.jpg" />
</div>
</div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="entry">
<div id="centercol-up"></div>
<div id="centercol-body">
<div class="entry">
<div class="entry-header"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
<div class="entry-hit">
<img src="<?php bloginfo('template_url'); ?>/images/category.gif" alt="cat" />دسته: <?php the_category(', ') ?> </div>
<div class="entry-body">
<?php the_content(); ?>
<br/></div><div align="right"> </div><br /><img src="<?php bloginfo('template_url'); ?>/images/more.gif" alt="more" /> <a target="_blank" href="<?php the_permalink() ?>" class="more-link">ادامه مطلب "<?php the_title(); ?>"</a>
</div>
<div class="entry-footer">
<div align="left">
<img src="<?php bloginfo('template_url'); ?>/images/author.gif" title="نویسنده: <?php the_author(', ') ?>" alt="author" />
<img src="<?php bloginfo('template_url'); ?>/images/date.gif" title="<?php the_time('j F Y'); ?>" alt="date" />
<a target="_blank" href="<?php the_permalink() ?>" title="لینک ثابت مطلب" /><img src="<?php bloginfo('template_url'); ?>/images/link.gif" alt="permalink" /></a>
<img src="<?php bloginfo('template_url'); ?>/images/comment.gif" title="<?php comments_number('بدون نظر', 'یک نظر', '% نظر'); ?>" /></a>
</div>
<img src="<?php bloginfo('template_url'); ?>/images/tags.gif" alt="tags" />برچسب ها: <?php the_tags('') ?>
</div>
</div>
</div>
<div id="centercol-down"></div>
<?php endwhile; else: ?><?php endif; ?>
<div id="page">
<div id="page-up"></div>
<div id="page-body">
<div id="page-btext">
<div id='wp_page_numbers'>
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
</div>
</div>
</div>
<div id="page-down"></div>
</div>
<div id="up">
<center>
<a href="#top" /><img src="<?php bloginfo('template_url'); ?>/images/up.gif" alt="up" /></a>
</center>
</div>
</div>
<?php get_footer(); ?>
function
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array('name'=>'rightside',
'before_widget' => '',
'after_widget' => '</center>
</div>
</div></div><div id="rightcol-down"></div>
',
'before_title' => '<div id="rightcol-up"><div id="rightcol-uptext">',
'after_title' => '</div></div><div id="rightcol-body"><div id="rightcol-btext"> <div class="textwidget">
<center>
',
));
?>
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array('name'=>'leftside',
'before_widget' => '',
'after_widget' => '</center>
</div>
</div></div><div id="leftcol-down"></div>
',
'before_title' => '<div id="leftcol-up"><div id="leftcol-uptext">',
'after_title' => '</div></div><div id="leftcol-body"><div id="leftcol-btext"> <div class="textwidget">
<center>
',
));
?>