Example #1
0
                </div>
            </a>

            
		<?php 
if (is_single()) {
    the_title('<h1 class="entry-title">', '</h1>');
} else {
    the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
}
$categories_list = get_the_category_list(esc_html__('', 'transit'));
if ($categories_list && transit_categorized_blog() && !is_single()) {
    printf('<span class="stations cat-links shift-txt">' . esc_html__('%1$s', 'transit') . '</span>', $categories_list);
    // WPCS: XSS OK.
} else {
    if ($categories_list && transit_categorized_blog()) {
        printf('<span class="stations cat-links center-txt">' . esc_html__('%1$s', 'transit') . '</span>', $categories_list);
        // WPCS: XSS OK.
    }
}
?>
            
                <div <?php 
if (!is_single()) {
    echo 'class="shift-txt photo-num"';
} else {
    echo 'class="center-txt photo-num"';
}
?>
 >
                    
Example #2
0
esc_html_e('Oops! That page can&rsquo;t be found.', 'transit');
?>
</h1>
				</header><!-- .page-header -->

				<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?', 'transit');
?>
</p>

					<?php 
get_search_form();
the_widget('WP_Widget_Recent_Posts');
// Only show the widget if site has multiple categories.
if (transit_categorized_blog()) {
    ?>

					<div class="widget widget_categories">
						<h2 class="widget-title"><?php 
    esc_html_e('Most Used Categories', 'transit');
    ?>
</h2>
						<ul>
						<?php 
    wp_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10));
    ?>
						</ul>
					</div><!-- .widget -->

					<?php