From 5bb588f9dac320ba16f1d08634e2a26a8dd895a2 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 21 Mar 2011 23:51:13 +0000 Subject: Refs #2882 basic lightbox git-svn-id: http://code.elgg.org/elgg/trunk@8808 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/views.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engine') 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'); -- cgit v1.2.3