Configuration de la variable theme

This commit is contained in:
Michael RICOIS 2015-07-08 20:38:22 +00:00
parent 95dee93d55
commit 035dabfe72
20 changed files with 84 additions and 5 deletions

View File

@ -3,6 +3,12 @@ class AideController extends Zend_Controller_Action
{
protected $theme;
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
/**
* Afficher bulle pour les nouveautés
*/

View File

@ -14,6 +14,12 @@ class AuthController extends Zend_Controller_Action
)
);
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
/**
* Point d'entrée pour les connexions partenaires.
* L'utilisateur s'identifie sur son portail habituel.

View File

@ -3,6 +3,12 @@ class BdfController extends Zend_Controller_Action
{
protected $theme;
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
public function indexAction()
{
$request = $this->getRequest();

View File

@ -128,6 +128,9 @@ class DashboardController extends Zend_Controller_Action
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
require_once 'Scores/WsScores.php';
}

View File

@ -7,6 +7,9 @@ class DirigeantController extends Zend_Controller_Action
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
$request = $this->getRequest();
$this->siret = $request->getParam('siret');
$this->id = $request->getParam('id', 0);

View File

@ -3,7 +3,11 @@ class ErrorController extends Zend_Controller_Action
{
protected $theme;
public function init(){}
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
public function errorAction()
{

View File

@ -7,6 +7,9 @@ class EvaluationController extends Zend_Controller_Action
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
$request = $this->getRequest();
$this->siret = $request->getParam('siret');
$this->id = $request->getParam('id', 0);

View File

@ -7,6 +7,9 @@ class FinanceController extends Zend_Controller_Action
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
require_once 'Scores/WsScores.php';
$request = $this->getRequest();

View File

@ -43,6 +43,8 @@ class GiantController extends Zend_Controller_Action
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
$this->view->headLink()->appendStylesheet('/themes/default/styles/giant.css', 'all');
$this->view->headScript()->appendFile('/themes/default/scripts/giant.js', 'text/javascript');

View File

@ -7,6 +7,9 @@ class JuridiqueController extends Zend_Controller_Action
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
$request = $this->getRequest();
$this->siret = $request->getParam('siret');
$this->id = $request->getParam('id', 0);

View File

@ -6,7 +6,10 @@ class LogoController extends Zend_Controller_Action
public function init()
{
$c = Zend_Registry::get('config');
// --- Theme
$this->theme = Zend_Registry::get('theme');
$c = Zend_Registry::get('config');
$this->pathLogo = $c->profil->path->data.'/logos';
}

View File

@ -14,6 +14,7 @@
class MandataireController extends Zend_Controller_Action
{
protected $theme;
protected $coursAppel = array(
array( "triId"=>"1756", "triCode"=>"AIXPRL", "triNom"=>"Cour d'Appel d'Aix-en-Provence", "triCP"=>"13616" ),
array( "triId"=>"1757", "triCode"=>"AMIENL", "triNom"=>"Cour d'Appel d'Amiens", "triCP"=>"80027" ),
@ -55,7 +56,10 @@ class MandataireController extends Zend_Controller_Action
public function init()
{
require_once 'Scores/WsScores.php';
// --- Theme
$this->theme = Zend_Registry::get('theme');
require_once 'Scores/WsScores.php';
}

View File

@ -2,6 +2,13 @@
class OrderController extends Zend_Controller_Action
{
protected $theme;
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
public function indexAction(){}
public function kbisAction()

View File

@ -2,6 +2,7 @@
class PiecesController extends Zend_Controller_Action
{
protected $theme;
protected $association_cj = array(
'9150', // Association syndicale libre
'9220', // Association déclarée
@ -19,6 +20,9 @@ class PiecesController extends Zend_Controller_Action
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
require_once 'Scores/WsScores.php';
$request = $this->getRequest();

View File

@ -3,7 +3,11 @@ class PrintController extends Zend_Controller_Action
{
protected $theme;
public function init(){}
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
/**
* Renvoie les paramètres pour l'impression

View File

@ -5,6 +5,9 @@ class RechercheController extends Zend_Controller_Action
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
/** Pour Giant **/
if(isset($_SESSION['recherche']['giant']))
unset($_SESSION['recherche']['giant']);

View File

@ -273,6 +273,12 @@ class SaisieController extends Zend_Controller_Action
$this->view->headLink()->appendStylesheet('/themes/default/styles/saisie.css', 'all');
}
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
/**
* Index
*/

View File

@ -37,6 +37,9 @@ class SurveillanceController extends Zend_Controller_Action
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
require_once 'Scores/WsScores.php';
}

View File

@ -30,6 +30,9 @@ class UserController extends Zend_Controller_Action
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
require_once 'Scores/WsScores.php';
}

View File

@ -6,7 +6,10 @@ class WorldcheckController extends Zend_Controller_Action
public function init()
{
require_once 'WorldCheck/WsWorldCheck.php';
// --- Theme
$this->theme = Zend_Registry::get('theme');
require_once 'WorldCheck/WsWorldCheck.php';
require_once 'Scores/Cache.php';
$configWC = new Zend_Config_Ini(APPLICATION_PATH . '/../library/WorldCheck/applicationWC.ini');