Changeset 19676
- Timestamp:
- 03/10/10 13:49:10 (6 months ago)
- Location:
- wikia/branches/ImageGallery/extensions/wikia/ImageLightbox
- Files:
-
- 3 added
- 4 modified
-
ImageLightbox.class.php (modified) (1 diff)
-
ImageLightbox.css (modified) (1 diff)
-
ImageLightbox.i18n.php (added)
-
ImageLightbox.js (modified) (1 diff)
-
ImageLightbox_setup.php (modified) (1 diff)
-
images (added)
-
images/page_white_text.png (added)
Legend:
- Unmodified
- Added
- Removed
-
wikia/branches/ImageGallery/extensions/wikia/ImageLightbox/ImageLightbox.class.php
r18548 r19676 36 36 $thumb = $image->getThumbnail($width, $height); 37 37 38 wfLoadExtensionMessages('ImageLightbox'); 39 38 40 $res = array( 39 41 'width' => $thumb->getWidth(), 40 42 'height' => $thumb->getHeight(), 43 'name' => $wgTitle->getText(), 41 44 'html' => $thumb->toHtml(), 42 45 'href' => $wgTitle->getLocalUrl(), 46 'msg' => array( 47 'tooltip' => wfMsg('lightbox_details_tooltip'), 48 ), 43 49 ); 44 50 -
wikia/branches/ImageGallery/extensions/wikia/ImageLightbox/ImageLightbox.css
r18548 r19676 5 5 6 6 #lightbox-link { 7 background-image: url( http://images.wikia.com/common/skins/common/images/magnify-clip.png);7 background-image: url(images/page_white_text.png); 8 8 display: inline-block; 9 height: 1 1px;10 width: 1 5px;9 height: 16px; 10 width: 16px; 11 11 } 12 12 -
wikia/branches/ImageGallery/extensions/wikia/ImageLightbox/ImageLightbox.js
r19302 r19676 66 66 }, function(res) { 67 67 if (res.html) { 68 // popup title69 var desc = imageName.replace(/_/g, ' ');70 71 68 // open modal 72 69 $.getScript(stylepath + '/common/jquery/jquery.wikia.modal.js?' + wgStyleVersion, function() { 73 var html = '<div id="lightbox-image" title="' + desc +'" style="text-align: center">' +70 var html = '<div id="lightbox-image" title="' + res.name + '" style="text-align: center">' + 74 71 res.html + 75 '<div id="lightbox-caption" class="neutral"><a id="lightbox-link" href="' + res.href + '" > </a></div>' +72 '<div id="lightbox-caption" class="neutral"><a id="lightbox-link" href="' + res.href + '" title="' + res.msg.tooltip + '"> </a></div>' + 76 73 '</div>'; 77 74 -
wikia/branches/ImageGallery/extensions/wikia/ImageLightbox/ImageLightbox_setup.php
r18513 r19676 13 13 $wgHooks['BeforePageDisplay'][] = 'ImageLightbox::beforePageDisplay'; 14 14 15 // i18n 16 $wgExtensionMessagesFiles['ImageLightbox'] = $dir.'/ImageLightbox.i18n.php'; 17 15 18 // Ajax dispatcher 16 19 $wgAjaxExportList[] = 'ImageLightboxAjax';
