3 Controleur pour le crayon 'logo'
8 [(#REM) En fonction de du contexte, choisir un logo ]
9 [(#SET{image,[(#ID_ARTICLE|?{#LOGO_ARTICLE_NORMAL}
10 |sinon{[(#ID_AUTEUR|?{#LOGO_AUTEUR_NORMAL})]}
11 |sinon{[(#ID_BREVE|?{#LOGO_BREVE_NORMAL})]}
12 |sinon{[(#ID_RUBRIQUE|?{[(#LOGO_RUBRIQUE_NORMAL|extraire_attribut{src}|match{[(#EVAL{_DIR_IMG})]rubon0\.}|?{'',#LOGO_RUBRIQUE_NORMAL})]})]}
13 |sinon{[(#ID_SYNDIC_ARTICLE|?{#LOGO_SYNDIC_ARTICLE})]}
14 |sinon{[(#ID_SYNDIC|?{#LOGO_SITE_NORMAL})]}
15 |sinon{[(#ID_MOT|?{#LOGO_MOT_NORMAL})]})]})]
17 [(#SET{logo,[(#GET{image}|image_reduire{
64})]})]
18 [(#REM) hacke l'url pour eviter le cache du navigateur ]
19 [(#SET{url,[(#GET{logo}|extraire_attribut{src}
20 |parametre_url{s,#EVAL{time()}})]})]
22 <:crayons:legend_controleur_logo_remplacer:>
24 |extraire_attribut{width})
×[(#GET{image}
25 |extraire_attribut{height})]px)]
:
29 <input type=
"checkbox" name=
"(#ENV{name_logo})_supprimer" id=
"#ENV{name_logo}_supprimer" /><label for=
"#ENV{name_logo}_supprimer"> <:crayons:bouton_supprimer:></label>
35 <li class=
"fieldset" [
style=
"(#ENV{style}); border:none;"]
>
37 [(#GET{legend}|sinon{
<:crayons:legend_controleur_logo:>})]
38 [
<div style=
"float:#LANG_RIGHT">(#GET{logo}|inserer_attribut{src,#GET{url}}
39 |inserer_attribut{style,vertical-align:middle;})
</div>]
42 <li class=
"editer_logo">
44 <input class=
"crayon-active file" name=
"#ENV{name_logo}" type=
"file"
45 onchange=
"if (this.value && !this.value.match(/\.(png|jpeg|jpg|gif)$/i)) { alert('<:crayons:message_image_obligatoire:>'); this.value=''; }; var q=cQuery('##ENV{name_logo}_supprimer').parent(); this.value ? q.hide() : q.show();" size=
"1" />