forked from fjarnet/greeder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
179 lines (153 loc) · 7.07 KB
/
index.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!--
@nom: index
@auteur: Tom Canac (http://tomcanac.com)
@description: Page d'accueil et de lecture des flux
-->
{include="header"}
{if="($configurationManager->get('articleDisplayAnonymous')=='1') || ($myUser!=false)"}
<!---->
<!-- MENU -->
<!---->
<aside class="left w300p">
<button class="red allread" onclick="if(confirm('Tout marquer comme lu pour tous les flux?'))window.location='action.php?action=readAll'">Tout marquer comme lu</button>
<ul class="flux">
<!--Pour chaque dossier-->
{loop="folders"}
{$feeds=""}
<!--on récupere tous les flux lié au dossier-->
{if="isset($allFeedsPerFolder[$value->getId()])"}
{$feeds=$allFeedsPerFolder[$value->getId()]}
{/if}
{if="isset($allEvents[$value->getId()])"}
{$unreadEventsForFolder=$allEvents[$value->getId()]}
{/if}
<!-- DOSSIER -->
<li class="flux">
<a class="readFolder" title="Plier/Deplier le dossier" alt="Plier/Deplier le dossier" onclick="toggleFolder(this,{$value->getId()});" >
{if="!$value->getIsopen()"}+{else}-{/if}
</a>
<a alt="Lire les evenements de ce dossier" title="Lire les évenements de ce dossier" href="index.php?action=selectedFolder&folder={$value->getId()}">
{$value->getName()}
</a>
{if="$unreadEventsForFolder!=0"}
<a class="fade" alt="marquer comme lu le(s) {$unreadEventsForFolder} evenement(s) non lu(s) de ce dossier" title="marquer comme lu le(s) {$unreadEventsForFolder} evenement(s) non lu(s) de ce dossier" onclick="if(confirm('Tout marquer comme lu pour ce dossier?'))window.location='action.php?action=readFolder&folder={$value->getId()}';">
({$unreadEventsForFolder})
</a>
{/if}
<!-- FLUX DU DOSSIER -->
<ul {if="!$value->getIsopen()"}style="display:none;"{/if}>
{if="count($feeds)!=0"}
{loop="feeds"}
<li>
<!--<img src="http://www.google.com/s2/favicons?domain={$value2['url']}"/> Favicon-->
<a href="index.php?action=selectedFeed&feed={$value2['id']}" alt="{$value2['url']}" title="{$value2['url']}">{$value2['name']} </a>
{if="isset($unread[$value2['id']])"}
<button class="fade" onclick="if(confirm('Tout marquer comme lu pour ce flux?'))window.location='action.php?action=readAll&feed={$value2['id']}';">
<span class="fade" alt="marquer comme lu" title="marquer comme lu">({$unread[$value2['id']]})</span>
</button>
{/if}
</li>
{/loop}
{/if}
</ul>
<!-- FIN FLUX DU DOSSIER -->
</li>
<!-- FIN DOSSIER -->
{$unreadEventsForFolder=0}
{/loop}
</ul>
</aside>
<!---->
<!-- ARTICLES -->
<!---->
<article class="content mod item">
{loop="$events"}
{$plainDescription=strip_tags($value->getDescription())}
<!-- CORPS ARTICLE -->
<section class="article {if="!$value->getUnread()"} eventRead {/if} {if="$articleDisplayContent==false"}digest{/if} " >
<a class="anchor" name="{$value->getId()}"></a>
<!-- TITRE -->
<h2 class="articleTitle">
<button class="red right lunonlu" onclick="readThis(this,{$value->getId()}{$action=='unreadEvents' || $action==''?',true':''});">(lu/non lu)</button>
{if="$value->getFavorite()!=1"} <a class="grey favorite right" onclick="addFavorite(this,{$value->getId()});" >Favoriser</a>
{else}
<a class="grey right favorite " onclick="removeFavorite(this,{$value->getId()});" >Défavoriser</a>
{/if}
{if="$shareOption!=false"}
<a target="_blank" class="grey favorite" alt="partager sur shaarli" title="partager sur shaarli" href="{$shareOption.'/index.php?post='.rawurlencode($value->getLink()).'&title='.$value->getTitle().'&source=bookmarklet' }">Shaare</a>
{/if}
<a onclick="readThis(this,{$value->getId()},'title');" target="_blank" href="{$value->getLink()}" alt="{$plainDescription}" title="{$plainDescription}">{$value->getTitle()}</a>
</h2>
<!-- DETAILS + OPTIONS -->
<h3 class="articleDetails">
{if="$articleDisplayLink"}
<!--<img src="http://www.google.com/s2/favicons?domain="/> Favicon-->
<a href="{$value->getLink()}" target="_blank">{$allFeeds['idMap'][$value->getFeed()]['name']}</a>
{/if}
{if="$articleDisplayAuthor"}
par {$value->getCreator()}
{/if}
{if="$articleDisplayDate"}
{$value->getPubdateWithInstant($time)}
{/if}
</h3>
<!-- CONTENU/DESCRIPTION -->
{if="$articleDisplayContent"}
<div class="articleContent">
{if="$articleView=='partial'"}
{$value->getDescription()}
{else}
{$value->getContent()}
{/if}
</div>
{/if}
{if="$articleView!='partial'"}
<!-- RAPPEL DETAILS + OPTIONS POUR LES ARTICLES AFFICHES EN ENTIER -->
<h3 class="buttonsbis">
<button class="right red lunonlu" onclick="readThis(this,{$value->getId()}{$action=='unreadEvents' || $action==''?',true':''});">(lu/non lu)</button>
{if="$value->getFavorite()!=1"} <a class="grey favorite" onclick="addFavorite(this,{$value->getId()});" >Favoriser</a>
{else}
<a class="grey favorite" onclick="removeFavorite(this,{$value->getId()});" >Défavoriser</a>
{/if}
{if="$shareOption!=false"} <a target="_blank" class="grey favorite" alt="partager sur shaarli" title="partager sur shaarli" href="{$shareOption.'/index.php?post='.rawurlencode($value->getLink()).'&title='.$value->getTitle().'&source=bookmarklet' }">Shaare</a>
{/if}
<div class="clear"></div>
</h3>
{/if}
</section>
{$hightlighted=$hightlighted+1}
{/loop}
<!-- PIED DE PAGE DES ARTICLES -->
{if="$pages!=0"}
<p id="pagination">
<a class="grey-h page">Page {$page}/{$pages} : </a>
{if="$previousPages>0"}
<a class="grey page" href="index.php?action={$action}{if="$action=='selectedFeed'"}&feed={$currentFeed->getId()}{/if}{if="$action=='selectedFolder'"}&folder={$currentFolder->getId()}{/if}&page={$previousPages}"><<</a>
{/if}
{loop="pagesArray"}
{if="$page!=$value"}
<a class="grey page" href="index.php?action={$action}{if="$action=='selectedFeed'"}&feed={$currentFeed->getId()}{/if}{if="$action=='selectedFolder'"}&folder={$currentFolder->getId()}{/if}&page={$value}">{$value}</a>
{else}
<a class="grey-h page">{$value}</a>
{/if}
{/loop}
{if="$nextPages>0"}
<a class="grey page" href="index.php?action={$action}{if="$action=='selectedFeed'"}&feed={$currentFeed->getId()}{/if}{if="$action=='selectedFolder'"}&folder={$currentFolder->getId()}{/if}&page={$nextPages}">>></a>
{/if}
</p>
{/if}
</article>
<footer>
</footer>
{else}
<article class="content mod item" style="margin-top:15%;text-align:center">
<h3>Vous devez être connecté pour consulter vos flux </h3>
<p>Si vous êtes administrateur, vous pouvez régler les droits de visualisation dans la partie administration.</p>
</article>
<footer id="notLogged">
<p>Leed : fabuleux agrégateur par <a target="_blank" href="http://blog.idleman.fr">Idleman</a>.
Thème Greeder créé par <a href="http://tomcanac.com">Tom Canac</a>.
<a href="about.php">A propos</a>.</p>
</footer>
{/if}
{include="footer"}