i have only single php this is the code;
<?php if(is_ajax()):?>
<?php the_post(); the_content(); ?>
<? else : ?>
<?php get_header() ?>
<?php if(have_posts()): ?>
<?php the_post() ?>
<div class="heading">
<div class="heading-inner">
<h2>"><?php echo (get_post_type() == 'uds-portfolio' ? 'Portfolio' : 'Blog') , ' ' , the_title() ?></h2>
<form action="<?php bloginfo('url') ?>" method="get" class="searchbox">
<fieldset>
<div class="bg-search-left"></div>
<input type="text" name="s" value="type here to search" id="top-search" />
<button type="submit"></button>
<div class="bg-search-right"></div>
<div class="clear"></div>
</fieldset>
</form>
</div>
</div>
<?php endif; ?>
<?php rewind_posts(); ?>
<div id="content">
<div id="main">
<?php if(have_posts()): ?>
<?php while(have_posts()): the_post() ?>
<div id="post-<?php the_ID() ?>" <?php post_class('post') ?>>
<div class="thumb-heading">
<div class="heading-category">
<h2 class="post-heading">" rel="bookmark"><?php the_title() ?></h2>
<div class="date">
Posted on <?php the_time('j') ?>, <?php the_time('M') ?>
</div>
<div class="clear"></div>
</div>
</div>
<?php the_category(''); ?>
<div class="clear"></div>
<div class="post-content">
<?php the_content() ?>
<div class="clear"></div>
</div>
<?php if(is_single()): ?>
<?php wp_link_pages(array(
'before' => '<p class="center" id="post-pager">',
'after' => '</p>',
'link_before' => ' ',
'link_after' => ' ',
'next_or_number' => 'number',
'nextpagelink' => __('Next page »'),
'previouspagelink' => __('« Previous page'),
'pagelink' => '%',
'more_file' => '',
'echo' => 1 )
);
?>
<?php if(get_option('uds-show-authorbox') == 'on'): ?>
<div id="authorbox">
<div>
<?php if (function_exists('get_avatar')) { echo get_avatar(get_the_author_meta('user_email'), '80'); }?>
<h4>About "><?php the_author_meta('display_name'); ?></h4>
<p><?php the_author_meta('description'); ?></p>
</div>
</div>
<?php endif; ?>
<?php comments_template() ?>
<?php endif; ?>
<div class="clear"></div>
</div>
<?php endwhile; ?>
<div class="post-pages">
<div class="pages-prev"><?php next_posts_link(__("« Older entries"))?></div>
<div class="pages-next"><?php previous_posts_link(__("Newer entries »"))?></div>
<div class="clear"></div>
</div>
<?php else: ?>
<p>Sorry, no posts matched your criteria</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<div class="clear"></div>
</div>
<?php get_footer() ?>
<?php endif; ?>