templates/hideaway4you/dma_eg_default_slider_element.html5 line 23

Open in your IDE?
  1. <?php
  2. if($_GET['do']!='article'):
  3. // $this->import('\MobileDetection\Mobile_Detection','Mobile_Detection');
  4. // if ($this->Mobile_Detection->getDeviceType() == 'phone') $isPhone = true;
  5. if (\Environment::get('agent')->mobile) $isPhone = true;
  6. if ($isPhone)
  7. {
  8. $width = 640;
  9. $height = 183;
  10. $top = 20;
  11. }
  12. else
  13. {
  14. $width = 1920;
  15. $height = 550;
  16. $top = 90;
  17. }
  18. ?>
  19. <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;">
  20. <img src="<?= $this->getImage($this->elements['image_background'], $width, $height, 'center_center'); ?>" alt="<?= $this->elements['image_background'] ?>" class="ls-bg">
  21. <?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 ?>
  22. <?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 ?>
  23. </div>
  24. <?php endif; ?>