Go to the source code of this file.
elgg provide |
( |
'elgg.config' |
| ) |
|
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);
}
$CONFIG view
The current view type.
$CONFIG lastcache
The last cache time for the current viewtype.
$CONFIG path
The full path where Elgg is installed.
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.
Initial value:= function() {
return elgg.config.wwwroot;
}
Returns the current site URL.
- Returns
- {String} The site URL.
Definition at line 8 of file configuration.js.