اینهم کد صفحه نتایج جستجو
<?php get_header(); ?>
<div id="container">
<div class="main<?php if ( is_active_sidebar( 'home-sidebar-small' ) ) : ?> small-sidebar<?php endif; ?>">
<?php if ( is_active_sidebar( 'home-sidebar-small' ) ) : ?>
<div class="sidebar-small">
<?php dynamic_sidebar( 'home-sidebar-small' ); ?>
</div><!-- Sidebar Small -->
<?php endif; ?>
<div class="content">
<div class="warp">
<?php if(bdayh_get_option('article_crumbs') == 1) { ?>
<div class="pp-breadcrumbs bottom10">
<?php bd_breadcrumbs() ?>
</div><!-- breadcrumbs /-->
<hr class="bottom15">
<?php } ?>
<?php if ( have_posts() ) the_post(); ?>
<h1 class="entry-title bottom25">
<?php if ( have_posts() ) : ?>
<?php printf( __( 'Search Results for: %s', 'bd' ), '<span>' . get_search_query() . '</span>' ); ?>
<?php else : ?>
<?php _e( 'Nothing Found', 'bd' ); ?>
<?php endif; ?>
</h1>
<?php if ( have_posts() ) : ?>
<?php get_template_part( 'loop-archive', 'search' ); ?>
<?php if ($wp_query->max_num_pages > 1) bd_pagenavi(); ?>
<?php else : ?>
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'bd' ); ?></p>
<div class="bottom15 clear"></div>
<?php get_search_form(); ?>
<?php endif; ?>
<div class="bottom15 clear"></div>
<hr class="bottom15 clear"></hr>
<ul class="sitemap_content">
<h3 class="sitemap_title">
<?php _e('Pages','bd'); ?>
</h3>
<ul id="sitemap_pages">
<?php wp_list_pages('title_li='); ?>
<!--//sitemap pages-->
<h3 class="sitemap_title">
<?php _e('Categories','bd'); ?>
</h3>
<ul id="sitemap_categories">
<?php wp_list_categories('title_li='); ?>
<!--//sitemap categories-->
<h3 class="sitemap_title">
<?php _e('Tags','bd'); ?>
</h3>
<ul id="sitemap_categories">
<?php $tags = get_tags();
if ($tags)
{
foreach ($tags as $tag)
{
echo '
term_id ) . '">' . $tag->name . '
';
}
}
?>
<!--//sitemap tags-->
<li class="end_row">
<h3 class="sitemap_title">
<?php _e('Authors','bd'); ?>
</h3>
<ul id="sitemap_authors" >
<?php wp_list_authors('optioncount=1&exclude_admin=0'); ?>
<!--//sitemap tags-->
</div>
</div>
<!-- content -->
</div>
</div>
<!-- container -->
<div id="sidebar">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Category Sidebar')){ }else { ?>
<?php get_sidebar(); ?>
<?php } ?>
</div>
<!-- sidebar -->
<?php get_footer(); ?>