Elgg  Version 1.9
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(type, view) {
var lastcache;
if (elgg.config.simplecache_enabled) {
lastcache = elgg.config.lastcache;
} else {
lastcache = 0;
}
if ((type === 'js' || type === 'css') && 0 === view.indexOf(type + '/')) {
view = view.substr(type.length + 1);
}
var path = '/cache/' + lastcache + '/' + elgg.config.viewtype + '/' + type + '/' + view;
return elgg.normalize_url(path);
}
elgg
Definition: install.js:23
$CONFIG view
The current view type.
Definition: config.php:185
$CONFIG lastcache
The last cache time for the current viewtype.
Definition: config.php:341
$CONFIG path
The full path where Elgg is installed.
Definition: config.php:66
list style type
Definition: admin.php:724

Get the URL for the cached file.

Parameters
{String}type
{String}view
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.