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

29 lines
1 KiB
Smarty

<div id="share_widget">
<ul class="thick">
{if="isset($url)"}
<li class="condensed action">
<div class="action">
<i class="zmdi zmdi-link"></i>
</div>
<span class="icon bubble blue color">
<i class="zmdi zmdi-share"></i>
</span>
<span>{$c->__('page.share')}</span>
<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 class="condensed">
<span class="icon bubble orange color">
<i class="zmdi zmdi-alert-triangle"></i>
</span>
<span>{$c->__('page.share')}</span>
<p>{$c->__('share.error')}</p>
</li>
{/if}
</ul>
</div>