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!');
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) ?>;
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');
123 elgg.provide(
'elgg.ui.lightbox');
if(!array_key_exists($filename, $text_files)) $file
_elgg_view_may_be_altered($view, $path)
Is there a chance a plugin is altering this view?
$_ELGG translations
String translations for the current language.
_elgg_get_js_site_data()
Get the site data to be merged into "elgg" in elgg.js.
elgg echo
Translates a string.
elgg require
Throw an error if the required package isn't present.
global $CONFIG
Core Elgg JavaScript file.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
elgg global
Pointer to the global context.
static elggDir()
Returns a directory that points to the root of Elgg, but not necessarily the install root...
define(function(require){var $=require('jquery');$(document).on('change', '#elgg-river-selector', function(){var url=window.location.href;if(window.location.search.length){url=url.substring(0, url.indexOf('?'));}url+= '?'+$(this).val();window.location.href=url;});})
Initiates page reload when river selector value changes core/river/filter.
foreach($resources as $id=> $href) if(!empty($resources_html)) $files