37 elgg.provide(
'elgg.ui.lightbox');
44 elgg.ui.lightbox.init =
function() {
45 function registerDeprecationError() {
46 elgg.register_error(
"fancybox lightbox has been replaced by colorbox", 9999999999999);
49 elgg.ui.lightbox.bind(
".elgg-lightbox");
50 elgg.ui.lightbox.bind(
".elgg-lightbox-photo", {photo:
true});
52 if (typeof $.fancybox ===
'undefined') {
55 __noSuchMethod__ : registerDeprecationError,
57 registerDeprecationError();
62 $.fn.fancybox =
function (arg) {
63 registerDeprecationError();
64 if (arg.type ===
'image') {
79 elgg.ui.lightbox.bind =
function (selector, opts) {
85 opts = $.extend({},
elgg.ui.lightbox.getSettings(), opts);
87 $(
document).
on(
'click', selector,
function (e) {
89 href = $this.prop(
'href') || $this.prop(
'src'),
90 dataOpts = $this.data(
'colorboxOpts');
98 $.colorbox($.
extend({href: href}, opts, dataOpts));
107 elgg.ui.lightbox.close =
function() {
111 elgg.register_hook_handler(
'init',
'system',
elgg.ui.lightbox.init);
116 $js_path =
"{$js_path}vendors/jquery/colorbox/jquery.colorbox-min.js";
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed on
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg extend
Merges two or more objects together and returns the result.
elgg isPlainObject
Check if the value is a "plain" object (i.e., created by {} or new Object())
GNU GENERAL PUBLIC LICENSE June Free Software Franklin Fifth MA USA Everyone is permitted to copy and distribute verbatim copies of this license document
elgg echo
Translates a string.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.