X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fgallery%2FPackedOverlayImageGallery.php;h=f9c131f930c7222cf0e802ec28ce765e5e696135;hb=4f42c2bbe4184830986910f9374bf913590b0096;hp=bba06fcfe558f6faf87fe8805ccb2aba397c5da3;hpb=6006a8895bc113f3bf5535b8800ee0945bcd8834;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/gallery/PackedOverlayImageGallery.php b/includes/gallery/PackedOverlayImageGallery.php index bba06fcfe5..f9c131f930 100644 --- a/includes/gallery/PackedOverlayImageGallery.php +++ b/includes/gallery/PackedOverlayImageGallery.php @@ -22,12 +22,13 @@ */ class PackedOverlayImageGallery extends PackedImageGallery { - /** * Add the wrapper html around the thumb's caption * - * @param String $galleryText The caption - * @param MediaTransformOutput|boolean $thumb The thumb this caption is for or false for bad image. + * @param string $galleryText The caption + * @param MediaTransformOutput|bool $thumb The thumb this caption is for + * or false for bad image. + * @return string */ protected function wrapGalleryText( $galleryText, $thumb ) { @@ -37,17 +38,19 @@ class PackedOverlayImageGallery extends PackedImageGallery { return ''; } - # ATTENTION: The newline after
is needed to accommodate htmltidy which - # in version 4.8.6 generated crackpot html in its absence, see: - # http://bugzilla.wikimedia.org/show_bug.cgi?id=1765 -Ævar + # ATTENTION: The newline after
is needed to + # accommodate htmltidy which in version 4.8.6 generated crackpot HTML + # in its absence, see: http://bugzilla.wikimedia.org/show_bug.cgi?id=1765 + # -Ævar $thumbWidth = $this->getGBWidth( $thumb ) - $this->getThumbPadding() - $this->getGBPadding(); $captionWidth = ceil( $thumbWidth - 20 ); $outerWrapper = '
'; + return "\n\t\t\t" . $outerWrapper . '
' . "\n" - . $galleryText - . "\n\t\t\t
"; + . $galleryText + . "\n\t\t\t
"; } } @@ -57,4 +60,5 @@ class PackedOverlayImageGallery extends PackedImageGallery { * falls back to PackedHoverGallery. Degrades gracefully for * screen readers. */ -class PackedHoverImageGallery extends PackedOverlayImageGallery { } +class PackedHoverImageGallery extends PackedOverlayImageGallery { +}