diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-12-11 18:37:40 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-12-11 18:37:40 -0500 |
commit | a3d1ce47d3bf31bfc5bea06f76abdfb404c5f2fc (patch) | |
tree | c0b973999c562495458e7524e9bd2e26fae606c8 /app/Template | |
parent | ffb392617895095b824a35150e620a68920f9260 (diff) |
Add slideshow for images
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/project_overview/images.php | 11 | ||||
-rw-r--r-- | app/Template/task_file/images.php | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/app/Template/project_overview/images.php b/app/Template/project_overview/images.php index 7f38e2b1..cdaba44a 100644 --- a/app/Template/project_overview/images.php +++ b/app/Template/project_overview/images.php @@ -2,7 +2,16 @@ <div class="file-thumbnails"> <?php foreach ($images as $file): ?> <div class="file-thumbnail"> - <a href="<?= $this->url->href('FileViewerController', 'show', array('project_id' => $project['id'], 'file_id' => $file['id'])) ?>" class="popover"><img src="<?= $this->url->href('FileViewerController', 'thumbnail', array('file_id' => $file['id'], 'project_id' => $project['id'])) ?>" title="<?= $this->text->e($file['name']) ?>" alt="<?= $this->text->e($file['name']) ?>"></a> + <?= $this->app->component('image-slideshow', array( + 'images' => $images, + 'image' => $file, + 'regex' => 'FILE_ID', + 'url' => array( + 'image' => $this->url->to('FileViewerController', 'image', array('file_id' => 'FILE_ID', 'project_id' => $project['id'])), + 'thumbnail' => $this->url->to('FileViewerController', 'thumbnail', array('file_id' => 'FILE_ID', 'project_id' => $project['id'])), + ) + )) ?> + <div class="file-thumbnail-content"> <div class="file-thumbnail-title"> <div class="dropdown"> diff --git a/app/Template/task_file/images.php b/app/Template/task_file/images.php index 81c33151..efe18d03 100644 --- a/app/Template/task_file/images.php +++ b/app/Template/task_file/images.php @@ -2,7 +2,16 @@ <div class="file-thumbnails"> <?php foreach ($images as $file): ?> <div class="file-thumbnail"> - <a href="<?= $this->url->href('FileViewerController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>" class="popover"><img src="<?= $this->url->href('FileViewerController', 'thumbnail', array('file_id' => $file['id'], 'project_id' => $task['project_id'], 'task_id' => $file['task_id'])) ?>" title="<?= $this->text->e($file['name']) ?>" alt="<?= $this->text->e($file['name']) ?>"></a> + <?= $this->app->component('image-slideshow', array( + 'images' => $images, + 'image' => $file, + 'regex' => 'FILE_ID', + 'url' => array( + 'image' => $this->url->to('FileViewerController', 'image', array('file_id' => 'FILE_ID', 'project_id' => $task['project_id'], 'task_id' => $task['id'])), + 'thumbnail' => $this->url->to('FileViewerController', 'thumbnail', array('file_id' => 'FILE_ID', 'project_id' => $task['project_id'], 'task_id' => $task['id'])), + ) + )) ?> + <div class="file-thumbnail-content"> <div class="file-thumbnail-title"> <div class="dropdown"> |