Move PackedHoverImageGallery from PackedOverlayImageGallery.php

Change-Id: I7a764fa89637dc7c3865dbbbbe0d90d5bc268ed2
This commit is contained in:
Zoranzoki21 2019-04-06 14:12:02 +02:00
parent b5e255e914
commit 26faca6a20
4 changed files with 29 additions and 11 deletions

View file

@ -214,7 +214,6 @@
<exclude-pattern>*/includes/diff/DairikiDiff\.php</exclude-pattern>
<exclude-pattern>*/includes/Feed\.php</exclude-pattern>
<exclude-pattern>*/includes/filerepo/file/LocalFile\.php</exclude-pattern>
<exclude-pattern>*/includes/gallery/PackedOverlayImageGallery\.php</exclude-pattern>
<exclude-pattern>*/includes/htmlform/HTMLFormElement\.php</exclude-pattern>
<exclude-pattern>*/includes/libs/filebackend/FileBackendStore\.php</exclude-pattern>
<exclude-pattern>*/includes/libs/filebackend/FSFileBackend\.php</exclude-pattern>

View file

@ -1070,7 +1070,7 @@ $wgAutoloadLocalClasses = [
'PPNode_Hash_Tree' => __DIR__ . '/includes/parser/Preprocessor_Hash.php',
'PPTemplateFrame_DOM' => __DIR__ . '/includes/parser/Preprocessor_DOM.php',
'PPTemplateFrame_Hash' => __DIR__ . '/includes/parser/Preprocessor_Hash.php',
'PackedHoverImageGallery' => __DIR__ . '/includes/gallery/PackedOverlayImageGallery.php',
'PackedHoverImageGallery' => __DIR__ . '/includes/gallery/PackedHoverImageGallery.php',
'PackedImageGallery' => __DIR__ . '/includes/gallery/PackedImageGallery.php',
'PackedOverlayImageGallery' => __DIR__ . '/includes/gallery/PackedOverlayImageGallery.php',
'Page' => __DIR__ . '/includes/page/Page.php',

View file

@ -0,0 +1,28 @@
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
*/
/**
* Same as Packed except different CSS is applied to make the
* caption only show up on hover. If a touch screen is detected,
* falls back to PackedHoverGallery. Degrades gracefully for
* screen readers.
*/
class PackedHoverImageGallery extends PackedOverlayImageGallery {
}

View file

@ -53,12 +53,3 @@ class PackedOverlayImageGallery extends PackedImageGallery {
. "\n\t\t\t</div></div>";
}
}
/**
* Same as Packed except different CSS is applied to make the
* caption only show up on hover. If a touch screen is detected,
* falls back to PackedHoverGallery. Degrades gracefully for
* screen readers.
*/
class PackedHoverImageGallery extends PackedOverlayImageGallery {
}