aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/views.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-21 23:51:13 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-21 23:51:13 +0000
commit5bb588f9dac320ba16f1d08634e2a26a8dd895a2 (patch)
treeb2a192c198bd9ca29c7e4aaca38e3ee8227f81be /engine/lib/views.php
parent05f8aeaf8b08a58267adc6569a64bee38e915b31 (diff)
downloadelgg-5bb588f9dac320ba16f1d08634e2a26a8dd895a2.tar.gz
elgg-5bb588f9dac320ba16f1d08634e2a26a8dd895a2.tar.bz2
Refs #2882 basic lightbox
git-svn-id: http://code.elgg.org/elgg/trunk@8808 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/views.php')
-rw-r--r--engine/lib/views.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index 98edf1502..6c3d481e3 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -1491,6 +1491,12 @@ function elgg_views_boot() {
elgg_load_js('jquery-ui');
elgg_load_js('jquery.form');
+ elgg_register_simplecache_view('js/lightbox');
+ $lightbox_js_url = elgg_get_simplecache_url('js', 'lightbox');
+ elgg_register_js('lightbox', $lightbox_js_url);
+ $lightbox_css_url = 'vendors/jquery/fancybox/jquery.fancybox-1.3.4.css';
+ elgg_register_css('lightbox', $lightbox_css_url);
+
elgg_register_event_handler('ready', 'system', 'elgg_views_register_core_head_elements');
elgg_register_event_handler('pagesetup', 'system', 'elgg_views_add_rss_link');