Skip to content
Snippets Groups Projects

Dev #25821 skin mobile

Merged Ghislain Loas requested to merge dev_#25821_skin_mobile into WIP
Compare and
+ 128
85
Preferences
Compare changes
Files
@@ -165,18 +165,20 @@ class ZendAfi_View_Helper_Accueil_Base extends ZendAfi_View_Helper_ModuleAbstrac
protected function getTemplate() {
$style_boite = array("boite_vide",
"boite_de_la_division_gauche",
"boite_de_la_division_du_milieu",
"boite_de_la_division_droite",
"boite_banniere_gauche",
'boite_vide',
'boite_vide');
if (!array_key_exists('boite', $this->preferences) || !$this->preferences['boite'])
$this->preferences['boite'] = $style_boite[$this->getDivision()];
$template = $this->preferences['boite'];
return Class_Profil::getCurrentProfil()->getPathBoites().$template.".html";
$style_boite = ['boite_vide',
'boite_de_la_division_gauche',
'boite_de_la_division_du_milieu',
'boite_de_la_division_droite',
'boite_banniere_gauche',
'boite_vide',
'boite_vide'];
$profil = Class_Profil::getCurrentProfil();
if(!array_key_exists('boite', $this->preferences) || !$this->preferences['boite'])
$this->preferences['boite'] = $profil->isTelephone() ? 'boite_telephone' : $style_boite[$this->getDivision()];
return $profil->getPathBoites() . $this->preferences['boite'] . '.html';
}