/** * Archive Title * * @since 0.1.0 */ function tamatebako_archive_header() { ?> <?php if (!is_front_page() && !is_singular() && !is_404()) { ?> <header <?php hybrid_attr('loop-meta'); ?> > <?php if (hybrid_get_loop_title()) { ?> <h1 <?php hybrid_attr('loop-title'); ?> ><?php hybrid_loop_title(); ?> </h1> <?php } // End title check. ?> <?php if ($desc = hybrid_get_loop_description()) { ?> <div <?php hybrid_attr('loop-description'); ?> > <?php echo $desc; ?> </div><!-- .loop-description --> <?php } // End desc check. ?> </header><!-- .loop-meta --> <?php } ?> <?php }
/** * Outputs the loop description. * * @since 2.0.0 * @access public * @return void */ function hybrid_loop_description() { echo hybrid_get_loop_description(); }
if (is_category() || is_tax()) { // If viewing a category or custom taxonomy. ?> <?php hybrid_get_menu('sub-terms'); // Loads the menu/sub-terms.php template. ?> <?php } // End taxonomy check. ?> <?php if (!is_paged() && ($desc = hybrid_get_loop_description())) { // Check if we're on page/1. ?> <div <?php hybrid_attr('loop-description'); ?> > <?php echo $desc; ?> </div><!-- .loop-description --> <?php } // End paged check.