?
home/cideo/site_2015/application/modules/site/controllers/HeaderController.php 0000666 00000001526 15125726751 0023447 0 ustar 00 <?php
class HeaderController extends Zend_Controller_Action
{
function headerAction()
{
$this ->_helper->viewRenderer->setResponseSegment('header');
$session = Zend_Registry::get('session');
$translate = Zend_Registry::get('translate');
$classMainMenu = array();
$this->view->langue = $session->lang;
$actionCourante = $this->view->layout()->actionactif;
$controllerCourant = $this->view->layout()->controlleractif;
$controller_action = $controllerCourant.$actionCourante;
$this->view->actionCourante = $this->view->layout()->actionactif;
$this->view->controllerCourant = $this->view->layout()->controlleractif;
$config = new Zend_Config_Xml(PUBLIC_PATH.'txt/social.xml', "social");
$this->view->reseaux = $config->element;
$nb = 100 / count($config->element);
$this->view->largeurlist = $nb."%";
}
} home/cideo/site_2015/application/modules/admin/controllers/HeaderController.php 0000666 00000001220 15125727211 0023552 0 ustar 00 <?php
class Admin_HeaderController extends Zend_Controller_Action
{
function headerAction()
{
$session = Zend_Registry::get('session');
$this ->_helper->viewRenderer->setResponseSegment('header');
$translate = Zend_Registry::get('translate');
$this->view->translate = $translate;
$this->view->actionCourante = $this->view->layout()->actionactif;
$this->view->controllerCourant = $this->view->layout()->controlleractif;
$this->view->textmention = $translate->_("textmention");
$this->view->actionCourante = $this->view->layout()->actionactif;
$ln = $this->_request->getParam('ln');
$this->view->lang = $session->lang;
}
}