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 }
</div> <?php comments_template('', true); ?> </<?php raindrops_doctype_elements('div', 'article'); ?> > </div><?php raindrops_after_article(); ?> </div> <?php } //endwhile raindrops_next_prev_links("nav-below"); } //end have post ?> </div> <?php if (3 == $raindrops_current_column) { ?> <div class="yui-u"> <?php raindrops_prepend_extra_sidebar(); get_sidebar('extra'); raindrops_append_extra_sidebar(); ?> </div> <?php