Commit 9e286bbf56ddb035944c8879c7788c4ea4dc442c

Authored by Dima
2 parents b1d85666 0ba21016

Merge branch 'remote_work' into 'master'

update

See merge request !36
Showing 1 changed file with 11 additions and 20 deletions   Show diff stats
src/app/frontend/views/page/item.php
... ... @@ -32,9 +32,18 @@
32 32 '</li>';
33 33  
34 34 }
  35 + else
  36 + {
  37 + $data_images .=
  38 + '<li class="float width_400">
  39 + <img src="/images/item_main_photo.jpg" alt="" width="400" height="400">
  40 + </li>
  41 +
  42 + <li class="float width_128"><img src="/images/item_photo.jpg" alt="" width="128" height="128"></li>
  43 + <li class="float width_128 last"><img src="/images/item_photo.jpg" alt="" width="128" height="128"></li>';
  44 + }
35 45 if( !empty( $item['images'] ) )
36 46 {
37   -
38 47 foreach( $item['images'] as $k => $i )
39 48 {
40 49 $data_images .=
... ... @@ -45,25 +54,7 @@
45 54 '</li>';
46 55 }
47 56 }
48   - elseif( !empty( $item['cover'] ) && empty( $item['images'] ) )
49   - {
50   - $data_images .=
51   - '<li class="float width_400">'.
52   - '<a href="'.$this->storage->getPhotoUrl( $item['cover'], 'avatar', '800x' ).'" title="'.$item['title'].'" data-options="thumbnail: \''.$this->storage->getPhotoUrl( $item['cover'], 'avatar', '128x' ).'\'" class="thumbnail">'.
53   - '<img src="'.$this->storage->getPhotoUrl( $item['cover'], 'avatar', '400x' ).'" alt="'.$item['title'].'" class="image_400">'.
54   - '</a>'.
55   - '</li>';
56   - }
57   - else
58   - {
59   - $data_images .=
60   - '<li class="float width_400">
61   - <img src="/images/item_main_photo.jpg" alt="" width="400" height="400">
62   - </li>
63   -
64   - <li class="float width_128"><img src="/images/item_photo.jpg" alt="" width="128" height="128"></li>
65   - <li class="float width_128 last"><img src="/images/item_photo.jpg" alt="" width="128" height="128"></li>';
66   - }
  57 +
67 58 echo( $data_images );
68 59  
69 60 ?>
... ...