/** * Prints HTML with meta information for the current post-date/time and author. */ function fsociety_posted_on() { $time_string = '<time datetime="%1$s">%2$s</time>'; $time_string = sprintf($time_string, esc_attr(get_the_date('c')), esc_html(get_the_date())); printf('<a class="entry-date" href="' . esc_url(get_permalink()) . '" rel="bookmark">' . $time_string . '</a>'); if ('post' === get_post_type()) { $categories_list = get_the_category_list(esc_html__('', 'fsociety')); if ($categories_list && fsociety_categorized_blog()) { echo $categories_list; // WPCS: XSS OK. } } }
esc_html_e('Oops! That page can’t be found.', 'fsociety'); ?> </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?', 'fsociety'); ?> </p> <?php get_search_form(); the_widget('WP_Widget_Recent_Posts'); // Only show the widget if site has multiple categories. if (fsociety_categorized_blog()) { ?> <div class="widget widget_categories"> <h2 class="widget-title"><?php esc_html_e('Most Used Categories', 'fsociety'); ?> </h2> <ul> <?php wp_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10)); ?> </ul> </div><!-- .widget --> <?php