<?php
if($_GET['do']!='article'):
// $this->import('\MobileDetection\Mobile_Detection','Mobile_Detection');
// if ($this->Mobile_Detection->getDeviceType() == 'phone') $isPhone = true;
if (\Environment::get('agent')->mobile) $isPhone = true;
if ($isPhone)
{
$width = 640;
$height = 183;
$top = 20;
}
else
{
$width = 1920;
$height = 550;
$top = 90;
}
?>
<div class="ls-slide <?php echo $this->class; ?>"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?> data-ls="slidedelay: 4000; transition2d: 2,7,9;">
<img src="<?= $this->getImage($this->elements['image_background'], $width, $height, 'center_center'); ?>" alt="<?= $this->elements['image_background'] ?>" class="ls-bg">
<?php if ($this->elements['title_line_1']): ?><h3 class="ls-l line_1" style="top: <?= $top; ?>px; margin-bottom: 6px;"><span><?= $this->elements['title_line_1'] ?></span></h3><?php endif ?>
<?php if ($this->elements['title_line_2']): ?><h3 class="ls-l line_2" data-ls="delayin: 200" style="top: <?= $top; ?>px"><span><?= $this->elements['title_line_2'] ?></span></h3><?php endif ?>
</div>
<?php endif; ?>