From c5963cbe9660648c6dd5326c092f470f56776b25 Mon Sep 17 00:00:00 2001 From: Stephane Date: Mon, 12 May 2014 16:16:12 +0200 Subject: [PATCH] =?UTF-8?q?affichage=20du=20libell=C3=A9=20actif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/admin.css | 10 ++++++---- css/site.css | 10 ++++++---- plxMyMultiLingue.php | 20 ++++++++++++++------ 3 files changed, 26 insertions(+), 14 deletions(-) diff --git a/css/admin.css b/css/admin.css index 3152153..a0359b9 100644 --- a/css/admin.css +++ b/css/admin.css @@ -1,4 +1,6 @@ -#langs { width:100%; float:right; top:0; text-align:right; } -#langs a { margin: 0 10px 0 0 } -#langs a.lang img { padding: 2px 2px 2px 2px; border: 1px solid #cecece; } -#langs a.active img { padding: 2px 2px 2px 2px; border: 1px solid red; } \ No newline at end of file +#langs { width:100%; float:right; top:0; text-align:right; } +#langs a { margin: 0 10px 0 0; text-decoration: none } +#langs a:hover { color: #db2020; } +#langs a img { padding: 2px 2px 2px 2px; border: 1px solid #cecece; width: 25px } +#langs a img.active { padding: 2px 2px 2px 2px; border: 1px solid red; } +#langs a.active { padding: 2px 2px 2px 2px; border: 1px solid red; color: red } \ No newline at end of file diff --git a/css/site.css b/css/site.css index 4fabcb3..2dfe1ca 100644 --- a/css/site.css +++ b/css/site.css @@ -1,4 +1,6 @@ -#langs ul li { display:inline; list-style-type: none;} -#langs a { margin: 0 10px 0 0; } -#langs a.lang img { padding: 2px 2px 2px 2px; border: 1px solid #cecece; } -#langs a.active img { padding: 2px 2px 2px 2px; border: 1px solid red; } \ No newline at end of file +#langs ul li { display:inline; list-style-type: none;} +#langs a { margin: 0 10px 0 0; text-decoration: none } +#langs a:hover { color: #db2020; } +#langs a img { padding: 2px 2px 2px 2px; border: 1px solid #cecece; width: 25px } +#langs a img.active { padding: 2px 2px 2px 2px; border: 1px solid red; } +#langs a.active { padding: 2px 2px 2px 2px; border: 1px solid red; color: red } diff --git a/plxMyMultiLingue.php b/plxMyMultiLingue.php index 87304dc..2a8f193 100755 --- a/plxMyMultiLingue.php +++ b/plxMyMultiLingue.php @@ -440,9 +440,13 @@ public function AdminTopBottom() { echo '
'; foreach($this->aLangs as $lang) { $sel = $this->lang==$lang ? " active" : ""; - $img = ''.$lang.''; - $display = $this->getParam('display')=='flag' ? $img : $aLabels[$lang]; - echo ''.$display.''; + if($this->getParam('display')=='flag') { + $img = ''.$lang.''; + echo ''.$img.''; + } else { + echo ''.$aLabels[$lang].''; + } + } echo '
'; } @@ -594,9 +598,13 @@ public function MyMultiLingue() { echo ''; echo '';