-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbox-most_tabs.tpl
94 lines (71 loc) · 3.39 KB
/
box-most_tabs.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!-- Blue Box / Row -->
<div class="blue_box blue_box_posts tabs_box">
<!-- Tabs Menu -->
<ul class="tabs_menu">
<li ><a href="#tab_most_clicked">{{'mostRead'|translate}}</a></li>
<li><a href="#tab_most_commented">{{'mostCommented'|translate}}</a></li>
</ul>
<!-- End Tabs Menu -->
<!-- Tabs Contents -->
<div class="tabs_contents">
<!-- Tabs Content -->
<div id="tab_most_clicked" class="tabs_content row">
{{list_articles length="4" ignore_section="true" order="byPopularity desc" constraints="type is news"}}
<div class="span3">
<article class="news_item condensed">
{{ image rendition="front_small" }}
<a href="{{url options="article"}}" class="thumbnail">
<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
<div class="content content_text content_text_contrast">
<h6 class="info">{{list_article_authors}}
{{if $gimme->current_list->index!=1}}, {{/if}}
{{ if $gimme->author->biography->first_name }}
{{ $gimme->author->biography->first_name }} {{
$gimme->author->biography->last_name }}
{{ else }}
{{ $gimme->author->name }}
{{ /if }}
{{if $gimme->current_list->at_end}}
- {{/if}}{{/list_article_authors}}{{ $gimme->article->publish_date|camp_date_format:"%d.%m.%Y, %H:%i" }}</h6>
<h3 class="title"><a href="{{url options="article"}}">{{$gimme->article->title}} </a></h3>
<p>{{$gimme->article->deck|strip_tags|truncate:200:"...":false}}</p>
</div>
</article>
</div>
{{/list_articles}}
</div>
<!-- End Tabs Content -->
<!-- Tabs Content -->
<div id="tab_most_commented" class="tabs_content row">
{{list_articles length="4" ignore_section="true" order="byComments desc" constraints="type is news"}}
<div class="span3">
<article class="news_item condensed">
{{ image rendition="front_small" }}
<a href="{{url options="article"}}" class="thumbnail">
<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
<div class="content content_text content_text_contrast">
<h6 class="info">{{list_article_authors}}
{{if $gimme->current_list->index!=1}}, {{/if}}
{{ if $gimme->author->biography->first_name }}
{{ $gimme->author->biography->first_name }} {{
$gimme->author->biography->last_name }}
{{ else }}
{{ $gimme->author->name }}
{{ /if }}
{{if $gimme->current_list->at_end}} - {{/if}}{{/list_article_authors}}{{ $gimme->article->publish_date|camp_date_format:"%d.%m.%Y, %H:%i" }}</h6>
<h3 class="title"><a href="{{url options="article"}}">{{$gimme->article->title}} </a></h3>
<p>{{$gimme->article->deck|strip_tags|truncate:200:"...":false}}</p>
</div>
</article>
</div>
{{/list_articles}}
</div>
<!-- End Tabs Content -->
</div>
<!-- End Tabs Contents -->
</div>
<!-- End Blue Box / Row -->