{if isset($RSThemes['pages'][$templatefile]) && file_exists($RSThemes['pages'][$templatefile]['fullPath'])}
    {include file=$RSThemes['pages'][$templatefile]['fullPath']}
{else}	
	<div class="article panel panel-default">
        <div class="panel-body">
            <ul class="article-details">
                <li>
                    <i class="ls ls-calendar"></i>
                    <span>{$carbon->createFromTimestamp($timestamp)->format('l, F j, Y')}</span>
                </li>
            </ul>
            <div class="article-content">
                {$text}
            </div>
            <div class="article-footer">
                <div class="article-actions">
                    <a tabindex="0" href="{routePath('announcement-index')}" class="btn btn-default">{$LANG.clientareabacklink|replace:"&laquo;":""}</a>
                    {if $editLink}
                    <a tabindex="0" href="{$editLink}" class="btn btn-default btn-article-edit">
                        {$LANG.edit}
                    </a>
                    {/if}
                </div>
                <div class="article-share">
                    {if $twittertweet}
                    <span>
                        <a tabindex="0" href="https://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="{$twitterusername}">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
                    </span>
                    {/if}                
                    {if $facebookrecommend}
                    <span>
                        {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}
                        <div class="fb-like" data-lagom-href="{fqdnRoutePath('announcement-view', $id, $urlfriendlytitle)}" data-send="true" data-width="450" data-show-faces="true" data-action="recommend">
                        </div>
                    </span>
                    {/if}
                </div>
            </div>
        </div>
        {if $RSThemes.addonSettings.show_schema == 'on'}
            {capture name="annHeadline"}{$title|default:$urlfriendlytitle}{/capture}
            {capture name="annBody"}{$text|strip_tags}{/capture}
            {capture name="annLogo"}{$systemurl}assets/img/logo.png{/capture}
            {assign var=annUrl value=fqdnRoutePath('announcement-view', $id, $urlfriendlytitle)}
            {literal}
                <script type="application/ld+json">
                    {
                    "@context": "https://schema.org",
                    "@type": "NewsArticle",
                    {/literal}
                    "headline": {$smarty.capture.annHeadline|json_encode},
                    "datePublished": "{$carbon->createFromTimestamp($timestamp)->toIso8601String()}",
                    "articleBody": {$smarty.capture.annBody|json_encode},
                    "url": {$annUrl|json_encode},
                    "publisher": {literal}{{/literal}
                    "@type": "Organization",
                    "name": {$companyname|json_encode},
                    "logo": {literal}{{/literal}
                        "@type": "ImageObject",
                        "url": {$smarty.capture.annLogo|json_encode}
                    {literal}}{/literal}
                    {literal}}{/literal}
                    {literal}
                    }
                </script>
            {/literal}
        {/if}
	</div>
	{if $facebookcomments}
    <div class="article-comments panel panel-default panel-form">
        <div class="panel-body">
            {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="500"></fb:comments>
        </div>
    </div>
	{/if}
{/if}	