elbee-elgee / 404.php

The default branch has multiple heads

* Template Name: 404'd
* @package 		Elbee-Elgee
* @copyright	Copyright (c) 2011, Doug Stewart
* @license 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"); ?>
if (function_exists('afdn_error_page')) {
} else {
<?php get_header(); ?>

<div id="allwrapper">
	<?php lblg_above_content_and_sidebars(); ?>
	<div id="wrapper">
	<?php lblg_above_content(); ?>
		<div id="lb-content">
			<div class="wppost">
				<?php lblg_the_title(); ?>
				<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>

					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() ?>"
					  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

<?php get_sidebar(); ?>


<?php get_footer(); ?>

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