این هم کد:
<?php
global $news;
load_theme_textdomain('news', TEMPLATEPATH.'/languages/');
wp_head();
?>
<div id="wrapper">
<!-- logo, ad -->
<div id="header">
<?php dt_show_ads('position=Header&before=<div class="header-ad">&after=</div>'); ?>
<div class="clear"></div>
</div>
<!-- logo, ad -->
<!-- navigation -->
<div id="force-menu">
<?php if ($news['nav_custom'] == 0) { ?>
<ul id="menu">
<li<?php if (is_home()) { echo ' class="current-cat" '; } ?>><a href="<?php bloginfo('home'); ?>/" title="<?php _e('خانه','news'); ?>"><?php _e('خانه','news'); ?></a></li>
<?php
$categories = wp_list_categories('orderby='.$news['nav_sort'].'&order='.$news['nav_order'].'&hide_empty='.$news['nav_hide_empty'].'&title_li=&echo=0');
$categories = preg_replace('/View all posts filed under /','',$categories);
echo $categories;
?>
</ul><div class="clear"></div>
<?php
} else {
wp_nav_menu( array( 'theme_location' => 'nav', 'container' => '', 'menu_id' => 'menu', 'menu_class' => '') );
}
?>
</div>
<!-- navigation -->
<!-- links, search -->
<div id="links"<?php if ($news['searchform'] != 1) echo ' style="background:#fff"'; ?>>
<?php if ($news['pages_custom'] == 0) { ?>
<ul id="linklist">
<?php dt_profile_links(); ?>
<li><a href="#"><?php _e('پیگیری ما','news'); ?></a>
<ul>
<?php if (!empty($news['feedburner'])) { ?>
<li><a href="http://feeds.feedburner.com/<?php echo $news['feedburner']; ?>" class="feedburner"><?php _e('اشتراک از طریق فید برنر','news'); ?></a></li>
<li><a href="http://feedburner.google.com/fb/a/mailverify?uri=<?php echo $news['feedburner']; ?>" class="feedburner-email"><?php _e('مشترک شدن از طریق ایمیل','news'); ?></a></li>
<?php } ?>
<?php if (!empty($news['twitter'])) { ?>
<li><a href="http://twitter.com/<?php echo $news['twitter']; ?>" class="twitter"><?php _e('ما را در تویتر دنبال کنید','news'); ?></a></li>
<?php } ?>
<?php if (!empty($news['facebook'])) { ?>
<li><a href="<?php echo $news['facebook']; ?>" class="facebook"><?php _e('صفحه فیس بوک','news'); ?></a></li>
<?php } ?>
</ul>
</li>
<li><a href="<?php bloginfo_rss('rss2_url'); ?>" class="rsslink"><?php _e('فید مطالب','news'); ?></a>
<ul class="rssmenu">
<?php
$categories = get_categories();
foreach ($categories as $category) {
echo '<li><a href="'.get_category_feed_link($category->cat_ID).'">'.$category->cat_name.'</a></li>';
}
?>
</ul>
</li>
<li><a href="<?php bloginfo_rss('comments_rss2_url'); ?>" class="rsslink"><?php _e('فید نظرات','news'); ?></a></li>
<?php if ($news['newspulse']) : ?><li><a href="<?php echo get_page_link($news['newspulse']); ?>" title="<?php _e('تفکیک اخبار','news'); ?>"><?php _e('تفکیک اخبار','news'); ?></a></li><?php endif; ?>
<?php if ($news['Contact']) : ?><li><a href="<?php echo get_page_link($news['Contact']); ?>" title="<?php _e('ارتباط با ما','news'); ?>"><?php _e('ارتباط با ما','news'); ?></a></li><?php endif; ?>
</ul>
<?php
} else {
wp_nav_menu( array( 'theme_location' => 'pages', 'container' => '', 'menu_id' => 'linklist', 'menu_class' => '') );
}
?>
<?php if ($news['searchform'] == 1) { ?>
<form>
<fieldset class="search-form" action="/" method="get">
<input type="text" name="s" id="s" value="<?php if (get_search_query()) { echo get_search_query(); } else { echo __('جستجو','news'); } ?>" class="search-text clearfield" />
<input type="submit" value="" class="search-go" />
</fieldset>
</form>
<?php } ?>
<div class="clear"></div>
</div>
<!-- links, search -->
<?php dt_show_ads('position=Header Wide&before=<div class="adzone">&after=</div>'); ?>