Esempio n. 1
0
/**
 * 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 
}
Esempio n. 2
0
<div <?php 
hybrid_attr('loop-meta');
?>
>

	<h1 <?php 
hybrid_attr('loop-title');
?>
><?php 
hybrid_loop_title();
?>
</h1>

	<?php 
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.