MediaWiki master
SlideshowImageGallery.php
Go to the documentation of this file.
1<?php
24
26 public function __construct( $mode = 'traditional', IContextSource $context = null ) {
27 parent::__construct( $mode, $context );
28 // Does not support per row option.
29 $this->mPerRow = 0;
30 }
31
36 protected function getModules() {
37 return [ 'mediawiki.page.gallery.slideshow' ];
38 }
39
40 public function setAdditionalOptions( $params ) {
41 $this->mAttribs['data-showthumbnails'] = isset( $params['showthumbnails'] );
42 }
43}
array $params
The job parameters.
__construct( $mode='traditional', IContextSource $context=null)
Create a new image gallery object.
setAdditionalOptions( $params)
Allow setting additional options.
getModules()
Add javascript adds interface elements.
Interface for objects which can provide a MediaWiki context on request.