stories_item.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @var $model \app\models\News
  4. * @var $key
  5. * @var $index
  6. * @var $widget
  7. */
  8. ?>
  9. <!-- story -->
  10. <div id="story-<?=$model->id?>" class="story" data-id="story-<?=$model->id?>" data-last-updated="<?=strtotime($model->dt_pub)?>" data-photo="<?=$model->preview->url?>">
  11. <a class="item-link" href="<?=$model->url?>">
  12. <span class="item-preview">
  13. <img src="<?=$model->preview->getUrl(\app\models\base\Image::SIZE_680x383)?>" />
  14. </span>
  15. <span class="info" >
  16. <strong class="name" itemProp="name"><?=$model->title?></strong>
  17. <span class="time"><?=$model->dt_pub?></span>
  18. </span>
  19. </a>
  20. <ul class="items">
  21. <!-- story item -->
  22. <li
  23. data-id="<?=$model->image->url?>"
  24. data-time="<?=strtotime($model->dt_pub)?>"
  25. class=""
  26. >
  27. <a href="<?=$model->url?>"
  28. data-src = "<?=$model->image->url?>"
  29. data-type="photo"
  30. data-length="3"
  31. data-link="<?=$model->url?>"
  32. data-linkText="<?=$model->title?>"
  33. >
  34. <img src="<?=$model->image->getUrl(\app\models\base\Image::SIZE_680x383)?>" />
  35. </a>
  36. </li>
  37. <!--/ story item -->
  38. </ul>
  39. </div>
  40. <!--/ story -->