forked from chapitreneuf/nova
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacros_entree.html
68 lines (62 loc) · 1.92 KB
/
macros_entree.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<CONTENT VERSION="1.0" LANG="fr" CHARSET="utf-8"/>
/**
* Initialisation de la page.
*/
<DEFMACRO NAME="ENTREE_INIT">
<!--[ Dépendances additionnelles ]-->
<USE MACROFILE="macros_publication.html" />
<LET VAR="titre_page" GLOBAL="1">
<IF COND="[#TYPE.TITLE]"><IF COND="[#TYPE.ALTERTITLE:#SITELANG]">[#TYPE.ALTERTITLE:#SITELANG]<ELSE/>[#TYPE.TITLE]</IF></IF><IF COND="[#NOMFAMILLE] AND [#PRENOM]"/> - [#NOMFAMILLE] [#PRENOM]<ELSEIF COND="[#IDENTRY] AND [#NOM]"/> - [#NOM]</IF> – [#OPTIONS.METADONNEESSITE.TITRESITE]
</LET>
</DEFMACRO>
/**
* Macro principale appelée par le template.
*/
<DEFMACRO NAME="ENTREE_MAIN">
<MACRO NAME="ENTREE_TITLE" />
<MACRO NAME="ENTREE_LISTE_TEXTES" />
<MACRO NAME="ENTREE_RETOUR" />
</DEFMACRO>
/**
* Titre h1 de l'entrée.
*/
<DEFMACRO NAME="ENTREE_TITLE">
<IF COND="[#NOM]">
<h1 class="main-title entry__title">
<IF COND="[#TYPE.ALTERTITLE:#SITELANG]">[#TYPE.ALTERTITLE:#SITELANG]<ELSE/>[#TYPE.TITLE]</IF> – [#NOM]
</h1>
<ELSEIF COND="[#NOMFAMILLE]" />
<h1 class="main-title entry__title">
[#PRENOM] <span class="family-name">[#NOMFAMILLE]</span>
</h1>
</IF>
</DEFMACRO>
/**
* Affichage des textes associés à l'entrée.
*/
<DEFMACRO NAME="ENTREE_LISTE_TEXTES">
<LOOP NAME="entree_liste_textes"
TABLE="textes"
WHERE="identry='[#ID]' AND id [#NOT_IN_TRADUCTIONS]"
ORDER="datepubli DESC">
<BEFORE>
<section id="entry-type" class="toc toc--entry">
<ul class="toc__contents toc__contents--entry toc__contents--entry-class-[#TYPE.CLASS] toc__contents--entry-type-[#TYPE.TYPE]">
</BEFORE>
<DO>
<li class="toc__li toc__li toc__li--class-textes">
<FUNC NAME="PUBLICATION_LI_TEXTE"/>
</li>
</DO>
<AFTER>
</ul>
</section>
</AFTER>
</LOOP>
</DEFMACRO>
/**
* Bouton "Retour à l'index".
*/
<DEFMACRO NAME="ENTREE_RETOUR">
<a rev="index" class="entry__retour-btn btn btn-block" href="[#TYPE.ID|makeurlwithid]">[@RETOUR_INDEX]</a>
</DEFMACRO>