From a3d1ce47d3bf31bfc5bea06f76abdfb404c5f2fc Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 11 Dec 2016 18:37:40 -0500 Subject: Add slideshow for images --- app/Template/task_file/images.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'app/Template/task_file/images.php') 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 @@
- <?= $this->text->e($file['name']) ?> + 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'])), + ) + )) ?> +