Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7413284
SlideshowMode.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
746 B
Referenced Files
None
Subscribers
None
SlideshowMode.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Ext\Gallery
;
use
Wikimedia\Parsoid\DOM\Element
;
class
SlideshowMode
extends
TraditionalMode
{
/**
* Create a SlideshowMode singleton.
* @param ?string $mode Only used by subclasses.
*/
protected
function
__construct
(
?
string
$mode
=
null
)
{
parent
::
__construct
(
$mode
??
'slideshow'
);
}
/** @inheritDoc */
protected
function
setAdditionalOptions
(
Opts
$opts
,
Element
$ul
):
void
{
$ul
->
setAttribute
(
'data-showthumbnails'
,
$opts
->
showthumbnails
?
'1'
:
''
);
}
/** @inheritDoc */
protected
function
perRow
(
Opts
$opts
,
Element
$ul
):
void
{
/* do nothing */
}
public
function
getModules
():
array
{
return
[
'mediawiki.page.gallery.slideshow'
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 00:58 (1 d, 18 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cb/91/a13914cdfbdceb20f54d1d7f05c5
Default Alt Text
SlideshowMode.php (746 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment