From 326ef2756874c5c9f7e8fd0c9d5838e21dc2b64f Mon Sep 17 00:00:00 2001 From: Andru Vallance Date: Thu, 10 Mar 2016 16:17:13 +0100 Subject: [PATCH] Fix: Remove dependency on jquery and define position for fontawesome --- base/Skin.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/base/Skin.php b/base/Skin.php index 2c10bfd..4ec4ecc 100644 --- a/base/Skin.php +++ b/base/Skin.php @@ -41,15 +41,15 @@ public static function init(){ ), 'bootstrap.js' => $template + array( - 'dependencies'=>array('jquery'), 'scripts'=> array('bootstrap-3.0.3/js/bootstrap.js'), 'group'=>'bootstrap' ), - + 'font-awesome' => $template + array( 'styles' => array( 'font-awesome-4.0.3/css/font-awesome.css'=>array('media'=>'screen') ), + 'position'=>'top', 'group'=>'bootstrap' ), @@ -67,7 +67,7 @@ public static function init(){ ), 'group'=>'booty' ) - ); + ); self::addModules($modules); } @@ -100,7 +100,7 @@ public function initPage( OutputPage $out ) { font-weight: normal; font-style: normal; }"); - + //js items will be appended after page load $out->addModules( 'bootstrap.js' ); $out->addModules( 'skin.booty.js' ); @@ -113,4 +113,3 @@ public function initPage( OutputPage $out ) { } -