File: /home/jairicem/tkidsfoundation.org/wp-content/themes/donat/404.php
<?php
/**
* @Packge : donat
* @Version : 1.0
* @Author : Themehause
* @Author URI : https://themeforest.net/user/themehause
*
*/
// Block direct access
if( !defined( 'ABSPATH' ) ){
exit();
}
if( class_exists( 'ReduxFramework' ) ) {
$donat404title = donat_opt( 'donat_error_title' );
$donat404subtitle = donat_opt( 'donat_error_subtitle' );
$donat404description = donat_opt( 'donat_error_description' );
$donat404btntext = donat_opt( 'donat_error_btn_text' );
} else {
$donat404title = __( 'OooPs! Page Not Found', 'donat' );
$donat404subtitle = __( 'This page seems to have slipped through a time portal', 'donat' );
$donat404description = __( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'donat' );
$donat404btntext = __( ' Back To Home', 'donat');
}
// get header //
get_header();
if(!empty(donat_opt('donat_error_bg', 'url' ) )){
$bg_url = donat_opt('donat_error_bg', 'url' );
}else{
$bg_url = '';
}
echo '<section class="space">';
echo '<div class="container">';
echo '<div class="error-img">';
if(!empty(donat_opt('donat_error_img', 'url' ) )){
echo '<img src="'.esc_url( donat_opt('donat_error_img', 'url' ) ).'" alt="'.esc_attr__('404 image', 'donat').'">';
}else{
echo '<img src="'.get_template_directory_uri().'/assets/img/error_image.png" alt="'.esc_attr__('404 image', 'donat').'">';
}
echo '</div>';
echo '<div class="error-content">';
if(!empty($donat404title)){
echo '<h2 class="error-title fw-extrabold mt-50">'.wp_kses_post( $donat404title ).'</h2>';
}
if(!empty($donat404subtitle)){
echo '<p class="error-text">'.wp_kses_post( $donat404subtitle ).'</p>';
}
if(!empty($donat404btntext)):
echo '<a href="'.esc_url( home_url('/') ).'" class="th-btn"><i class="fas fa-home me-2"></i> '.esc_html( $donat404btntext ).'</a>';
endif;
echo ' </div>';
echo '</div>';
echo '</section>';
//footer
get_footer();