Exemple #1
0
    public static function single_page_loop()
    {
        ?>

		<?php 
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                ?>

		<div id="post-<?php 
                the_ID();
                ?>
" <?php 
                post_class('singular-page');
                ?>
>
		
				<?php 
                if (is_home()) {
                    ?>
					<?php 
                    PC_Utility::hide_title_header_tag(get_the_ID(), "h2", "page-title entry-title");
                    ?>
				<?php 
                } else {
                    ?>
					<?php 
                    PC_Utility::hide_title_header_tag(get_the_ID(), "h1", "page-title entry-title");
                    ?>
				<?php 
                }
                ?>
				
				<?php 
                the_content();
                wp_link_pages(array('before' => '<div class="page-link">', 'after' => '</div>'));
                ?>
				<?php 
                edit_post_link(__('Edit', 'presscoders'), '<span class="edit-link">', '</span>');
                ?>

		</div> <!-- post-item -->

		<?php 
                comments_template('', true);
                ?>

		<?php 
            }
        }
        ?>
	
	<?php 
    }