MediaWiki master
NolinesImageGallery.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Gallery;
8
15 protected function getThumbPadding() {
16 return 0;
17 }
18
20 protected function getGBBorders() {
21 // This accounts for extra space between <li> elements.
22 return 4;
23 }
24
26 protected function getVPad( $boxHeight, $thumbHeight ) {
27 return 0;
28 }
29}
30
32class_alias( NolinesImageGallery::class, 'NolinesImageGallery' );
getGBBorders()
Get how much extra space the borders around the image takes up.For this mode, it is 2px borders on ea...
getThumbPadding()
How much padding the thumb has between the image and the inner div that contains the border....
getVPad( $boxHeight, $thumbHeight)
Get vertical padding for a thumbnail.Generally this is the total height minus how high the thumb is....