Пример #1
0
/**
* Search results output
*
* @since 1.0
*/
function response_search_content()
{
    global $options, $themeslug;
    $results = apply_filters('response_search_results_message', 'Search Results For: %s');
    $noresults = apply_filters('response_no_search_results_message', 'No posts found.');
    ?>
	
	<div id="content_left">
		<div class="content_padding">

		<?php 
    if (have_posts()) {
        ?>

		<h3><?php 
        printf(__($results), '<span>' . get_search_query() . '</span>');
        ?>
</h3><br />

		<?php 
        while (have_posts()) {
            the_post();
            ?>
		
		<div class="post_container">

			<div <?php 
            post_class();
            ?>
 id="post-<?php 
            the_ID();
            ?>
">

				<h2 id="post-<?php 
            the_ID();
            ?>
"><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a></h2>
				<?php 
            get_template_part('meta', 'search');
            ?>

				<div class="entry">

					<?php 
            if ($options->get($themeslug . '_search_show_excerpts') == '1') {
                the_excerpt();
            } else {
                the_content();
            }
            ?>

				</div>

			</div>

		</div><!--end post_container-->
		<?php 
        }
        ?>

		<?php 
        response_pagination();
        ?>

	<?php 
    } else {
        ?>

		<h2><?php 
        printf(__($noresults, 'response'));
        ?>
</h2>

	<?php 
    }
    ?>
		</div><!--end content_padding-->
	</div><!--end content_left--><?php 
}
Пример #2
0
    }
    ?>
	 
	 <?php 
} else {
    ?>

		<h2>Nothing found</h2>

	<?php 
}
?>

		<!--Begin response_pagination hook-->
			<?php 
response_pagination();
?>
		<!--End response_pagination hook-->
		
		<!--Begin response_after_archive hook-->
			<?php 
response_after_archive();
?>
		<!--End response_after_archive hook-->
	
		</div><!--end content_padding-->

		<!--Begin response_after_content_sidebar hook-->
			<?php 
response_after_content_sidebar();
?>
Пример #3
0
/**
* Index content
*
* @since 1.0
*/
function response_index_content()
{
    global $options, $themeslug, $post, $sidebar, $content_grid;
    // call globals
    ?>
	
	<!--Begin response_sidebar_init-->
		<?php 
    response_sidebar_init();
    ?>
	<!--End response_sidebar_init-->
	<div class="row">
<!--Begin response_before_content_sidebar hook-->
		<?php 
    response_before_content_sidebar();
    ?>
	<!--End response_before_content_sidebar hook-->

		<div id="content" class="<?php 
    echo $content_grid;
    ?>
">
	
		<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
			
			<div class="post_container">
				<div <?php 
            post_class();
            ?>
 id="post-<?php 
            the_ID();
            ?>
">
		
				<!--Begin response_loop hook-->
					<?php 
            response_loop();
            ?>
				<!--End response_loop hook-->	
			
				<!--Begin response_link_pages hook-->
					<?php 
            response_link_pages();
            ?>
				<!--End response_link_pages hook-->
			
				<!--Begin response_post_edit_link hook-->
					<?php 
            response_edit_link();
            ?>
				<!--End response_post_edit_link hook-->		
							
				<!--Begin response_post_tags hook-->
					<?php 
            response_post_tags();
            ?>
				<!--End response_post_tags hook-->
							
				<!--Begin response_post_bar hook-->
					<?php 
            response_post_bar();
            ?>
				<!--End response_post_bar hook-->
				
				</div><!--end post_class-->
			</div><!--end post container-->
			
			<?php 
            if (is_attachment()) {
                ?>
			
			<div id="image_pagination">
				<div class="image_wrap">
					<div class="previous_image"> <?php 
                previous_image_link(array(100, 1000));
                ?>
</div>
					<div class="next_image"><?php 
                next_image_link(array(100, 100));
                ?>
</div>
				</div>
			</div>
			<?php 
            }
            ?>
			
			<?php 
            if (is_single() && $options->get($themeslug . '_post_pagination') == "1") {
                ?>
			<div id="post_pagination"><div class="pagination_text">
				<!--Begin @response post pagination hook-->
					<?php 
                response_post_pagination();
                ?>
				<!--End @response post pagination hook-->	
			
			</div></div>		
				<?php 
            }
            ?>

			<?php 
            if (is_single()) {
                ?>
			<?php 
                comments_template();
                ?>
			<?php 
            }
            ?>
			
			<?php 
        }
        ?>
		
			<?php 
    } else {
        ?>

				<h2>Not Found</h2>

			<?php 
    }
    ?>
			
			<!--Begin response_pagination hook-->
			<?php 
    response_pagination();
    ?>
			<!--End response_pagination hook-->
			
		</div><!--end content-->

	<!--Begin response_after_content_sidebar hook-->
		<?php 
    response_after_content_sidebar();
    ?>
	<!--End response_after_content_sidebar hook-->

</div>
<?php 
}