Exemplo n.º 1
0
    function raindrops_status_bar()
    {
        global $raindrops_status_bar, $post;
        /**
         *
         * Show Raindrops status bar at browser bottom
         *
         * shows true hide false
         * @since 1.211
         */
        if (!isset($raindrops_status_bar)) {
            $customizer_modify_value = raindrops_warehouse_clone('raindrops_status_bar');
            if ('show' !== $customizer_modify_value) {
                $raindrops_status_bar = false;
            } else {
                $raindrops_status_bar = true;
            }
        }
        if ($raindrops_status_bar == false) {
            return;
        }
        ?>
		<div id="raindrops_status_bar">
			<?php 
        do_action('raindrops_status_bar_before');
        $link_to_top = '<p class="move-to-top"><a href="#top">top</a></p>';
        echo apply_filters('raindrops_status_bar_top', $link_to_top);
        if ('posts' == get_option('show_on_front')) {
            if (is_month()) {
                raindrops_monthly_archive_prev_next_navigation();
            }
        }
        ?>
			<div class="raindrops-next-prev-links">
				<?php 
        raindrops_next_prev_links('nav-status-bar');
        ?>
			</div>
			<div class="raindrops_prev_next_post">
				<?php 
        if (is_single()) {
            raindrops_prev_next_post('nav-status-bar');
        }
        ?>
			</div>
			<?php 
        if (is_page()) {
            ?>
				<div class="child-pages">

					<?php 
            $args = array('post_type' => 'page', 'post_status' => 'publish', 'numberposts' => -1, 'order' => 'ASC', 'orderby' => 'post_title', 'post_parent' => $post->ID);
            $html = '<a href="%1$s">%2$s</a>';
            $child_pages = query_posts($args);
            if (!empty($child_pages) && is_array($child_pages)) {
                $number = count($child_pages);
                ?>
						<span class="status-bar-page-title"><?php 
                echo _nx('Child Page : ', 'Child Pages : ', $number, '', 'raindrops');
                ?>
</span>
						<?php 
                foreach ($child_pages as $child) {
                    $permalink = apply_filters('the_permalink', get_permalink($child->ID));
                    $title = apply_filters('the_title', $child->post_title);
                    printf($html, $permalink, $title);
                    if (end($child_pages) !== $child) {
                        echo ' , ';
                    }
                }
            }
            wp_reset_query();
            ?>
				</div>
			</div>
			<?php 
        }
        //is_page()
        ?>
			<?php 
        do_action('raindrops_status_bar_after');
        ?>
		</div>
		<?php 
    }
Exemplo n.º 2
0
            echo '<!-- #post-' . get_the_ID() . ' -->';
        }
        ?>
</<?php 
        raindrops_doctype_elements('div', 'article');
        ?>
>
		<?php 
        $short_link = wp_get_shortlink();
        $article_title = get_the_title() . '%0a';
        ?>
		</div>

		<?php 
        raindrops_after_article();
        raindrops_prev_next_post('nav-below');
        comments_template('', true);
    }
    // endwhiles
    /**
     * Next Previous post link
     *
     *
     *
     *
     */
    raindrops_next_prev_links("nav-below");
} else {
}
// if ( have_posts( ) )
?>