MediaWiki REL1_33
SlideshowImageGallery.php
Go to the documentation of this file.
1<?php
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}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
IContextSource $context
__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.
$params