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 | 1 | .thumb-shadow { |
| 2 | 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 | 5 | margin: 10px 0 0 10px !important; |
| 6 | 6 | margin: 10px 0 0 5px; |
| 7 | 7 | } | ... | ... |
plugins/thumbnails/templates/thumbnail_viewlet.smarty
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | {literal} |
| 3 | 3 | <script type="text/javascript"> |
| 4 | 4 | $(document).ready(function(){ |
| 5 | - $('#thumb a').lightBox(); | |
| 5 | + $('#thumb_{/literal}{$documentId}{literal} a').lightBox(); | |
| 6 | 6 | }); |
| 7 | 7 | </script> |
| 8 | 8 | {/literal} |
| ... | ... | @@ -10,9 +10,9 @@ |
| 10 | 10 | <div class="thumb-shadow"> |
| 11 | 11 | <div> |
| 12 | 12 | {if $url && $modal} |
| 13 | - <div id="thumb" class="thumb"> | |
| 13 | + <div id="thumb_{/literal}{$documentId}{literal}" class="thumb"> | |
| 14 | 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 | 16 | </div> |
| 17 | 17 | {else} |
| 18 | 18 | <a href='{$url}' target='_blank'> | ... | ... |
plugins/thumbnails/thumbnails.php
| ... | ... | @@ -296,6 +296,7 @@ class ThumbnailViewlet extends KTDocumentViewlet { |
| 296 | 296 | $thumbnailUrl = str_replace(KT_DIR, $sHostPath, $thumbnailUrl); |
| 297 | 297 | |
| 298 | 298 | $templateData = array( |
| 299 | + 'documentId' => $documentId, | |
| 299 | 300 | 'thumbnail' => $thumbnailUrl, |
| 300 | 301 | 'url' => $url, |
| 301 | 302 | 'modal'=>$modal, | ... | ... |