Discussions
Activity
Sign In
How it works
Newscoop Support
Help Little-Change design
Vote Up
0
Vote Down
Andrei S.
December 2014
Posts: 117
Member
I need 3rd row of front story area.
<div class="span8 home-featured-news">
{{ list_playlist_articles name="Front page" length="7" }}
{{ if $gimme->current_list->at_beginning }}
<div class="row">
<article class="span8 most-prominent">
<figure class="pull-left article-image">
<a href="{{uri option='article'}}">
{{ include file='_tpl/img/img_202x152.tpl'}}
{{ include file='_tpl/img/img_225x150.tpl'}}
</a>
</figure>
<header>
<span class="link-color">{{ $gimme->article->section->name}}</span>
{{ if !$gimme->article->content_accessible }}
<span class="label label-important normal-weight">{{ #premium# }}</span>
{{ /if }}
<h2><a href="{{ uri option='article'}}">{{ $gimme->article->name }}</a></h2>
</header>
<div class="article-excerpt hidden-phone">
{{ $gimme->article->deck|truncate:100:"...":true }}
</div>
<div class="article-links hidden-phone">
<hr>
<a href="{{ uri option='article'}}#comments" class="comments-link">{{ $gimme->article->comment_count }} {{ #comments# }}</a> | <a href="{{uri option='article'}}" class="link-color">{{ #readMore# }}</a>
</div>
<div class="clearfix"></div>
</article>
</div>
<div class="row">
<div class="span8 other-featured">
{{else}}
<article class="pull-left">
<div class="article-content">
<figure class="article-image pull-left">
<a href="{{ uri option='article'}}">
{{ include file='_tpl/img/img_202x152.tpl'}}
{{ include file='_tpl/img/img_225x150.tpl'}}
</a>
</figure>
<header>
<span class="link-color">{{ $gimme->article->section->name}}</span>
<h2><a href="{{url option='article'}}">{{ $gimme->article->name}}</a></h2>
{{ if !$gimme->article->content_accessible }}
<span class="label label-important normal-weight">{{ #premium# }}</span>
{{ /if }}
</header>
<div class="article-excerpt hidden-phone">
{{ $gimme->article->deck|truncate:100:"...":true }}
</div>
<div class="article-links hidden-phone">
<hr>
<a href="{{url option='article'}}#comments" class="comments-link">{{ $gimme->article->comment_count }} {{ #comments# }}</a> |
<a href="{{url option='article'}}" class="link-color">{{ #readMore# }}</a>
</div>
<div class="clearfix"></div>
</div>
</article>
{{/if}}
{{ if $gimme->current_list->at_end }}
</div>
</div>
{{/if}}
{{ /list_playlist_articles }}
</div><!-- end front-stories.tpl -->
Post edited by Andrei S. at 2014-12-23 22:33:19
1 Comment
sorted by
Votes
Date Added
Vote Up
1
Vote Down
ljuba rankovic
December 2014
Posts: 156
Member
Hi, try this
<div class="span8 home-featured-news">
{{ list_playlist_articles name="Front page" length="7" }}
{{ if $gimme->current_list->at_beginning }}
<div class="row">
<article class="span8 most-prominent">
<figure class="pull-left article-image">
<a href="{{uri option='article'}}">
{{ include file='_tpl/img/img_202x152.tpl'}}
{{ include file='_tpl/img/img_225x150.tpl'}}
</a>
</figure>
<header>
<span class="link-color">{{ $gimme->article->section->name}}</span>
{{ if !$gimme->article->content_accessible }}
<span class="label label-important normal-weight">{{ #premium# }}</span>
{{ /if }}
<h2><a href="{{ uri option='article'}}">{{ $gimme->article->name }}</a></h2>
</header>
<div class="article-excerpt hidden-phone">
{{ $gimme->article->deck|truncate:100:"...":true }}
</div>
<div class="article-links hidden-phone">
<hr>
<a href="{{ uri option='article'}}#comments" class="comments-link">{{ $gimme->article->comment_count }} {{ #comments# }}</a> | <a href="{{uri option='article'}}" class="link-color">{{ #readMore# }}</a>
</div>
<div class="clearfix"></div>
</article>
</div>
{{else}}
{{ if ($gimme->current_list->index == 2) || ($gimme->current_list->index == 5) }}
<div class="row">
<div class="span8 other-featured">
{{ /if }}
<article class="pull-left">
<div class="article-content">
<figure class="article-image pull-left">
<a href="{{ uri option='article'}}">
{{ include file='_tpl/img/img_202x152.tpl'}}
{{ include file='_tpl/img/img_225x150.tpl'}}
</a>
</figure>
<header>
<span class="link-color">{{ $gimme->article->section->name}}</span>
<h2><a href="{{url option='article'}}">{{ $gimme->article->name}}</a></h2>
{{ if !$gimme->article->content_accessible }}
<span class="label label-important normal-weight">{{ #premium# }}</span>
{{ /if }}
</header>
<div class="article-excerpt hidden-phone">
{{ $gimme->article->deck|truncate:100:"...":true }}
</div>
<div class="article-links hidden-phone">
<hr>
<a href="{{url option='article'}}#comments" class="comments-link">{{ $gimme->article->comment_count }} {{ #comments# }}</a> |
<a href="{{url option='article'}}" class="link-color">{{ #readMore# }}</a>
</div>
<div class="clearfix"></div>
</div>
</article>
{{ if ($gimme->current_list->index == 4) || $gimme->current_list->at_end }}
</div>
</div>
{{/if}}
{{/if}}
{{ /list_playlist_articles }}
</div><!-- end front-stories.tpl -->
--
Ljuba Rankovic
Senior Front End Developer, Sourcefabric
ljuba.rankovic@sourcefabric.org
http://www.sourcefabric.org
http://www.twitter.com/Sourcefabric
Add a Comment
Start a New Discussion
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
8,397
Sourcefabric
↳
Announcements
25
Newscoop
↳
Newscoop Support
2,189
↳
Newscoop Development
722
↳
Newscoop Security
13
↳
Newscoop Documentation
17
↳
Newscoop Themes
69
Airtime
↳
Airtime Support
3,139
↳
Airtime Development
1,286
↳
Airtime Français
146
↳
Airtime Documentation
14
↳
Airtime Hacks
102
↳
Promote your station!
37
↳
Airtime Security
11
Booktype
↳
Booktype Support
277
↳
Booktype Development
55
↳
Booktype Documentation
7
Superdesk
↳
Superdesk Development
264
↳
Web Publisher
21
Poll
No poll attached to this discussion.
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339