mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
JS/CSS
* unify handling
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user