/** * Create the content for the 404 Error page * * Located in 404.php * Override: childtheme_override_404_content */ function seamless_404_content() { ?> <?php seamless_postheader(); ?> <div class="entry-content"> <p><?php _e('Apologies, but we were unable to find what you were looking for. Perhaps searching will help.', 'seamless'); ?> </p> </div><!-- .entry-content --> <form id="error404-searchform" method="get" action="<?php echo home_url(); ?> /"> <div> <input id="error404-s" name="s" type="text" value="<?php the_search_query(); ?> " size="40" /> <input id="error404-searchsubmit" name="searchsubmit" type="submit" value="<?php esc_attr_e('Find', 'seamless'); ?> " /> </div> </form> <?php }
the_post(); // action hook for placing content above #post seamless_abovepost(); ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <?php // creating the post header seamless_postheader(); ?> <div class="entry-content"> <?php // displays the "Page" content the_content(); // action hook for displaying a list of archive links seamless_archives(); edit_post_link(__('Edit', 'seamless'), '<span class="edit-link">', '</span>'); ?> </div><!-- .entry-content --> </article><!-- #post -->
function test_seamless_postheader() { $this->expectOutputRegex('/<header/', seamless_postheader()); }