コード例 #1
0
ファイル: 404.php プロジェクト: CUUATS/hovercraft
				<div class="page-content">
					<p><?php 
esc_html_e('It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'hovercraft');
?>
</p>

					<?php 
get_search_form();
?>

					<?php 
the_widget('WP_Widget_Recent_Posts');
?>

					<?php 
if (hovercraft_categorized_blog()) {
    // Only show the widget if site has multiple categories.
    ?>
					<div class="widget widget_categories">
						<h2 class="widget-title"><?php 
    esc_html_e('Most Used Categories', 'hovercraft');
    ?>
</h2>
						<ul>
						<?php 
    wp_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10));
    ?>
						</ul>
					</div><!-- .widget -->
					<?php 
}
コード例 #2
0
ファイル: template-tags.php プロジェクト: CUUATS/hovercraft
    /**
     * Prints HTML with meta information for the categories, tags and comments.
     */
    function hovercraft_entry_footer()
    {
        // Hide category and tag text for pages.
        if ('post' == get_post_type() && is_single()) {
            /* translators: used between list items, there is a space after the comma */
            $categories_list = get_the_category_list(esc_html__(', ', 'hovercraft'));
            if ($categories_list && hovercraft_categorized_blog()) {
                ?>
			<span class="cat-links"><span class="screen-reader-text"><?php 
                _e('Posted in ', 'hovercraft');
                ?>
</span><?php 
                echo $categories_list;
                ?>
</span>
		<?php 
            }
            /* translators: used between list items, there is a space after the comma */
            $tags_list = get_the_tag_list('', esc_html__(', ', 'hovercraft'));
            if ($tags_list) {
                ?>
			<span class="tags-links"><span class="screen-reader-text"><?php 
                _e('Tagged ', 'hovercraft');
                ?>
</span><?php 
                echo $tags_list;
                ?>
</span>
		<?php 
            }
        }
    }