* unify handling
This commit is contained in:
Sarjuuk
2022-03-12 23:59:06 +01:00
parent 4b32811424
commit 3cb02f2204
49 changed files with 179 additions and 159 deletions

View File

@@ -7,8 +7,8 @@ if (!defined('AOWOW_REVISION'))
class HomePage extends GenericPage
{
protected $tpl = 'home';
protected $js = ['home.js'];
protected $css = [['path' => 'home.css']];
protected $js = [[JS_FILE, 'home.js']];
protected $css = [[CSS_FILE, 'home.css']];
protected $featuredBox = [];
protected $oneliner = '';
@@ -21,7 +21,7 @@ class HomePage extends GenericPage
protected function generateContent()
{
$this->addCSS(['string' => '.announcement { margin: auto; max-width: 1200px; padding: 0px 15px 15px 15px }']);
$this->addScript([CSS_STRING, '.announcement { margin: auto; max-width: 1200px; padding: 0px 15px 15px 15px }']);
// load oneliner
if ($_ = DB::Aowow()->selectRow('SELECT * FROM ?_home_oneliner WHERE active = 1 LIMIT 1'))