Commit 6b15ed6797996207de9884c913ef90ef9910df77
1 parent
397c1b54
PT:1434165: Lightbox multiple image support added. Thumbnail shadow image css update.
Committed by: Jarrett Jordaan Reviewed by: Megan Watson
Showing
3 changed files
with
6 additions
and
5 deletions
plugins/thumbnails/resources/thumbnails.css
| 1 | .thumb-shadow { | 1 | .thumb-shadow { |
| 2 | float:left; | 2 | float:left; |
| 3 | - background: url(plugins/thumbnails/templates/shadowAlpha.png) no-repeat bottom right !important; | ||
| 4 | - background: url(plugins/thumbnails/templates/shadow.gif) no-repeat bottom right; | 3 | + background: url(../templates/shadowAlpha.png) no-repeat bottom right !important; |
| 4 | + background: url(../templates/shadow.gif) no-repeat bottom right; | ||
| 5 | margin: 10px 0 0 10px !important; | 5 | margin: 10px 0 0 10px !important; |
| 6 | margin: 10px 0 0 5px; | 6 | margin: 10px 0 0 5px; |
| 7 | } | 7 | } |
plugins/thumbnails/templates/thumbnail_viewlet.smarty
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | {literal} | 2 | {literal} |
| 3 | <script type="text/javascript"> | 3 | <script type="text/javascript"> |
| 4 | $(document).ready(function(){ | 4 | $(document).ready(function(){ |
| 5 | - $('#thumb a').lightBox(); | 5 | + $('#thumb_{/literal}{$documentId}{literal} a').lightBox(); |
| 6 | }); | 6 | }); |
| 7 | </script> | 7 | </script> |
| 8 | {/literal} | 8 | {/literal} |
| @@ -10,9 +10,9 @@ | @@ -10,9 +10,9 @@ | ||
| 10 | <div class="thumb-shadow"> | 10 | <div class="thumb-shadow"> |
| 11 | <div> | 11 | <div> |
| 12 | {if $url && $modal} | 12 | {if $url && $modal} |
| 13 | - <div id="thumb" class="thumb"> | 13 | + <div id="thumb_{/literal}{$documentId}{literal}" class="thumb"> |
| 14 | <a href='{$url}' rel="lightbox" title="{$title}"> | 14 | <a href='{$url}' rel="lightbox" title="{$title}"> |
| 15 | - <img src="{$thumbnail}" {if $height}height="{$height}"{/if} class="lightbox_window"/> | 15 | + <img id="img{$documentId}" src="{$thumbnail}" {if $height}height="{$height}"{/if} class="lightbox_window"/> |
| 16 | </div> | 16 | </div> |
| 17 | {else} | 17 | {else} |
| 18 | <a href='{$url}' target='_blank'> | 18 | <a href='{$url}' target='_blank'> |
plugins/thumbnails/thumbnails.php
| @@ -296,6 +296,7 @@ class ThumbnailViewlet extends KTDocumentViewlet { | @@ -296,6 +296,7 @@ class ThumbnailViewlet extends KTDocumentViewlet { | ||
| 296 | $thumbnailUrl = str_replace(KT_DIR, $sHostPath, $thumbnailUrl); | 296 | $thumbnailUrl = str_replace(KT_DIR, $sHostPath, $thumbnailUrl); |
| 297 | 297 | ||
| 298 | $templateData = array( | 298 | $templateData = array( |
| 299 | + 'documentId' => $documentId, | ||
| 299 | 'thumbnail' => $thumbnailUrl, | 300 | 'thumbnail' => $thumbnailUrl, |
| 300 | 'url' => $url, | 301 | 'url' => $url, |
| 301 | 'modal'=>$modal, | 302 | 'modal'=>$modal, |