1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/app/widgets/Share/share.tpl
2016-02-12 10:02:32 +01:00

29 lines
1 KiB
Smarty

<div id="share_widget">
<ul class="list thick">
{if="isset($url)"}
<li>
<span class="control icon gray">
<i class="zmdi zmdi-link"></i>
</span>
<span class="primary icon bubble blue color">
<i class="zmdi zmdi-share"></i>
</span>
<p>{$c->__('page.share')}</p>
<p>{$c->__('share.success')}</p>
<p><a href="{$url}">{$url}</a></p>
</li>
<script type="text/javascript">
localStorage.setItem('share_url', '{$url}');
movim_redirect('{$c->route('news')}');
</script>
{else}
<li>
<span class="primary icon bubble orange color">
<i class="zmdi zmdi-alert-triangle"></i>
</span>
<p>{$c->__('page.share')}</p>
<p>{$c->__('share.error')}</p>
</li>
{/if}
</ul>
</div>