Last change
on this file since 397 was
69,
checked in by guille, 17 years ago
|
Se agrego Plugin Crayon y se actualizaron los esqueletos para que funcione
|
File size:
1008 bytes
|
Line | |
---|
1 | [(#REM) |
---|
2 | |
---|
3 | Vue du logo qu'on vient d'uploader |
---|
4 | |
---|
5 | On doit hacker l'url du logo avec sa date pour eviter le cache du navigateur |
---|
6 | |
---|
7 | ] |
---|
8 | |
---|
9 | |
---|
10 | [(#REM) En fonction de du contexte, choisir un logo ] |
---|
11 | |
---|
12 | [(#SET{image,[(#ID_ARTICLE|?{#LOGO_ARTICLE_NORMAL} |
---|
13 | |sinon{[(#ID_AUTEUR|?{#LOGO_AUTEUR_NORMAL})]} |
---|
14 | |sinon{[(#ID_BREVE|?{#LOGO_BREVE_NORMAL})]} |
---|
15 | |sinon{[(#ID_RUBRIQUE|?{#LOGO_RUBRIQUE_NORMAL})]} |
---|
16 | |sinon{[(#ID_SYNDIC|?{#LOGO_SITE_NORMAL})]} |
---|
17 | |sinon{[(#ID_MOT|?{#LOGO_MOT_NORMAL})]})]})] |
---|
18 | |
---|
19 | |
---|
20 | [(#REM) Si la class contient resize-XXX, on appliquera ce filtre au logo ] |
---|
21 | |
---|
22 | [(#SET{resize,[(#ENV{class}|match{\bresize-\d+\b}|replace{resize-})]})] |
---|
23 | |
---|
24 | |
---|
25 | [(#GET{image}|?{ |
---|
26 | |
---|
27 | [(#SET{logo,[(#GET{image} |
---|
28 | |image_reduire{#GET{resize,0},#GET{resize,120}})]})] |
---|
29 | [(#SET{url,[(#GET{logo}|extraire_attribut{src}|replace{\?.*$})]})] |
---|
30 | [(#SET{url,[(#GET{url}|parametre_url{s,#EVAL{time()}})]})] |
---|
31 | [(#SET{width,[(#GET{logo}|extraire_attribut{width})]})] |
---|
32 | |
---|
33 | [(#GET{logo}|inserer_attribut{src,#GET{url}})] |
---|
34 | |
---|
35 | , |
---|
36 | '<small><abbr title="logo">?</abbr></small>' |
---|
37 | })] |
---|
Note: See
TracBrowser
for help on using the repository browser.