Source

elbee-elgee / 404.php

Full commit
Doug Stewart 490d8b0 
Doug Stewart ba2f84d 







Doug Stewart 1f65e4f 
Doug Stewart 490d8b0 
Doug Stewart 0943d89 


Doug Stewart c8f97e3 
Doug Stewart 0943d89 






Doug Stewart 89bc7f1 
Doug Stewart 0943d89 
Doug Stewart 952fff3 
Doug Stewart 0943d89 



Doug Stewart 3bd07f4 



Doug Stewart 0943d89 







Doug Stewart 3bd07f4 



Doug Stewart 0943d89 










<?php
/**
* Template Name: 404'd
*
* @package 		Elbee-Elgee
* @copyright	Copyright (c) 2011, Doug Stewart
* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
*
* @since 		Elbee-Elgee 1.0
*/
?>
<?php header("HTTP/1.1 404 Not Found"); ?>
<?php header("Status: 404 Not Found"); ?>
<?php
if (function_exists('afdn_error_page')) {
	afdn_error_page(); 
} else {
?>
<?php get_header(); ?>

<div id="allwrapper">
	<div id="wrapper">
		<div id="lb-content">
			<div class="wppost">
				<h1>Whoops.</h1>
				<div class="itemtext">
					<p>Looks like you managed to stumble across a link to a page that doesn't exist, but never fear, good citizen, for a wealth of options awaits you!</p>
					<p>Perhaps you could search for what you were looking for:</p>

					<?php 
					echo get_search_form();
					if(function_exists('smart404_loop')) :
						if (smart404_loop()) : ?>
					<p>Or, you could always try one of these posts:</p>
					<?php while (have_posts()) : the_post(); ?>
					<h4><a href="<?php the_permalink() ?>"
					  rel="bookmark"
					  title="<?php the_title_attribute(); ?>">
					  <?php the_title(); ?></a></h4>
					    <p><?php the_excerpt(); ?></p>
					    <?php endwhile; ?>
					<?php endif; //End smart404 loop 
					endif; //End smart404 check
					?>
					
				</div>
			</div>
		</div>
	</div>

<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>

<?php } //end if... else ?>