From 852a3cd71ef42fd343303bbc005a3a79dee38286 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Fri, 1 Mar 2013 10:47:11 +0100 Subject: [PATCH] =?UTF-8?q?=09modified:=20=20=200.3/index.php=20m=C3=A9can?= =?UTF-8?q?isme=20de=20toggle=20sur=20l'affichage=20des=20boutons,=20et=20?= =?UTF-8?q?changement=20de=20style=20si=20actif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0.3/index.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/0.3/index.php b/0.3/index.php index c70f468..bbf6314 100755 --- a/0.3/index.php +++ b/0.3/index.php @@ -480,12 +480,14 @@ if( !empty($_POST['opml']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_OPML .clear {clear:both;text-align:right;font-size:small;} #logo {float: right;} .bouton{background: -moz-linear-gradient(center top , #EDEDED 5%, #DFDFDF 100%) repeat scroll 0 0 #EDEDED;border: 1px none;padding: 10px;border: 1px solid #7777777;border-radius: 8px 8px 8px 8px;box-shadow: 0 1px 0 0 #FFFFFF inset;display: inline-block;} + .success {color: green;} .error {color: red;} .button_list{display:none;} .button{-moz-box-shadow:inset 0 1px 0 0 #d9fbbe;-webkit-box-shadow:inset 0 1px 0 0 #d9fbbe;box-shadow:inset 0 1px 0 0 #d9fbbe;background:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#b8e356',endColorstr='#a5cc52');background-color:#b8e356;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border:1px solid #83c41a;display:inline-block;color:#fff;font-family:arial;font-size:14px;font-weight:700;text-decoration:none;text-shadow:1px 1px 0 #86ae47;padding:6px 24px;} .button:hover{background:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#a5cc52',endColorstr='#b8e356');background-color:#a5cc52;} .button:active{position:relative;top:1px;} + .buttonactive{background-color:#aaa;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;border:1px solid #83c41a;display:inline-block;color:#fff;font-family:arial;font-size:14px;font-weight:700;text-decoration:none;text-shadow:1px 1px 0 #86ae47;padding:6px 24px;} @@ -526,15 +528,15 @@ if( !empty($_POST['opml']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_OPML $button_list = '

Ajouter un autoblog via : '; if(ALLOW_NEW_AUTOBLOGS_BY_LINKS) - $button_list .= 'Flux RSS '; + $button_list .= 'Flux RSS '; if(ALLOW_NEW_AUTOBLOGS_BY_SOCIAL) - $button_list .= 'Compte réseau social - Shaarli '; + $button_list .= 'Compte réseau social + Shaarli '; if(ALLOW_NEW_AUTOBLOGS_BY_OPML) - $button_list .= 'Fichier OPML + $button_list .= 'Fichier OPML Lien vers OPML '; if(ALLOW_NEW_AUTOBLOGS_BY_BUTTON) - $button_list .= 'Marque page '; + $button_list .= 'Marque page '; $button_list .= '

'; echo $button_list; @@ -670,7 +672,8 @@ if( !empty($_POST['opml']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_OPML document.getElementById('add_bookmark').style.display = 'none'; document.getElementById('button_list').style.display = 'block'; function show_form(str){ - document.getElementById('add_'+str).style.display = 'block'; + document.getElementById('add_'+str).style.display = (document.getElementById('add_'+str).style.display != 'block' ? 'block' : 'none' ); + document.getElementById('button_'+str).className = (document.getElementById('button_'+str).className != 'buttonactive' ? 'buttonactive' : 'button' ); }