10 if (typeof
elgg !=
'object') {
11 throw new Error(
'elgg configuration object is not defined! You must include the js/initialize_elgg view in html head before JS library files!');
31 define(
'jquery.colorbox');
41 $elggDir->getPath(
"js/lib/elgglib.js"),
44 $elggDir->getPath(
"js/classes/ElggEntity.js"),
45 $elggDir->getPath(
"js/classes/ElggUser.js"),
46 $elggDir->getPath(
"js/classes/ElggPriorityList.js"),
49 $elggDir->getPath(
"js/lib/prototypes.js"),
50 $elggDir->getPath(
"js/lib/hooks.js"),
51 $elggDir->getPath(
"js/lib/security.js"),
52 $elggDir->getPath(
"js/lib/languages.js"),
53 $elggDir->getPath(
"js/lib/ajax.js"),
54 $elggDir->getPath(
"js/lib/session.js"),
55 $elggDir->getPath(
"js/lib/pageowner.js"),
56 $elggDir->getPath(
"js/lib/configuration.js"),
57 $elggDir->getPath(
"js/lib/comments.js"),
60 $elggDir->getPath(
"js/lib/ui.js"),
61 $elggDir->getPath(
"js/lib/ui.widgets.js"),
74 <?= $expression ?> = <?= json_encode(
$value) ?>;
82 define(
'jquery',
function () {
90 define(
'jquery-ui/datepicker', jQuery.datepicker);
92 define(
'elgg', [
'jquery',
'languages/' +
elgg.get_language()],
function($,
translations) {
93 elgg.add_translation(elgg.get_language(), translations);
102 if (!window._require_queue) {
103 if (window.console) {
104 console.log(
'Elgg\'s require() shim is not defined. Do not override the view "page/elements/head".');
110 delete window._require_queue;
113 elgg.trigger_hook(
'boot',
'system');
115 require([
'elgg/init',
'elgg/ready']);
119 elgg_deprecated_notice(
'lightbox/settings.js view has been deprecated. Use "getOptions", "ui.lightbox" ' .
120 'JS plugin hook or data-colorbox-opts attribute instead',
'2.2');
122 require([
'elgg'],
function(
elgg) {
123 elgg.provide(
'elgg.ui.lightbox');
131 require([
'elgg/lightbox']);
static elggDir()
Returns a directory that points to the root of Elgg, but not necessarily the install root.
$_ELGG translations
String translations for the current language.
foreach($resources as $id=> $href) if(!empty($resources_html)) $files
global $CONFIG
Core Elgg JavaScript file.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
_elgg_get_js_site_data()
Get the site data to be merged into "elgg" in elgg.js.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype='')
Return a parsed view.
_elgg_view_may_be_altered($view, $path)
Is there a chance a plugin is altering this view?
if(!array_key_exists($filename, $text_files)) $file