MediaWiki
REL1_31
SlideshowImageGallery.php
Go to the documentation of this file.
1
<?php
23
class
SlideshowImageGallery
extends
TraditionalImageGallery
{
24
function
__construct
( $mode =
'traditional'
,
IContextSource
$context
=
null
) {
25
parent::__construct( $mode,
$context
);
26
// Does not support per row option.
27
$this->mPerRow = 0;
28
}
29
34
protected
function
getModules
() {
35
return
[
'mediawiki.page.gallery.slideshow'
];
36
}
37
38
public
function
setAdditionalOptions
(
$params
) {
39
$this->mAttribs[
'data-showthumbnails'
] = isset(
$params
[
'showthumbnails'
] );
40
}
41
}
ContextSource\$context
IContextSource $context
Definition
ContextSource.php:33
SlideshowImageGallery
Definition
SlideshowImageGallery.php:23
SlideshowImageGallery\__construct
__construct( $mode='traditional', IContextSource $context=null)
Create a new image gallery object.
Definition
SlideshowImageGallery.php:24
SlideshowImageGallery\setAdditionalOptions
setAdditionalOptions( $params)
Allow setting additional options.
Definition
SlideshowImageGallery.php:38
SlideshowImageGallery\getModules
getModules()
Add javascript adds interface elements.
Definition
SlideshowImageGallery.php:34
TraditionalImageGallery
Definition
TraditionalImageGallery.php:23
IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition
IContextSource.php:53
$params
$params
Definition
styleTest.css.php:40
includes
gallery
SlideshowImageGallery.php
Generated on Mon Nov 25 2024 15:34:48 for MediaWiki by
1.10.0