aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/theme_preview/miscellaneous/lightbox.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2013-01-04 14:44:55 -0500
committerBrett Profitt <brett.profitt@gmail.com>2013-01-04 14:45:15 -0500
commitf17c0c674f084c48a0b2919ac8fe7136a819859f (patch)
treebb58d40698234ee934a18d64d1f5d7688aa7ab45 /mod/developers/views/default/theme_preview/miscellaneous/lightbox.php
parent5d762eaf47cef4785d9f051c387d6971b59bdd68 (diff)
downloadelgg-f17c0c674f084c48a0b2919ac8fe7136a819859f.tar.gz
elgg-f17c0c674f084c48a0b2919ac8fe7136a819859f.tar.bz2
Refs #3617. Added misc section for developer's theme preview.
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