<?php
/**
 * 404.php is used when your server reaches a 404 error page
 * @package Ultra WordPress Theme
 * @since 1.0
 * @author AJ Clarke : http://wpexplorer.com
 * @copyright Copyright (c) 2012, AJ Clarke
 * @link http://wpexplorer.com
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */

get_header(); // Loads the header.php template ?>

<header id="page-heading">
    <div class="boxed">
        <h1><?php _e('Page Not Found','wpex'); ?></h1>
        <?php
        // Yoast Breadcrumbs Support
        if( function_exists('yoast_breadcrumb') ) yoast_breadcrumb('<div id="breadcrumbs"><span class="icon-home"></span>','</div>'); ?>
    </div><!-- .boxed -->
</header><!-- #page-heading -->

<div id="error-page" class="clearfix boxed container">
	<div id="post">
        <?php if( of_get_option('custom_404_replace','') !== '') {
                echo '<img id="error-page-img" src="'. of_get_option('custom_404_replace','') .'" />';
        } else { ?>
        <h1 id="error-page-title"><span class="icon-warning-sign"></span><?php _e('404','wpex'); ?></h1>	
        <p id="error-page-text">
        <?php _e('Unfortunately, the page you tried accessing could not be retrieved. Please visit the','wpex'); ?> <a href="<?php echo home_url() ?>/" title="<?php bloginfo( 'name' ) ?>" rel="home"><?php _e('homepage','wpex'); ?> &rarr;</a>
        </p>
        <?php } ?>
	</div><!-- #post -->
    <?php get_sidebar(); // Loads the sidebar.php file  ?>
</div><!-- #error-page -->

<?php
get_footer(); // Loads the footer.php file ?>