Browse
For agents
About
Photonic Gallery & Lightbox for Flickr, SmugMug & Others
/
2.43
Photonic Gallery & Lightbox for Flickr, SmugMug & Others
v2.43
Switch version
3.36
3.35
3.34
3.33
2.19
2.20
2.21
2.22
2.23
2.24
2.25
2.26
2.27
2.28
2.29
2.30
2.31
2.32
2.33
2.34
2.40
2.41
2.42
2.43
2.44
All 141 releases
Overview
Code
photonic
/
Lightboxes
/
Swipebox.php
Swipebox.php
in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 2.43, at Lightboxes/Swipebox.php
15 lines
361 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
namespace
Photonic_Plugin
\
Lightboxes
;
3
4
require_once
(
'
Lightbox.php
'
)
;
5
6
class
Swipebox
extends
Lightbox
{
7
function
__construct
(
)
{
8
$
this
->
library
=
'
swipebox
'
;
9
parent
::
__construct
(
)
;
10
}
11
12
function
get_photo_attributes
(
$
photo_data
,
$
module
)
{
13
return
!
empty
(
$
photo_data
[
'
video
'
]
)
?
'
data-html5-href="
'
.
$
photo_data
[
'
video
'
]
.
'
"
'
:
'
'
;
14
}
15
}