Commit b7fd3b506688a47cf857b5199d5adaa35fdd02b0
1 parent
e2891476
-Brought back gallery short codes
Showing
1 changed file
with
26 additions
and
1 deletions
Show diff stats
frontend/views/page/view.php
| @@ -26,10 +26,35 @@ | @@ -26,10 +26,35 @@ | ||
| 26 | <section> | 26 | <section> |
| 27 | <div id="text-page"> | 27 | <div id="text-page"> |
| 28 | <div class="lead"> | 28 | <div class="lead"> |
| 29 | - <?= $model->lang->body ?> | 29 | + <?= $body ?> |
| 30 | </div> | 30 | </div> |
| 31 | </div> | 31 | </div> |
| 32 | </section> | 32 | </section> |
| 33 | + | ||
| 34 | + <?php if (!empty($images) && !empty($lefts)) { ?> | ||
| 35 | + <section> | ||
| 36 | + <div class="project owl-carousel"> | ||
| 37 | + | ||
| 38 | + <?php foreach ($images as $image) { ?> | ||
| 39 | + <div class="item"> | ||
| 40 | + <img class="img-responsive" src="<?= $image->getUrl() ?>" alt=""> | ||
| 41 | + </div> | ||
| 42 | + <?php } ?> | ||
| 43 | + | ||
| 44 | + </div> | ||
| 45 | + <!-- /.project owl-slider --> | ||
| 46 | + </section> | ||
| 47 | + <?php } ?> | ||
| 48 | + | ||
| 49 | + <?php if (!empty($lefts)) { ?> | ||
| 50 | + <section> | ||
| 51 | + <div id="text-page"> | ||
| 52 | + <div class="lead"> | ||
| 53 | + <?= $lefts ?> | ||
| 54 | + </div> | ||
| 55 | + </div> | ||
| 56 | + </section> | ||
| 57 | + <?php } ?> | ||
| 33 | 58 | ||
| 34 | </div> | 59 | </div> |
| 35 | <!-- /.col-md-9 --> | 60 | <!-- /.col-md-9 --> |