Ejemplo n.º 1
0
    <?php 
    cwp_layout::tpl_part('base', get_post_format() ? get_post_format() : 'general');
    ?>

<?php 
}
?>

<?php 
/* Display navigation to next/previous pages when applicable */
if ($wp_query->max_num_pages > 1) {
    ?>
    <nav id="nav-below">
<!--        <h1 class="section-heading"><?php 
    _e('Post navigation', 'basejump');
    ?>
</h1>-->
<!--        <div class="nav-previous"><?php 
    next_posts_link(__('<span class="meta-nav">&larr;</span> Older posts', 'basejump'));
    ?>
</div>
        <div class="nav-next"><?php 
    previous_posts_link(__('Newer posts <span class="meta-nav">&rarr;</span>', 'basejump'));
    ?>
</div>-->
            <?php 
    core_functions::pagination();
    ?>
    </nav><!-- #nav-below -->
<?php 
}
Ejemplo n.º 2
0
function bj_content_nav($nav_id)
{
    global $wp_query;
    $nav_class = 'site-navigation paging-navigation';
    if (is_single()) {
        $nav_class = 'site-navigation post-navigation';
    }
    ?>

        <nav role="navigation" id="<?php 
    echo $nav_id;
    ?>
" class="<?php 
    echo $nav_class;
    ?>
">
            <h1 class="assistive-text"><?php 
    _e('Post navigation', 'bj');
    ?>
</h1>

            <?php 
    if (!is_home() and $nav_id == 'nav-above') {
        core_functions::breadcrumbs();
    }
    ?>



            <?php 
    if (is_single() and $nav_id == 'nav-below') {
        // navigation links for single posts
        ?>

                <?php 
        previous_post_link('<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x('&larr;', 'Previous post link', 'bj') . '</span> %title');
        ?>
                <?php 
        next_post_link('<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x('&rarr;', 'Next post link', 'bj') . '</span>');
        ?>

            <?php 
    } elseif ($wp_query->max_num_pages > 1 && (is_home() || is_archive() || is_search())) {
        // navigation links for home, archive, and search pages
        ?>

                <?php 
        if ($nav_id == 'nav-below') {
            core_functions::pagination();
        }
        ?>



            <?php 
    }
    ?>

        </nav><!-- #<?php 
    echo $nav_id;
    ?>
 -->
        <?php 
}