Beispiel #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 
}
/**
 * Outputs the loop title.
 *
 * @since  2.0.0
 * @access public
 * @return void
 */
function hybrid_loop_title()
{
    echo hybrid_get_loop_title();
}
<?php

printf('<div class="%s">', 'search-meta');
printf('<div %s>', hybrid_get_attr('loop-meta'));
printf('<h1 %s>', hybrid_get_attr('loop-title'));
echo __('New Search', 'classic');
echo '</h1>';
printf('<div %s>', hybrid_get_attr('loop-description'));
printf('<p>');
echo __('If you are not happy with the results below please do another search', 'classic');
echo '</p>';
get_search_form();
// Loads the searchform.php template.
echo '</div><!-- .loop-description -->';
echo '</div><!-- .loop-meta -->';
echo '</div><!-- .search-meta -->';
global $wp_query;
printf('<div class="%s">', 'alert alert-info');
$page_title = strip_tags(hybrid_get_loop_title());
$page_title = $wp_query->found_posts . " " . $page_title;
echo $page_title;
echo '</div><!-- .alert .alert-info -->';