HEX
Server: LiteSpeed
System: Linux server137.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: bibuzptr (1123)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/bibuzptr/elearning.bibu-edu.us/old/wp-content/themes/course-builder/404.php
<?php
/**
 * The template for displaying 404 pages (not found).
 *
 * @link https://codex.wordpress.org/Creating_an_Error_404_Page
 *
 */
$thim_options   = get_theme_mods();
$thim_404_src   = THIM_URI . "assets/images/404.png";

if ( isset( $thim_options['single_404_image'] ) && $thim_options['single_404_image'] <> '' ) {
    $thim_404_src = get_theme_mod( 'single_404_image' );
    if ( is_numeric( $thim_404_src ) ) {
        $logo_attachment = wp_get_attachment_image_src( $thim_404_src, 'full' );
        $thim_404_src   = $logo_attachment[0];
    }
}
?>

<section class="error-404 not-found">
	<div class="page-content">
		<img src="<?php echo esc_url( $thim_404_src ); ?>" alt="><?php esc_html_e( 'Page not found!', 'course-builder' ); ?>" />
		<h3 class="intro"><?php esc_html_e( 'Page not found!', 'course-builder' ); ?></h3>
		<p class="404-message"><?php echo wp_kses( sprintf( __( "Sorry, we can't find the page you are looking for. Please go to  <a href='%s'>Home.</a>", 'course-builder' ), esc_url( home_url( '/' ) ) ), array(
				'a' => array(
					'href'  => array(),
					'title' => array()
				)
			) ); ?></p>
	</div><!-- .page-content -->
</section><!-- .error-404 -->