forked from EhsanCh/whmcs-template-six-rtl
-
Notifications
You must be signed in to change notification settings - Fork 2
/
homepage.tpl
54 lines (46 loc) · 2.84 KB
/
homepage.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{if $twitterusername}
<h2>{$LANG.twitterlatesttweets}</h2>
<div id="twitterFeedOutput">
<p class="text-center"><img src="{$BASE_PATH_IMG}/loading.gif" /></p>
</div>
<script type="text/javascript" src="templates/{$template}/js/twitter.js"></script>
{elseif $announcements}
<h2>{$LANG.news}</h2>
{foreach $announcements as $announcement}
{if $announcement@index < 2}
<div class="announcement-single">
<h3>
<span class="label label-default">
{if $jdate}{$announcement.date}{else}{$announcement.rawDate|date_format:"M jS"}{/if}
</span>
<a href="{if $seofriendlyurls}{$WEB_ROOT}/announcements/{$announcement.id}/{$announcement.urlfriendlytitle}.html{else}announcements.php?id={$announcement.id}{/if}">{$announcement.title}</a>
</h3>
<blockquote>
<p>
{if $announcement.text|strip_tags|strlen < 350}
{$announcement.text}
{else}
{$announcement.summary}
<a href="{if $seofriendlyurls}{$WEB_ROOT}/announcements/{$announcement.id}/{$announcement.urlfriendlytitle}.html{else}announcements.php?id={$announcement.id}{/if}" class="label label-warning">{$LANG.readmore} »</a>
{/if}
</p>
</blockquote>
{if $announcementsFbRecommend}
<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>
<div class="fb-like hidden-sm hidden-xs" data-layout="standard" data-href="{$systemurl}{if $seofriendlyurls}{$WEB_ROOT}/announcements/{$announcement.id}/{$announcement.urlfriendlytitle}.html{else}announcements.php?id={$announcement.id}{/if}" data-send="true" data-width="450" data-show-faces="true" data-action="recommend"></div>
<div class="fb-like hidden-lg hidden-md" data-layout="button_count" data-href="{$systemurl}{if $seofriendlyurls}{$WEB_ROOT}/announcements/{$announcement.id}/{$announcement.urlfriendlytitle}.html{else}announcements.php?id={$announcement.id}{/if}" data-send="true" data-width="450" data-show-faces="true" data-action="recommend"></div>
{/if}
</div>
{/if}
{/foreach}
{/if}