HTML/Scripts

* append a filemtime timestamp to js/css files to work around browser caching after update
 * shuffle script handling around a bit
 * also user pages cant have community content
 * also fix breadcrumbs on items page
This commit is contained in:
Sarjuuk
2023-04-11 13:56:25 +02:00
parent b06d1a5c2c
commit 9f1cbc0233
51 changed files with 275 additions and 220 deletions

View File

@@ -15,7 +15,11 @@ class ArenaTeamsPage extends GenericPage
protected $tabId = 1;
protected $path = [1, 5, 3];
protected $tpl = 'arena-teams';
protected $js = [[JS_FILE, 'filters.js'], [JS_FILE, 'profile_all.js'], [JS_FILE, 'profile.js']];
protected $scripts = array(
[SC_JS_FILE, 'js/filters.js'],
[SC_JS_FILE, 'js/profile_all.js'],
[SC_JS_FILE, 'js/profile.js']
);
protected $_get = ['filter' => ['filter' => FILTER_UNSAFE_RAW]];
@@ -57,7 +61,7 @@ class ArenaTeamsPage extends GenericPage
protected function generateContent()
{
$this->addScript([JS_FILE, '?data=realms&locale='.User::$localeId.'&t='.$_SESSION['dataKey']]);
$this->addScript([SC_JS_FILE, '?data=realms']);
$conditions = [];
if (!User::isInGroup(U_GROUP_EMPLOYEE))