Elgg  Version 1.9
configuration.js
Go to the documentation of this file.
1 elgg.provide('elgg.config');
2 
8 elgg.get_site_url = function() {
9  return elgg.config.wwwroot;
10 };
11 
19 elgg.get_simplecache_url = function(type, view) {
20  var lastcache;
21  if (elgg.config.simplecache_enabled) {
22  lastcache = elgg.config.lastcache;
23  } else {
24  lastcache = 0;
25  }
26  if ((type === 'js' || type === 'css') && 0 === view.indexOf(type + '/')) {
27  view = view.substr(type.length + 1);
28  }
29  var path = '/cache/' + lastcache + '/' + elgg.config.viewtype + '/' + type + '/' + view;
30  return elgg.normalize_url(path);
31 };
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