Current File : /home/kelaby89/babyl0n.restaurant/wp-content/themes/restar/404.php
<?php
/**
 * @Packge     : Restar
 * @Version    : 1.0
 * @Author     : Themeholy
 * @Author URI : https://themeforest.net/user/themeholy
 *
 */

    // Block direct access
    if( !defined( 'ABSPATH' ) ){
        exit();
    }

    if( class_exists( 'ReduxFramework' ) ) {
        $restar404title     = restar_opt( 'restar_error_title' );
        $restar404description  = restar_opt( 'restar_error_description' );
        $restar404btntext      = restar_opt( 'restar_error_btn_text' );
    } else {
        $restar404title     = __( 'OooPs! Page Not Found', 'restar' );
        $restar404description  = __( 'Oops! The page you are looking for does not exist. It might have been moved or deleted.
        Please check and try again a search?', 'restar' );
        $restar404btntext      = __( ' Back To Home', 'restar');

    }

    // get header //
    get_header(); 
    
        echo '<section class="space">'; 
            echo '<div class="container">';
                echo '<div class="error-img">';
                    if(!empty(restar_opt('restar_error_img', 'url' ) )){
                        echo '<img src="'.esc_url( restar_opt('restar_error_img', 'url' ) ).'" alt="'.esc_attr__('404 image', 'restar').'">';
                    }else{
                        echo '<img src="'.get_template_directory_uri().'/assets/img/error.png" alt="'.esc_attr__('404 image', 'restar').'">';
                    }
                echo '</div>';
                echo '<div class="error-content">';
                    if(!empty($restar404title)){
                        echo '<h2 class="error-title title-ani2">'.wp_kses_post( $restar404title ).'</h2>';
                    }
                    echo '<div class="text-ani">';
                        if(!empty($restar404description)){
                            echo '<p class="error-text">'.esc_html( $restar404description ).'</p>';
                        }
                    echo '</div>';
                    echo '<div class="text-ani">';
                        echo '<a href="'.esc_url( home_url('/') ).'" class="th-btn error-btn"><i class="far fa-home me-2"></i>'.esc_html( $restar404btntext ).'</a>';
                    echo '</div>';
                echo '</div>';
            echo '</div>';
        echo '</section>';

    //footer
    get_footer();
Page not found – Hello World !