| 1 |
<?php |
| 2 |
namespace Photonic_Plugin\Options; |
| 3 |
|
| 4 |
abstract class Option_Tab { |
| 5 |
var $options; |
| 6 |
|
| 7 |
/** |
| 8 |
* @return array |
| 9 |
*/ |
| 10 |
public function get_options() { |
| 11 |
return $this->options; |
| 12 |
} |
| 13 |
|
| 14 |
function title_styles() { |
| 15 |
$ret = [ |
| 16 |
"regular" => "<img src='".trailingslashit(PHOTONIC_URL).'include/images/title-regular.png'."' />Normal title display using the HTML \"title\" attribute", |
| 17 |
"below" => "<img src='".trailingslashit(PHOTONIC_URL).'include/images/title-below.png'."' />Below the thumbnail (Doesn't work for Random Justified Gallery and Mosaic Layout)", |
| 18 |
"tooltip" => "<img src='".trailingslashit(PHOTONIC_URL).'include/images/title-jq-tooltip.png'."' />Using a JavaScript tooltip", |
| 19 |
"hover-slideup-show" => "<img src='".trailingslashit(PHOTONIC_URL).'include/images/title-slideup.png'."' />Slide up from bottom upon hover", |
| 20 |
"slideup-stick" => "<img src='".trailingslashit(PHOTONIC_URL).'include/images/title-slideup.png'."' />Cover the lower portion always", |
| 21 |
'none' => 'No title' |
| 22 |
]; |
| 23 |
return $ret; |
| 24 |
} |
| 25 |
|
| 26 |
function selection_range($min, $max) { |
| 27 |
$ret = []; |
| 28 |
for ($i = $min; $i <= $max; $i++) { |
| 29 |
$ret[$i] = $i; |
| 30 |
} |
| 31 |
return $ret; |
| 32 |
} |
| 33 |
} |