2015-08-03 11:35:01 +02:00
|
|
|
|
<div id="hello_widget" class="divided">
|
2015-12-23 22:14:25 +01:00
|
|
|
|
<header>
|
|
|
|
|
<ul class="list middle">
|
|
|
|
|
<li>
|
|
|
|
|
<span id="menu" class="primary on_mobile icon active gray" onclick="MovimTpl.toggleMenu()"><i class="zmdi zmdi-menu"></i></span>
|
|
|
|
|
<span class="primary on_desktop icon gray"><i class="zmdi zmdi-home"></i></span>
|
|
|
|
|
<p class="center">{$c->__('page.home')}</p>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</header>
|
|
|
|
|
|
2015-11-13 13:37:39 +01:00
|
|
|
|
{if="!isset($top) || !isset($news)"}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<ul class="list thick">
|
2015-11-13 13:37:39 +01:00
|
|
|
|
{$a = '1f600'}
|
|
|
|
|
<li>
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<p>{$c->__('hello.enter_title')}</p>
|
|
|
|
|
<p>{$c->__('hello.enter_paragraph')} <img alt=":smiley:" class="emoji" src="{$a|getSmileyPath}"></p>
|
2015-11-13 13:37:39 +01:00
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<ul class="list middle">
|
|
|
|
|
<li>
|
|
|
|
|
<span class="primary icon gray">
|
2015-11-13 13:37:39 +01:00
|
|
|
|
<i class="zmdi zmdi-menu on_mobile"></i>
|
|
|
|
|
<i class="zmdi zmdi-cloud-outline on_desktop"></i>
|
|
|
|
|
</span>
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<p>{$c->__('hello.menu_title')}</p>
|
|
|
|
|
<p>{$c->__('hello.menu_paragraph')}</p>
|
2015-11-13 13:37:39 +01:00
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
{/if}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<ul class="list flex active middle">
|
|
|
|
|
<li class="subheader block large">
|
|
|
|
|
<p>{$c->__('chat.frequent')}</p>
|
|
|
|
|
</li>
|
2015-11-13 13:37:39 +01:00
|
|
|
|
{if="empty($top)"}
|
|
|
|
|
<li>
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<span class="primary icon gray">
|
2015-11-13 13:37:39 +01:00
|
|
|
|
<i class="zmdi zmdi-info-outline"></i>
|
|
|
|
|
</span>
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<p class="normal">{$c->__('chats.empty_title')}</p>
|
2015-11-13 13:37:39 +01:00
|
|
|
|
</li>
|
|
|
|
|
{/if}
|
2015-08-03 11:35:01 +02:00
|
|
|
|
{loop="$top"}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<li tabindex="{$key+1}" class="block"
|
2015-08-03 11:35:01 +02:00
|
|
|
|
onclick="Hello_ajaxChat('{$value->jid}')">
|
|
|
|
|
{$url = $value->getPhoto('s')}
|
|
|
|
|
{if="$url"}
|
|
|
|
|
<span
|
2015-12-21 22:59:03 +01:00
|
|
|
|
class="primary icon bubble
|
2015-08-03 11:35:01 +02:00
|
|
|
|
{if="$value->value"}
|
|
|
|
|
status {$presencestxt[$value->value]}
|
|
|
|
|
{/if}">
|
|
|
|
|
<img src="{$url}">
|
|
|
|
|
</span>
|
|
|
|
|
{else}
|
|
|
|
|
<span
|
2015-12-21 22:59:03 +01:00
|
|
|
|
class="primary icon bubble color {$value->jid|stringToColor}
|
2015-08-03 11:35:01 +02:00
|
|
|
|
{if="$value->value"}
|
|
|
|
|
status {$presencestxt[$value->value]}
|
|
|
|
|
{/if}">
|
|
|
|
|
<i class="zmdi zmdi-account"></i>
|
|
|
|
|
</span>
|
|
|
|
|
{/if}
|
|
|
|
|
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<p>{$value->getTrueName()}</p>
|
|
|
|
|
<p>
|
|
|
|
|
{if="isset($value->status)"}
|
|
|
|
|
{$value->status}
|
|
|
|
|
{else}
|
|
|
|
|
{$value->jid}
|
|
|
|
|
{/if}
|
|
|
|
|
</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
|
</li>
|
|
|
|
|
{/loop}
|
|
|
|
|
<a class="block large" href="{$c->route('chat')}">
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<li>
|
|
|
|
|
<span class="primary icon">
|
2015-08-03 11:35:01 +02:00
|
|
|
|
<i class="zmdi zmdi-comments"></i>
|
|
|
|
|
</span>
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<span class="control icon">
|
|
|
|
|
<i class="zmdi zmdi-chevron-right"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<p class="normal">{$c->__('hello.chat')}</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
|
</li>
|
|
|
|
|
</a>
|
|
|
|
|
</ul>
|
|
|
|
|
{if="$c->supported('pubsub')"}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<ul id="news" class="list card shadow flex active">
|
2015-11-13 13:37:39 +01:00
|
|
|
|
{if="empty($news)"}
|
2015-12-24 14:21:18 +01:00
|
|
|
|
<li class="block">
|
|
|
|
|
<span class="primary icon gray">
|
2015-11-13 13:37:39 +01:00
|
|
|
|
<i class="zmdi zmdi-info-outline"></i>
|
|
|
|
|
</span>
|
2015-12-24 14:21:18 +01:00
|
|
|
|
<p class="normal">{$c->__('menu.empty_title')}</p>
|
2015-11-13 13:37:39 +01:00
|
|
|
|
</li>
|
|
|
|
|
{/if}
|
2015-08-03 11:35:01 +02:00
|
|
|
|
{loop="$news"}
|
2015-12-15 11:54:49 +01:00
|
|
|
|
{$attachements = $value->getAttachements()}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<li class="block "
|
2015-08-03 11:35:01 +02:00
|
|
|
|
data-id="{$value->nodeid}"
|
|
|
|
|
{if="$value->title != null"}
|
|
|
|
|
title="{$value->title|strip_tags}"
|
|
|
|
|
{else}
|
|
|
|
|
title="{$c->__('hello.contact_post')}"
|
|
|
|
|
{/if}
|
|
|
|
|
onclick="movim_reload('{$c->route('news', $value->nodeid)}')"
|
|
|
|
|
>
|
|
|
|
|
{$picture = $value->getPicture()}
|
|
|
|
|
{if="current(explode('.', $value->origin)) == 'nsfw'"}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<span class="primary icon thumb color red tiny">
|
2015-08-03 11:35:01 +02:00
|
|
|
|
+18
|
|
|
|
|
</span>
|
|
|
|
|
{elseif="$picture != null"}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<span class="primary icon thumb" style="background-image: url({$picture});"></span>
|
2015-08-03 11:35:01 +02:00
|
|
|
|
{elseif="$value->node == 'urn:xmpp:microblog:0'"}
|
|
|
|
|
{$url = $value->getContact()->getPhoto('l')}
|
|
|
|
|
{if="$url"}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<span class="primary icon thumb" style="background-image: url({$url});">
|
2015-08-03 11:35:01 +02:00
|
|
|
|
</span>
|
|
|
|
|
{else}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<span class="primary icon thumb color {$value->getContact()->jid|stringToColor}">
|
2015-08-03 11:35:01 +02:00
|
|
|
|
<i class="zmdi zmdi-account"></i>
|
|
|
|
|
</span>
|
|
|
|
|
{/if}
|
|
|
|
|
{else}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<span class="primary icon thumb color {$value->node|stringToColor}">{$value->node|firstLetterCapitalize}</span>
|
|
|
|
|
{/if}
|
|
|
|
|
{if="$value->privacy"}
|
|
|
|
|
<span class="control icon gray" title="{$c->__('menu.public')}">
|
|
|
|
|
<i class="zmdi zmdi-portable-wifi"></i>
|
|
|
|
|
</span>
|
2015-08-03 11:35:01 +02:00
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if="$value->title != null"}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<p class="line">{$value->title}</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
|
{else}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<p class="line">{$c->__('hello.contact_post')}</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
|
{/if}
|
2015-08-10 23:42:45 +02:00
|
|
|
|
<p>
|
|
|
|
|
{if="$value->node == 'urn:xmpp:microblog:0'"}
|
|
|
|
|
<a href="{$c->route('contact', $value->getContact()->jid)}">
|
|
|
|
|
<i class="zmdi zmdi-account"></i> {$value->getContact()->getTrueName()}
|
|
|
|
|
</a> –
|
|
|
|
|
{else}
|
|
|
|
|
{$value->origin} /
|
|
|
|
|
<a href="{$c->route('group', array($value->origin, $value->node))}">
|
|
|
|
|
<i class="zmdi zmdi-pages"></i> {$value->node}
|
|
|
|
|
</a> –
|
2015-08-03 11:35:01 +02:00
|
|
|
|
{/if}
|
2015-08-10 23:42:45 +02:00
|
|
|
|
{$value->published|strtotime|prepareDate}
|
2015-08-03 11:35:01 +02:00
|
|
|
|
</p>
|
2015-08-10 23:42:45 +02:00
|
|
|
|
<p>{$value->contentcleaned|strip_tags}</p>
|
|
|
|
|
|
2015-08-03 11:35:01 +02:00
|
|
|
|
</li>
|
|
|
|
|
{/loop}
|
2015-12-23 22:14:25 +01:00
|
|
|
|
</ul>
|
|
|
|
|
<ul class="list">
|
2015-08-03 11:35:01 +02:00
|
|
|
|
<a href="{$c->route('news')}">
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<li>
|
|
|
|
|
<span class="primary icon">
|
2015-08-03 11:35:01 +02:00
|
|
|
|
<i class="zmdi zmdi-receipt"></i>
|
|
|
|
|
</span>
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<span class="control icon">
|
|
|
|
|
<i class="zmdi zmdi-chevron-right"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<p class="normal line">{$c->__('hello.news_page')}</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
|
</li>
|
|
|
|
|
</a>
|
|
|
|
|
</ul>
|
|
|
|
|
<br />
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<ul class="list active on_desktop">
|
2015-08-03 11:35:01 +02:00
|
|
|
|
<a href="{$c->route('blog', array($jid))}" target="_blank">
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<li>
|
|
|
|
|
<span class="primary icon">
|
2015-08-03 11:35:01 +02:00
|
|
|
|
<i class="zmdi zmdi-portable-wifi"></i>
|
|
|
|
|
</span>
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<span class="control icon">
|
|
|
|
|
<i class="zmdi zmdi-chevron-right"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<p class="list">{$c->__('hello.blog_title')}</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
|
<p>{$c->__('hello.blog_text')}</p>
|
|
|
|
|
</li>
|
|
|
|
|
<br/>
|
|
|
|
|
</a>
|
|
|
|
|
</ul>
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<ul class="list thick flex on_desktop">
|
|
|
|
|
<li class="block">
|
|
|
|
|
<span class="primary icon bubble color blue">
|
2015-08-03 11:35:01 +02:00
|
|
|
|
<i class="zmdi zmdi-share"></i>
|
|
|
|
|
</span>
|
2015-12-21 22:59:03 +01:00
|
|
|
|
<p class="line">{$c->__('hello.share_title')}</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
|
<p>{$c->__('hello.share_text')}</p>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="block">
|
2015-11-13 13:37:39 +01:00
|
|
|
|
<a class="button" href="javascript:(function(){location.href='{$c->route('share', '\'+escape(encodeURIComponent(location.href));')}})();">
|
2015-08-03 11:35:01 +02:00
|
|
|
|
<i class="zmdi zmdi-share"></i> {$c->__('hello.share_button')}
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|