Skip to content

Commit

Permalink
playlists added to theme.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Rondio committed Jun 21, 2016
1 parent 6c7bf14 commit 112911d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 20 deletions.
2 changes: 1 addition & 1 deletion _tpl/front-poll.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@
{{ /if }}
{{ /list_debates }}

{{ /list_articles }}
{{ /list_articles }}
13 changes: 6 additions & 7 deletions front.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,21 @@
<article class="news_item">
{{ image rendition="front_medium" }}
<a href="{{url options="article"}}" class="thumbnail">

<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
<div class="content content_text">
<h6 class="info">{{list_article_authors}}
<h6 class="info">
{{list_article_authors}}
{{if $gimme->current_list->index!=1}},&nbsp;{{/if}}

{{ if $gimme->author->biography->first_name }}
{{ $gimme->author->biography->first_name }} {{
$gimme->author->biography->last_name }}
{{ $gimme->author->biography->first_name }} {{$gimme->author->biography->last_name}}
{{ else }}
{{ $gimme->author->name }}
{{ /if }}
{{if $gimme->current_list->at_end}}
&nbsp;-&nbsp;{{/if}}{{/list_article_authors}}{{ $gimme->article->publish_date|camp_date_format:"%d.%m.%Y, %H:%i" }}</h6>
{{if $gimme->current_list->at_end}}&nbsp;-&nbsp;{{/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>
{{ if !$gimme->article->content_accessible }}
<span class="premium_label">{{'premium'|translate}}</span>
Expand Down
32 changes: 20 additions & 12 deletions theme.xml
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
<?xml version="1.0"?>
<theme name="Liquid" designer="Sourcefabric" version="1.0" require="4.3">
<description>Theme for Newscoop Version 4.3</description>
<description>Theme for Newscoop Version 4.3</description>

<presentation-img src="themethumbs/front.png" name="Front page"/>
<presentation-img src="themethumbs/section.png" name="Section page"/>
<presentation-img src="themethumbs/article.png" name="Article"/>
<presentation-img src="themethumbs/front.png" name="Front page"/>
<presentation-img src="themethumbs/section.png" name="Section page"/>
<presentation-img src="themethumbs/article.png" name="Article"/>

<!-- =============================== -->
<!-- =============================== -->

<output name="Web">
<frontPage src="front.tpl"/>
<sectionPage src="section.tpl"/>
<articlePage src="article.tpl"/>
<errorPage src="404.tpl"/>
<output name="Web">
<frontPage src="front.tpl"/>
<sectionPage src="section.tpl"/>
<articlePage src="article.tpl"/>
<errorPage src="404.tpl"/>
</output>
<renditions>

<renditions>
<rendition name="section" width="496" height="334" specs="crop"/>
<rendition name="article" width="770" height="515" specs="crop"/>
<rendition name="front_small" width="478" height="326" specs="crop"/>
<rendition name="front_medium" width="478" height="320" specs="crop"/>
<rendition name="front_big" width="570" height="384" specs="crop"/>
<rendition name="slideshow" width="770" height="515" specs="crop"/>
</renditions>

</renditions>
<articlesLists>
<list name="Frontpage">
<template file="front.tpl" />
</list>
<list name="Editorial Content">
<template file="_tpl/front-columnists.tpl" />
</list>
</articlesLists>
</theme>

0 comments on commit 112911d

Please sign in to comment.