Esempio n. 1
0
                    // if there are normal comments
                    wp_list_comments(array('type' => 'comment', 'style' => 'div', 'callback' => 'om_comment'));
                }
                if (!empty($comments_by_type['pings'])) {
                    // if there are pings
                    ?>
<h3 id="pings"><?php 
                    _e('Trackbacks for this post', 'om_theme');
                    ?>
</h3><?php 
                    wp_list_comments(array('type' => 'pings', 'style' => 'div', 'callback' => 'om_pings_list'));
                }
                $nav_prev = get_previous_comments_link(__('Older Comments', 'om_theme'));
                $nav_next = get_next_comments_link(__('Newer Comments', 'om_theme'));
                if ($nav_prev || $nav_next) {
                    echo om_prev_next_nav($nav_prev, $nav_next);
                }
                /*************************************************************************************
                 *	No comments or closed
                 *************************************************************************************/
                if ('closed' == $post->comment_status) {
                    // if the post has comments but comments are now closed
                    ?>
<p class="nocomments"><?php 
                    _e('Comments are closed.', 'om_theme');
                    ?>
</p><?php 
                }
            }
            ?>
					</div>
Esempio n. 2
0
    ?>
		
							
							<div class="clear"></div>				
							
						</section>
						</div>
						
						<?php 
    if (get_option(OM_THEME_PREFIX . 'blog_pagination') == 'pages') {
        echo om_wrap_paginate_links(paginate_links(om_paginate_links_args()));
    } else {
        $nav_newer = get_previous_posts_link(__('Newer Entries', 'om_theme'));
        $nav_older = get_next_posts_link(__('Older Entries', 'om_theme'));
        if ($nav_newer || $nav_older) {
            echo om_prev_next_nav($nav_older, $nav_newer);
        }
    }
    ?>
					
					<?php 
} else {
    ?>
		
						<br/>	
						<h2><?php 
    _e('Error 404 - Not Found', 'om_theme');
    ?>
</h2>
					
						<p><?php 
Esempio n. 3
0
					<div class="om-c-container">
						<div class="om-c-container-inner">
							
							<?php 
//e do_shortcode( get_option(OM_THEME_PREFIX . 'code_after_post_content') );
?>
		
							<?php 
om_wp_link_pages();
?>
							
							<?php 
$prev = get_previous_post_link('%link');
$next = get_next_post_link('%link');
if (get_option(OM_THEME_PREFIX . 'show_prev_next_post') == 'true' && ($prev || $next)) {
    echo om_prev_next_nav($prev, $next);
}
?>
												
							<?php 
get_template_part('includes/comments');
?>
							
						</div>
					</div>
					
				</div>
								
				<?php 
get_sidebar();
?>