forked from chapitreneuf/nova
-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros_side.html
97 lines (93 loc) · 2.97 KB
/
macros_side.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<CONTENT VERSION="1.0" LANG="fr" CHARSET="utf-8"/>
/**
* Contenu par défaut de la sidebar.
*/
<DEFMACRO NAME="SIDE_MAIN">
<MACRO NAME="SIDE_ACTUALITES" />
<MACRO NAME="SIDE_RSS" />
<MACRO NAME="SIDE_TWITTER" />
</DEFMACRO>
/**
* Actualités dans la sidebar.
*/
<DEFMACRO NAME="SIDE_ACTUALITES">
<LOOP NAME="side_actualites" TABLE="textes" WHERE="type='actualite'"
SELECT="id, titre, soustitre, altertitre, datepubli" ORDER="datepubli DESC, datemisenligne DESC, rank DESC" LIMIT="[%SIDE_MAX_ACTUALITES]">
<BEFORE>
<section id="side-actualites__section" class="side-actualites__section side__section">
<FUNC NAME="BASE_SECTION_HEADER" TITLE="[@ACTUALITES]" LEVEL="1" />
<ul class="side-actualites_section__list">
</BEFORE>
<DO>
<li class="side-actualites-section__item">
<a href="[#ID|makeurlwithid]">
<FUNC NAME="BASE_ML_TITRE" /></a>
</li>
</DO>
<AFTER>
</ul>
</section>
</AFTER>
</LOOP>
</DEFMACRO>
/**
* Affichage des flux RSS dans la sidebar.
*/
<DEFMACRO NAME="SIDE_RSS">
<LOOP NAME="side_rss" SELECT="url, urlfil, titre, altertitre,nombremaxitems" TABLE="liens" WHERE="type = 'fluxdesyndication' AND urlfil NOT LIKE 'http%://twitter.com/%'" ORDER="rank">
<BEFORE>
<section id="side-rss__section" class="side-rss__section side__section">
<FUNC NAME="BASE_SECTION_HEADER" TITLE="[@RSS]" LEVEL="1" />
<ul class="side-rss_section__list">
</BEFORE>
<DO>
<!--[<BLOCK ID="2" REFRESH="1800"> ]-->
<LOOP NAME="rss" URL="[#URLFIL]">
<li class="side-rss-item">
<h2 class="side-rss-item__title"><FUNC NAME="BASE_ML_TITRE" /></h2>
<ul class="side-rss-item__entries">
<IF COND="![#NOMBREMAXITEMS]">
<LET VAR="nombremaxitems">10</LET>
</IF>
<LOOP NAME="rssitem" LIMIT="0, [#NOMBREMAXITEMS]">
<IF COND="[#TITLE]">
<li class="side-rss-item__entry">
<a href="[#LINK|htmlspecialchars(ENT_COMPAT, 'UTF-8')]">
[#TITLE|cleanBadChars]
</a>
</li>
</IF>
</LOOP>
</ul>
<IF COND="[#URL]">
<a class="side-rss-item__link external arrow-external" rel="external" href="[#URL|htmlspecialchars(ENT_COMPAT, 'UTF-8')]">[@VISITER_SITE]</a>
</IF>
</li>
</LOOP>
<!--[</BLOCK>]-->
</DO>
<AFTER>
</ul>
</section>
</AFTER>
</LOOP>
</DEFMACRO>
/**
* Affichage des fils Twitter dans la sidebar.
*/
<DEFMACRO NAME="SIDE_TWITTER">
<LOOP NAME="side_twitter" SELECT="url, urlfil, titre, altertitre,nombremaxitems" TABLE="liens" WHERE="type = 'fluxdesyndication' AND urlfil LIKE 'http%://twitter.com/%'" ORDER="rank">
<BEFORE>
<section id="side-twitter__section" class="side__section side-twitter__section">
<FUNC NAME="BASE_SECTION_HEADER" TITLE="[@TWEETS]" LEVEL="1" />
</BEFORE>
<DO>
<LET VAR="title"><FUNC NAME="BASE_ML_TITRE" /></LET>
<h2 class="side-rss-item__title">[#TITLE]</h2>
<FUNC NAME="BASE_TWITTER_CONTAINER" TITLE="[#TITLE]" />
</DO>
<AFTER>
</section>
</AFTER>
</LOOP>
</DEFMACRO>