aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/theme_preview/miscellaneous/lightbox.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/developers/views/default/theme_preview/miscellaneous/lightbox.php')
-rw-r--r--mod/developers/views/default/theme_preview/miscellaneous/lightbox.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/mod/developers/views/default/theme_preview/miscellaneous/lightbox.php b/mod/developers/views/default/theme_preview/miscellaneous/lightbox.php
new file mode 100644
index 000000000..b673c4ee0
--- /dev/null
+++ b/mod/developers/views/default/theme_preview/miscellaneous/lightbox.php
@@ -0,0 +1,19 @@
+<?php
+
+elgg_load_js('lightbox');
+elgg_load_css('lightbox');
+
+$ipsum = elgg_view('developers/ipsum');
+
+$link = elgg_view('output/url', array(
+ 'text' => 'Open lighbox',
+ 'href' => "#elgg-lightbox-test",
+ 'class' => 'elgg-lightbox'
+));
+
+echo $link;
+echo '<div class="hidden">';
+echo elgg_view_module('aside', 'Lightbox Test', $ipsum, array(
+ 'id' => 'elgg-lightbox-test'
+));
+echo '</div>'; \ No newline at end of file