/** * This function outputs a 404 "Not Found" error message * * @since 1.6 */ function genesis_404() { echo genesis_html5() ? '<article class="entry">' : '<div class="post hentry">'; printf('<h1 class="entry-title">%s</h1>', apply_filters('genesis_404_entry_title', __('Not found, error 404', 'genesis'))); echo '<div class="entry-content">'; if (genesis_html5()) { echo apply_filters('genesis_404_entry_content', '<p>' . sprintf(__('The page you are looking for no longer exists. Perhaps you can return back to the site\'s <a href="%s">homepage</a> and see if you can find what you are looking for. Or, you can try finding it by using the search form below.', 'genesis'), trailingslashit(home_url())) . '</p>'); get_search_form(); } else { ?> <p><?php printf(__('The page you are looking for no longer exists. Perhaps you can return back to the site\'s <a href="%s">homepage</a> and see if you can find what you are looking for. Or, you can try finding it with the information below.', 'genesis'), trailingslashit(home_url())); ?> </p> <?php } if (!genesis_html5()) { genesis_sitemap('h4'); } elseif (genesis_a11y('404-page')) { echo '<h2>' . __('Sitemap', 'genesis') . '</h2>'; genesis_sitemap('h3'); } echo '</div>'; echo genesis_html5() ? '</article>' : '</div>'; }
/** * This function outputs sitemap-esque columns displaying all pages, * categories, authors, monthly archives, and recent posts. * * @since 1.6 * * @uses genesis_a11y() to check for headings choice. * @uses genesis_sitemap() to generate the sitemap. * */ function genesis_page_archive_content() { $heading = genesis_a11y('headings') ? 'h2' : 'h4'; genesis_sitemap($heading); }