?
<?php
class FooterController extends Zend_Controller_Action
{
function footerAction()
{
$this ->_helper->viewRenderer->setResponseSegment('footer');
$session = Zend_Registry::get('session');
$translate = Zend_Registry::get('translate');
$this->view->actionCourante = $this->view->layout()->actionactif;
$this->view->controllerCourant = $this->view->layout()->controlleractif;
$this->view->textmention = $translate->_("textmention");
$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;
$this->view->context = "";
$this->view->class="";
if($controller_action == "indexindex")
{
$this->view->class="pull-right";
}
else
{
$lien_index = "index.html";
$this->view->context = "page";
}
$ln = $session->lang;
if($this->_request->getParam('page') != "")
{
$ln = $this->_request->getParam('page');
}
$this->view->lang = $ln;
$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."%";
}
}