Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lightbox2
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
lightbox2
Commits
e5b08051
Commit
e5b08051
authored
Oct 1, 2016
by
Jon Kamke
Committed by
Joseph Olstad
Oct 1, 2016
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1731332
by kamkejj: Views Lightbox trigger and exposed filter
parent
d5b5c100
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lightbox2_handler_field_lightbox2.inc
+14
-2
14 additions, 2 deletions
lightbox2_handler_field_lightbox2.inc
with
14 additions
and
2 deletions
lightbox2_handler_field_lightbox2.inc
100644 → 100755
+
14
−
2
View file @
e5b08051
...
@@ -124,8 +124,20 @@ class lightbox2_handler_field_lightbox2 extends views_handler_field {
...
@@ -124,8 +124,20 @@ class lightbox2_handler_field_lightbox2 extends views_handler_field {
// We don't actually use the link, but we need it there for lightbox to function.
// We don't actually use the link, but we need it there for lightbox to function.
if
(
empty
(
$link
))
{
if
(
empty
(
$link
))
{
// Get the path name.
// Get the path name.
$path
=
isset
(
$_GET
[
'q'
])
?
$_GET
[
'q'
]
:
'<front>'
;
$url
=
isset
(
$_GET
[
'q'
])
?
$_GET
:
'<front>'
;
$link
=
url
(
$path
,
array
(
'absolute'
=>
TRUE
));
$path
=
''
;
$params
=
array
();
//Get the path and any parameters from the URL
foreach
(
$url
as
$key
=>
$value
)
{
if
(
$key
===
'q'
)
{
$path
=
$value
;
}
else
{
$params
[
$key
]
=
$value
;
}
}
$link
=
url
(
$path
,
array
(
'absolute'
=>
TRUE
,
'query'
=>
$params
));
}
}
// Get the token information and generate the value for the popup and the
// Get the token information and generate the value for the popup and the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment