Elgg
Version 4.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Javascript
SetLightboxConfigHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Javascript
;
4
10
class
SetLightboxConfigHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Hook
$hook) {
20
$return = $hook->getValue();
21
22
$return[
'lightbox'
] = [
23
'current'
=>
elgg_echo
(
'js:lightbox:current'
, [
'{current}'
,
'{total}'
]),
24
'previous'
=>
elgg_view_icon
(
'caret-left'
),
25
'next'
=>
elgg_view_icon
(
'caret-right'
),
26
'close'
=>
elgg_view_icon
(
'times'
),
27
'opacity'
=> 0.5,
28
'maxWidth'
=>
'990px'
,
29
'maxHeight'
=>
'990px'
,
30
'initialWidth'
=>
'300px'
,
31
'initialHeight'
=>
'300px'
,
32
];
33
34
return
$return;
35
}
36
}
elgg_echo
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition:
languages.php:18
Elgg\Hook
Models an event passed to hook handlers.
Definition:
Hook.php:11
Elgg
Definition:
ActionsService.php:3
Elgg\Javascript
Definition:
AddSRIConfig.php:3
elgg_view_icon
elgg_view_icon($name, $vars=[])
View an icon glyph.
Definition:
views.php:1303
Elgg\Javascript\SetLightboxConfigHandler
Adds lightbox config to js elgg.data object.
Definition:
SetLightboxConfigHandler.php:10
Elgg\Javascript\SetLightboxConfigHandler\__invoke
__invoke(\Elgg\Hook $hook)
Set lightbox config.
Definition:
SetLightboxConfigHandler.php:19
Generated on Thu Mar 30 2023 00:00:20 for Elgg by
1.8.11