HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux srvntsweb01 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: admntserv (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/ethnikamauricia.com/wp-content/themes/soledad/404.php
<?php
/**
 * The template for displaying 404 pages (not found)
 *
 * @package Wordpress
 * @since   1.0
 */
get_header();

/**
 * Set default value if fields is not isset
 *
 */
$image = ! get_theme_mod( 'penci_not_found_image' ) ? get_template_directory_uri() . '/images/404.png' : get_theme_mod( 'penci_not_found_image' );
$heading_mod = get_theme_mod( 'penci_not_found_heading' );
$heading_text = ! ( $heading_mod ) ? "Apologies, unfortunately we couldn't find that page" : $heading_mod;
$heading_sub_mod = get_theme_mod( 'penci_not_found_sub_heading' );
$heading_sub_text = ! ( $heading_sub_mod ) ? "OOPS! Page you're looking for doesn't exist. Please use search for help" : $heading_sub_mod;
?>

<div class="container page-404">
	<div class="error-404">
		<div class="error-image">
			<img src="<?php echo esc_url( $image ); ?>" alt="404" />
		</div>
		<?php if ( ! empty( $heading_sub_text ) ): ?>
			<p class="sub-heading-text-404"><?php echo wp_kses( $heading_sub_text, penci_allow_html() ); ?></p>
		<?php endif; ?>
		<?php if ( ! get_theme_mod( 'penci_not_found_hide_search' ) ) : get_search_form(); endif; ?>
		<?php if ( ! get_theme_mod( 'penci_not_found_hide_backhome' ) ) : ?>
		<p class="go-back-home"><a href="<?php echo esc_url( home_url('/') ); ?>"><?php esc_html_e( 'Back to Home Page', 'soledad' ); ?></a></p>
		<?php endif; ?>
	</div>

<?php get_footer(); ?>