Beispiel #1
0
    function micronav()
    {
        wp_reset_postdata();
        $is_post = is_single() && !is_attachment() && !wallow_is_allcat();
        $is_archive = (is_archive() || is_search() || is_home()) && !wallow_is_allcat();
        if ($is_post) {
            $next = get_next_post() ? '<a title="' . esc_attr(sprintf(__('Next Post', 'wallow') . ': %s', get_the_title(get_next_post()))) . '" href="' . esc_url(get_permalink(get_next_post())) . '">&nbsp;</a>' : '';
            $prev = get_previous_post() ? '<a title="' . esc_attr(sprintf(__('Previous Post', 'wallow') . ': %s', get_the_title(get_previous_post()))) . '" href="' . esc_url(get_permalink(get_previous_post())) . '">&nbsp;</a>' : '';
        } elseif ($is_archive) {
            $prev = get_next_posts_link() ? get_next_posts_link('&nbsp;') : '';
            $next = get_previous_posts_link() ? get_previous_posts_link('&nbsp;') : '';
        } else {
            $next = '';
            $prev = '';
        }
        ?>
	<div id="micronav">
		<div class="next archive-navigation"><?php 
        echo $next;
        ?>
</div>
		<div class="prev archive-navigation"><?php 
        echo $prev;
        ?>
</div>
		<div class="home"><a title="<?php 
        esc_attr_e('Home', 'wallow');
        ?>
" href="<?php 
        echo esc_url(home_url());
        ?>
">&nbsp;</a></div>
		<div class="up"><a title="<?php 
        esc_attr_e('Top', 'wallow');
        ?>
" href="#">&nbsp;</a></div>
		<div class="down"><a title="<?php 
        esc_attr_e('Bottom', 'wallow');
        ?>
" href="#credits">&nbsp;</a></div>
	</div>
<?php 
    }
Beispiel #2
0
function wallow_allcat()
{
    if (wallow_is_allcat()) {
        get_template_part('allcat');
        exit;
    }
}