Skip to content

Commit

Permalink
[meilleure solution] BUG Menu Contact: classe css active non appliquée
Browse files Browse the repository at this point in the history
  • Loading branch information
freepius committed Feb 15, 2016
1 parent de12fec commit 9ed012f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,3 @@

.contact_success {
}

.menu.expanded li a.active {
background-color: #258fd6;
color: #fff;
}
2 changes: 1 addition & 1 deletion plxMyContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function plxShowStaticListEnd() {
# ajout du menu pour accèder à la page de contact
if($this->getParam('mnuDisplay')) {
echo "<?php \$class = \$this->plxMotor->mode=='".$this->getParam('url')."'?'active':'noactive'; ?>";
echo "<?php array_splice(\$menus, ".($this->getParam('mnuPos')-1).", 0, '<li><a class=\"static '.\$class.'\" href=\"'.\$this->plxMotor->urlRewrite('?".$this->getParam('url')."').'\" title=\"".addslashes($this->getParam('mnuName_'.$this->default_lang))."\">".addslashes($this->getParam('mnuName_'.$this->default_lang))."</a></li>'); ?>";
echo "<?php array_splice(\$menus, ".($this->getParam('mnuPos')-1).", 0, '<li class=\"static '.\$class.'\"><a href=\"'.\$this->plxMotor->urlRewrite('?".$this->getParam('url')."').'\" title=\"".addslashes($this->getParam('mnuName_'.$this->default_lang))."\">".addslashes($this->getParam('mnuName_'.$this->default_lang))."</a></li>'); ?>";
}

}
Expand Down

0 comments on commit 9ed012f

Please sign in to comment.