|
2 | 2 | <div class="file-thumbnails"> |
3 | 3 | <?php foreach ($images as $file): ?> |
4 | 4 | <div class="file-thumbnail"> |
5 | | - <?= $this->app->component('image-slideshow', array( |
6 | | - 'images' => $images, |
7 | | - 'image' => $file, |
8 | | - 'regex' => 'FILE_ID', |
9 | | - 'url' => array( |
10 | | - 'image' => $this->url->to('WikiFileViewController', 'image', array('plugin' => 'wiki', 'file_id' => 'FILE_ID')), |
11 | | - 'thumbnail' => $this->url->to('WikiFileViewController', 'thumbnail', array('plugin' => 'wiki', 'file_id' => 'FILE_ID')), |
12 | | - 'download' => $this->url->to('WikiFileViewController', 'download', array('plugin' => 'wiki', 'file_id' => 'FILE_ID')), |
13 | | - ) |
14 | | - )) ?> |
| 5 | + <?php if (APP_VERSION < '1.2.38'): ?> |
| 6 | + <?= $this->app->component('image-slideshow', array( |
| 7 | + 'images' => $images, |
| 8 | + 'image' => $file, |
| 9 | + 'regex' => 'FILE_ID', |
| 10 | + 'url' => array( |
| 11 | + 'image' => $this->url->to('WikiFileViewController', 'image', array('plugin' => 'wiki', 'file_id' => 'FILE_ID')), |
| 12 | + 'thumbnail' => $this->url->to('WikiFileViewController', 'thumbnail', array('plugin' => 'wiki', 'file_id' => 'FILE_ID')), |
| 13 | + 'download' => $this->url->to('WikiFileViewController', 'download', array('plugin' => 'wiki', 'file_id' => 'FILE_ID')), |
| 14 | + ) |
| 15 | + )) ?> |
| 16 | + <?php else: ?> |
| 17 | + <?= $this->app->component('image-slideshow', array( |
| 18 | + 'images' => $images, |
| 19 | + 'image' => $file, |
| 20 | + 'regex_file_id' => 'FILE_ID', |
| 21 | + 'regex_etag' => 'ETAG', |
| 22 | + 'url' => array( |
| 23 | + 'image' => $this->url->to('WikiFileViewController', 'image', array('plugin' => 'wiki', 'file_id' => 'FILE_ID')), |
| 24 | + 'thumbnail' => $this->url->to('WikiFileViewController', 'thumbnail', array('plugin' => 'wiki', 'file_id' => 'FILE_ID')), |
| 25 | + 'download' => $this->url->to('WikiFileViewController', 'download', array('plugin' => 'wiki', 'file_id' => 'FILE_ID')), |
| 26 | + ) |
| 27 | + )) ?> |
| 28 | + <?php endif ?> |
15 | 29 |
|
16 | 30 | <div class="file-thumbnail-content"> |
17 | 31 | <div class="file-thumbnail-title"> |
18 | 32 | <div class="dropdown"> |
19 | 33 | <a href="#" class="dropdown-menu dropdown-menu-link-text" title="<?= $this->text->e($file['name']) ?>"><?= $this->text->e($file['name']) ?> <i class="fa fa-caret-down"></i></a> |
20 | 34 | <ul> |
21 | 35 | <li> |
22 | | - <?= $this->url->icon('download', t('Download'), 'WikiFileViewController', 'download', array('plugin' => 'wiki', 'file_id' => $file['id'], 'file_id' => $file['id'])) ?> |
| 36 | + <?= $this->url->icon('download', t('Download'), 'WikiFileViewController', 'download', array('plugin' => 'wiki', 'file_id' => $file['id'])) ?> |
23 | 37 | </li> |
24 | 38 | <?php if ($this->user->hasProjectAccess('WikiFileController', 'remove', $wiki['project_id'])): ?> |
25 | 39 | <li> |
|
0 commit comments