blob: 5f3764756f4551c3efd79d6d7a2154d00206388c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
/**
* Elgg lightbox
*
* Usage
* Apply the class elgg-lightbox to links.
*
* Overriding
* In a plugin, override this view and override the registration for the
* lightbox JavaScript and CSS (@see elgg_views_boot()).
*
* @todo add support for passing options: $('#myplugin-lightbox').elgg.ui.lightbox(options);
*/
?>
/**
* Lightbox initialization
*/
elgg.ui.lightbox_init = function() {
$(".elgg-lightbox").fancybox();
}
elgg.register_hook_handler('init', 'system', elgg.ui.lightbox_init);
<?php
$js_path = elgg_get_config('path');
$js_path = "{$js_path}vendors/jquery/fancybox/jquery.fancybox-1.3.4.pack.js";
include $js_path;
|