Variable theme

This commit is contained in:
Michael RICOIS 2015-07-16 15:48:12 +00:00
parent 755371360a
commit 6fc8a8f263
5 changed files with 9 additions and 9 deletions

View File

@ -29,7 +29,7 @@ class AuthController extends Zend_Controller_Action
//Désactiver le layout //Désactiver le layout
$this->_helper->layout()->disableLayout(); $this->_helper->layout()->disableLayout();
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/user.css', 'all'); $this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
$request = $this->getRequest(); $request = $this->getRequest();

View File

@ -645,7 +645,7 @@ class DashboardController extends Zend_Controller_Action
public function usersAction() public function usersAction()
{ {
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/user.css', 'all'); $this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
$user = new Scores_Utilisateur(); $user = new Scores_Utilisateur();
@ -672,7 +672,7 @@ class DashboardController extends Zend_Controller_Action
public function userAction() public function userAction()
{ {
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/user.css', 'all'); $this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
$this->view->headScript()->appendFile($this->theme->pathScript.'/user.js', 'text/javascript'); $this->view->headScript()->appendFile($this->theme->pathScript.'/user.js', 'text/javascript');
$request = $this->getRequest(); $request = $this->getRequest();

View File

@ -46,7 +46,7 @@ class GiantController extends Zend_Controller_Action
// --- Theme // --- Theme
$this->theme = Zend_Registry::get('theme'); $this->theme = Zend_Registry::get('theme');
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/giant.css', 'all'); $this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript'); $this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript');
$this->view->debug = false; $this->view->debug = false;
$this->config = new Zend_Config_Ini( APPLICATION_PATH.'/../library/Giant/giant.ini' ); $this->config = new Zend_Config_Ini( APPLICATION_PATH.'/../library/Giant/giant.ini' );
@ -260,7 +260,7 @@ class GiantController extends Zend_Controller_Action
public function startmonitoringAction() public function startmonitoringAction()
{ {
$this->_helper->layout()->disableLayout(); $this->_helper->layout()->disableLayout();
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/giant.css', 'all'); $this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript'); $this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript');
$this->view->lang = $this->getRequest()->getParam('lang'); $this->view->lang = $this->getRequest()->getParam('lang');
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId'); $this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
@ -295,7 +295,7 @@ class GiantController extends Zend_Controller_Action
public function stopmonitoringAction() public function stopmonitoringAction()
{ {
$this->_helper->layout()->disableLayout(); $this->_helper->layout()->disableLayout();
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/giant.css', 'all'); $this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId'); $this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
$this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId'); $this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId');
$this->view->Pays = $this->getRequest()->getParam('Pays'); $this->view->Pays = $this->getRequest()->getParam('Pays');
@ -318,7 +318,7 @@ class GiantController extends Zend_Controller_Action
public function updatemonitoringAction() public function updatemonitoringAction()
{ {
$this->_helper->layout()->disableLayout(); $this->_helper->layout()->disableLayout();
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/giant.css', 'all'); $this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
$this->view->lang = $this->getRequest()->getParam('lang'); $this->view->lang = $this->getRequest()->getParam('lang');
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId'); $this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
$this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId'); $this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId');

View File

@ -273,7 +273,7 @@ class SaisieController extends Zend_Controller_Action
$this->currencies = $currencies; $this->currencies = $currencies;
} }
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/saisie.css', 'all'); $this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/saisie.css', 'all');
} }
/** /**

View File

@ -41,7 +41,7 @@ class UserController extends Zend_Controller_Action
*/ */
public function indexAction() public function indexAction()
{ {
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/user.css', 'all'); $this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
$user = new Scores_Utilisateur(); $user = new Scores_Utilisateur();