Example #1
0
/**
* Sets up the page content. 
*
* @since 1.0
*/
function response_page_section_content()
{
    global $options, $themeslug, $post, $sidebar, $content_grid;
    response_sidebar_init();
    $hidetitle = get_post_meta($post->ID, 'hide_page_title', true);
    ?>
<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 class="post" id="post-<?php 
            the_ID();
            ?>
">
				<?php 
            if ($hidetitle == "on" or $hidetitle == "") {
                ?>
					<h2 class="posts_title"><?php 
                the_title();
                ?>
</h2>
				<?php 
            }
            ?>

					<div class="entry">

						<?php 
            the_content();
            ?>
						
					</div><!--end entry-->
					
					<div style=clear:both;></div>
					<?php 
            wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number'));
            ?>


				<?php 
            edit_post_link('Edit', '<p>', '</p>');
            ?>

				</div><!--end post-->
		
			<?php 
            comments_template();
            ?>

			<?php 
        }
    }
    ?>
			</div><!--end post_container-->
				
	</div><!--end content_left-->
	
	<!--Begin response_after_content_sidebar hook-->
		<?php 
    response_after_content_sidebar();
    ?>
	<!--End response_after_content_sidebar hook-->
</div>
<?php 
}
Example #2
0
			<?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();
?>
		<!--End response_after_content_sidebar hook-->
	
		</div><!--end content-->
	</div><!--end row-->
	
	<?php 
if ($options->get($themeslug . '_archive_breadcrumbs') == "1") {
    response_breadcrumbs();
}
?>
	
</div><!--end container-->

<?php 
Example #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 
}