/**
 * Conditionally echo archive pagination in a format dependent on chosen setting.
 *
 * This is shown at the end of archives to get to another page of entries.
 *
 * @since 0.2.3
 *
 * @uses genesis_get_option()            Get theme setting value.
 * @uses genesis_prev_next_posts_nav()   Prev and Next links.
 * @uses genesis_numeric_posts_nav()     Numbered links.
 */
function ygf_post_nav()
{
    if ('numeric' === genesis_get_option('posts_nav')) {
        ygf_numeric_posts_nav();
    } else {
        genesis_prev_next_posts_nav();
    }
}
Exemplo n.º 2
0
/**
 * Deprecated. Used to output archive pagination in older/newer format.
 *
 * Should now use `genesis_prev_next_posts_nav()` instead.
 *
 * @since 0.2.2
 * @deprecated 2.0.0
 *
 * @uses genesis_prev_next_posts_nav() Output archive pagination in next / previous format.
 */
function genesis_older_newer_posts_nav()
{
    _deprecated_function(__FUNCTION__, '2.0.0', 'genesis_prev_next_posts_nav');
    genesis_prev_next_posts_nav();
}
Exemplo n.º 3
0
/**
 * Conditionally echoes post navigation in a format dependent on chosen setting.
 *
 * @since 0.2.3
 *
 * @uses genesis_get_option() Get theme setting value
 */
function genesis_posts_nav()
{
    $nav = genesis_get_option('posts_nav');
    if ('prev-next' == $nav) {
        genesis_prev_next_posts_nav();
    } elseif ('numeric' == $nav) {
        genesis_numeric_posts_nav();
    } else {
        genesis_older_newer_posts_nav();
    }
}