Elgg  Version 2.3
Functions | Variables
configuration.js File Reference

Go to the source code of this file.

Functions

elgg provide ('elgg.config')
 

Variables

elgg get_site_url
 Returns the current site URL. More...
 
elgg get_simplecache_url
 Get the URL for the cached file. More...
 

Function Documentation

elgg provide ( 'elgg.config'  )

Variable Documentation

elgg get_simplecache_url
Initial value:
= function(view, subview) {
if (elgg.config.simplecache_enabled) {
lastcache = elgg.config.lastcache;
} else {
lastcache = 0;
}
if (!subview) {
path = '/cache/' + lastcache + '/' + elgg.config.viewtype + '/' + view;
} else {
if ((view === 'js' || view === 'css') && 0 === subview.indexOf(view + '/')) {
subview = subview.substr(view.length + 1);
}
path = '/cache/' + lastcache + '/' + elgg.config.viewtype + '/' + view + '/' + subview;
}
return elgg.normalize_url(path);
}
elgg
Definition: install.js:23
$CONFIG view
The current view type.
Definition: config.php:149
$CONFIG lastcache
The last cache time for the current viewtype.
Definition: config.php:264
$CONFIG path
The full path where Elgg is installed.
Definition: config.php:16

Get the URL for the cached file.

Parameters
{String}view The full view name
{String}subview If the first arg is "css" or "js", the rest of the view name
Returns
{String} The site URL.

Definition at line 19 of file configuration.js.

elgg get_site_url
Initial value:
= function() {
return elgg.config.wwwroot;
}
elgg
Definition: install.js:23

Returns the current site URL.

Returns
{String} The site URL.

Definition at line 8 of file configuration.js.