system/modules/hideaway/templates/ce_hideaway_list_header.html5 line 6

Open in your IDE?
  1. <?php
  2. if ($this->entry['page_image_path']):
  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="<?php echo $this->class; ?> reader block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
  20. <div id="layerslider" style="width: 100%; height: <?= ($isPhone ? '183px' : '550px') ?>;">
  21. <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;">
  22. <img src="<?= $this->getImage($this->entry['page_image_path'], $width, $height, 'center_center'); ?>" alt="<?= $this->entry['page_image_meta']['de']['title'] ?>" class="ls-bg">
  23. <h3 class="ls-l line_1" style="top: <?= $top; ?>px; margin-bottom: 6px;"><span><?= $this->entry['row']['title'] ?></span></h3>
  24. <?php if ($this->entry['row']['pageimage_subline']): ?><h3 class="ls-l line_2" data-ls="delayin: 200" style="top: <?= $top; ?>px;"><span><?= $this->entry['row']['pageimage_subline'] ?></span></h3><?php endif ?>
  25. </div>
  26. </div>
  27. </div>
  28. <?php endif ?>