{*
 **********************************************************
 * Developed by: Team Theme Metro
 * Website: http://www.thememetro.com
 **********************************************************
*}


<div class="article">
	<div class="mb-3 text-muted">
		<i class="fad fa-calendar-week text-primary fa-fw"></i>{$carbon->createFromTimestamp($timestamp)->format('l, F j, Y')}
		{if $editLink}
			<a href="{$editLink}" data-toggle="tooltip" title="{lang key='edit'}">
				<i class="fal fa-edit fa-fw"></i>
			</a>
		{/if}
	</div>
	<div class="article-content">
		{$text}
	</div>

</div>

{if $themesettings.general.disqus == ""}

{if $twittertweet or $facebookrecommend or $googleplus1}
	<div class="TM-card social">
		{if $twittertweet}
			<div>
				<div class="tweetbutton" style="display:inline-block;"><a href="https://twitter.com/share" class="twitter-share-button" data-via="{$twitterusername}">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script></div>
			</div>
		{/if}
		{if $facebookrecommend}
			<div>
				{literal}<script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>{/literal}
				<div class="fb-like" data-href="{fqdnRoutePath('announcement-view', $id, $urlfriendlytitle)}" data-send="true" data-width="450" data-show-faces="true" data-action="recommend"></div>
			</div>
		{/if}
	</div>
{/if}

{if $facebookcomments}
    <br />
    <br />
    {literal}
    <div id="fb-root">
    </div>
    <script>(function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) {return;}
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
        fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>
    {/literal}
    <fb:comments href="{fqdnRoutePath('announcement-view', $id, $urlfriendlytitle)}" num_posts="5" width="100%"></fb:comments>
{/if}

{else}

<div id="disqus_thread"></div>
<script type="text/javascript">
    var disqus_shortname = '{$themesettings.general.disqus}';
	
    (function() {
        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
</script>

{/if}
