logo edition directe sur la rubrique

svn/attic/shelves/abelass/113239
abelass@gmail.com 7 years ago
parent 18144ec8f7
commit a677934456

@ -7,11 +7,18 @@
.icone_edition_directe.icone a{width:auto}
.inactive, .active:hover{
opacity:0.4;
filter:alpha(opacity=40); /* For IE8 and earlier */
opacity:0.4;
filter:alpha(opacity=40); /* For IE8 and earlier */
}
.inactive:hover{
opacity:1.0;
filter:alpha(opacity=100); /* For IE8 and earlier */
opacity:1.0;
filter:alpha(opacity=100); /* For IE8 and earlier */
}
/*
* SPIP 3.1
*/
.clearfix.hd .icone_edition_directe.icone.active > a {
padding-top: 0;
}

@ -54,22 +54,25 @@ function edition_directe_recuperer_fond($flux) {
'ajax' => true
));
$icone = '
<span class="icone_edition_directe icone active">
<a href="' . generer_action_auteur('edition_directe_auteur', 'inactive-' . $objet, generer_url_ecrire($objet, $id . '=' . $contexte['id_objet'], false)) . '" title="' . _T('edir:desactiver_edition_directe_objet') . $objet . '">
<img src="' . find_in_path('prive/themes/spip/images/edir-24.png') . '"/>
<b>' . _T('edir:titre_plugin') . '</b>
</a>
</span>';
<span class="icone_edition_directe icone active">
<a href="' . generer_action_auteur('edition_directe_auteur', 'inactive-' . $objet, generer_url_ecrire($objet, $id . '=' . $contexte['id_objet'], false)) . '" title="' . _T('edir:desactiver_edition_directe_objet') . $objet . '">
<img src="' . find_in_path('prive/themes/spip/images/edir-24.png') . '"/>
<b>' . _T('edir:titre_plugin') . '</b>
</a>
</span>';
$patterns = array (
'/class=\'icone/',
'/<!--\/hd-->/',
'/<h1>/'
'/<h1>/',
'/<h1 class="crayon rubrique-titre-1 ">/',
);
$replacements = array (
'class="icone invisible',
$edition . '<!--/hd-->',
$icone . '<h1>'
$icone . '<h1>',
$icone . '<h1 class="crayon rubrique-titre-1 ">',
);
$flux['data']['texte'] = preg_replace($patterns, $replacements, $texte, 1);
}
// Suppression de la prévisualisation
if ($fond == 'prive/objets/contenu/' . $objet) {
@ -85,10 +88,12 @@ function edition_directe_recuperer_fond($flux) {
</a>
</span>';
$patterns = array (
'/<h1>/'
'/<h1>/',
'/<h1 class="crayon rubrique-titre-1 ">/',
);
$replacements = array (
$icone . '<h1>'
$icone . '<h1>',
$icone . '<h1 class="crayon rubrique-titre-1 ">',
);
$flux['data']['texte'] = preg_replace($patterns, $replacements, $texte, 1);
}

@ -1,8 +1,8 @@
<paquet
prefix="edition_directe"
categorie="edition"
version="3.2.14"
etat="test"
version="3.2.15"
etat="stable"
compatibilite="[3.0.17;3.1.*]"
logo="img/logo_aed_edit_128.png"
documentation="http://contrib.spip.net/Edition-directe-3"

Loading…
Cancel
Save