mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
57 lines
1.9 KiB
Smarty
57 lines
1.9 KiB
Smarty
<h2 class="thin">{$c->__('post.hot')}</h2>
|
||
<h4 class="gray">{$c->__('post.hot_text')}</h4><br />
|
||
<ul class="flex card shadow active">
|
||
{loop="$posts"}
|
||
{if="!filter_var($value->origin, FILTER_VALIDATE_EMAIL)"}
|
||
<li
|
||
class="block condensed"
|
||
data-id="{$value->nodeid}"
|
||
data-server="{$value->origin}"
|
||
data-node="{$value->node}">
|
||
{$picture = $value->getPicture()}
|
||
{if="current(explode('.', $value->origin)) == 'nsfw'"}
|
||
<span class="icon thumb color red tiny">
|
||
+18
|
||
</span>
|
||
{elseif="$picture != null"}
|
||
<span class="icon thumb" style="background-image: url({$picture});"></span>
|
||
{else}
|
||
<span class="icon thumb color {$value->node|stringToColor}">
|
||
{$value->node|firstLetterCapitalize}
|
||
</span>
|
||
{/if}
|
||
<span>
|
||
{if="isset($value->title)"}
|
||
{$value->title}
|
||
{else}
|
||
{$value->node}
|
||
{/if}
|
||
</span>
|
||
<p>
|
||
<a href="{$c->route('group', array($value->origin, $value->node))}">
|
||
<i class="zmdi zmdi-pages"></i> {$value->node}
|
||
</a> –
|
||
{$value->published|strtotime|prepareDate}
|
||
</p>
|
||
|
||
<p>
|
||
{if="current(explode('.', $value->origin)) != 'nsfw'"}
|
||
{$value->contentcleaned|strip_tags}
|
||
{/if}
|
||
</p>
|
||
</li>
|
||
{/if}
|
||
{/loop}
|
||
</ul>
|
||
<ul class="active thick">
|
||
<a href="{$c->route('group')}">
|
||
<li class="action">
|
||
<div class="action">
|
||
<i class="zmdi zmdi-chevron-right"></i>
|
||
</div>
|
||
<span class="icon"><i class="zmdi zmdi-pages"></i></span>
|
||
<span>Discover more articles on the Groups page</span>
|
||
</li>
|
||
</a>
|
||
</ul>
|
||
|