Пример #1
0
							</footer> <!-- end article footer -->
						
						</article> <!-- end article -->
						
						<?php 
    }
    ?>
	
						
						<?php 
    if (function_exists('page_navi')) {
        // if expirimental feature is active
        ?>
							
							<?php 
        page_navi();
        // use the page navi function
        ?>
					
						<?php 
    } else {
        // if it is disabled, display regular wp prev & next links
        ?>
							<nav class="wp-prev-next">
								<ul class="clearfix">
									<li class="prev-link"><?php 
        next_posts_link(_e('&laquo; Older Entries', "bonestheme"));
        ?>
</li>
									<li class="next-link"><?php 
        previous_posts_link(_e('Newer Entries &raquo;', "bonestheme"));
			
							<p class="tags"><?php the_tags('<span class="tags-title">Tags:</span> ', ', ', ''); ?></p>
							
						</footer> <!-- end article footer -->
                        
    				</div>
					
					</article> <!-- end article -->
					
					<?php comments_template(); ?>
					
					<?php endwhile; ?>	
					
					<?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
						
						<?php page_navi(); // use the page navi function ?>
						
					<?php } else { // if it is disabled, display regular wp prev & next links ?>
						<nav class="wp-prev-next">
							<ul class="clearfix">
								<li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
								<li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
							</ul>
						</nav>
					<?php } ?>		
					
					<?php else : ?>
					
					<article id="post-not-found">
                    
                    <div class="article">
Пример #3
0
    function wpforge_content_nav($html_id)
    {
        global $wp_query;
        $html_id = esc_attr($html_id);
        if ($wp_query->max_num_pages > 1) {
            ?>
		<?php 
            if (function_exists('page_navi')) {
                ?>
			<?php 
                page_navi();
                ?>
		<?php 
            } else {
                ?>
    
		<nav id="<?php 
                echo $html_id;
                ?>
" class="navigation" role="navigation">
			<h3 class="assistive-text"><?php 
                _e('Post navigation', 'wpforge');
                ?>
</h3>
			<div class="nav-previous alignleft"><?php 
                next_posts_link(__('<span class="meta-nav">&larr;</span> Older posts', 'wpforge'));
                ?>
</div>
			<div class="nav-next alignright"><?php 
                previous_posts_link(__('Newer posts <span class="meta-nav">&rarr;</span>', 'wpforge'));
                ?>
</div>
		</nav><!-- #<?php 
                echo $html_id;
                ?>
 .navigation -->
        <?php 
            }
            ?>
        
	<?php 
        }
    }
Пример #4
0
    while (have_posts()) {
        the_post();
        ?>
							<?php 
        apply_filters('videotube_author_loop_content', null);
        ?>
						<?php 
    }
    ?>
					<?php 
    print apply_filters('videotube_author_loop_after', null);
    ?>
					<?php 
    if ($videotube['enable_channelpage'] == 1) {
        if (function_exists('page_navi')) {
            page_navi(array('elm_class' => 'pagination', 'current_class' => 'active', 'current_format' => '<a>%d</a>'));
        } else {
            ?>
					                <ul class="pager">
					                	<?php 
            posts_nav_link(' ', '<li class="previous">' . __('&larr; Older', 'mars') . '</a></li>', ' <li class="next">' . __('Newer &rarr;', 'mars') . '</a></li>');
            ?>
					                </ul>								
								<?php 
        }
    } else {
        ?>
			                <ul class="pager">
			                	<?php 
        posts_nav_link(' ', '<li class="previous">' . __('&larr; Older', 'mars') . '</a></li>', ' <li class="next">' . __('Newer &rarr;', 'mars') . '</a></li>');
        ?>
Пример #5
0
function get_ps_page_navi()
{
    global $wp_query;
    if (function_exists('page_navi')) {
        if ($wp_query->max_num_pages > 1) {
            $args = array('items' => 5, 'show_boundary' => false, 'edge_type' => 'none', 'navi_element' => 'nav', 'elm_class' => 'archive-nav', 'echo' => false);
            return page_navi($args);
        }
    }
}