Skip to content

Commit

Permalink
liquid fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Rondio committed Nov 19, 2014
1 parent 185f341 commit 5c205fc
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 71 deletions.
4 changes: 2 additions & 2 deletions _tpl/box-most_tabs.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<article class="news_item condensed">
{{ image rendition="front_small" }}
<a href="{{url options="article"}}" class="thumbnail">
{{ include file="_tpl/article_icons.tpl" }}

<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
Expand Down Expand Up @@ -60,7 +60,7 @@
<article class="news_item condensed">
{{ image rendition="front_small" }}
<a href="{{url options="article"}}" class="thumbnail">
{{ include file="_tpl/article_icons.tpl" }}

<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
Expand Down
2 changes: 0 additions & 2 deletions _tpl/front-poll.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{{ config_load file="{{ $gimme->language->english_name }}.conf" section="poll" }}

{{ list_articles length="1" ignore_issue="true" ignore_section="true" constraints="type is poll" }}

{{ list_debates length="1" item="article" }}
Expand Down
4 changes: 2 additions & 2 deletions _tpl/section_cont.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ config_load file="{{ $gimme->language->english_name }}.conf" }}


<script type="text/template" id="item-template">

Expand All @@ -15,7 +15,7 @@
}

if(rendition){
console.log(rendition);
%>
<a href="<%= item.get('number') %>" class="thumbnail">
Expand Down
6 changes: 3 additions & 3 deletions _tpl/section_standard_cont.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ config_load file="{{ $gimme->language->english_name }}.conf" }}


<div class="row" id="masonry_container">

Expand All @@ -10,7 +10,7 @@
<article class="news_item">
{{ image rendition="front_big" }}
<a href="{{url options="article"}}" class="thumbnail">
{{ include file="_tpl/article_icons.tpl" }}

<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
Expand All @@ -22,7 +22,7 @@
<article class="news_item">
{{ image rendition="front_small" }}
<a href="{{url options="article"}}" class="thumbnail">
{{ include file="_tpl/article_icons.tpl" }}

<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
Expand Down
2 changes: 1 addition & 1 deletion _tpl/topic_cont.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ config_load file="{{ $gimme->language->english_name }}.conf" }}

<div class="bloger_news_items">
<div class="space_left_content">
<ul>
Expand Down
10 changes: 5 additions & 5 deletions front.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<article class="news_item">
{{ image rendition="article" }}
<a href="{{url options="article"}}" class="thumbnail">
{{ include file="_tpl/article_icons.tpl" }}

<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
Expand Down Expand Up @@ -63,7 +63,7 @@
<article class="news_item">
{{ image rendition="front_small" }}
<a href="{{url options="article"}}" class="thumbnail">
{{ include file="_tpl/article_icons.tpl" }}

<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
Expand Down Expand Up @@ -101,7 +101,7 @@
<article class="news_item">
{{ image rendition="front_medium" }}
<a href="{{url options="article"}}" class="thumbnail">
{{ include file="_tpl/article_icons.tpl" }}

<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
Expand Down Expand Up @@ -167,7 +167,7 @@
<article class="news_item">
{{ image rendition="front_big" }}
<a href="{{url options="article"}}" class="thumbnail">
{{ include file="_tpl/article_icons.tpl" }}

<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
Expand All @@ -179,7 +179,7 @@
<article class="news_item">
{{ image rendition="front_small" }}
<a href="{{url options="article"}}" class="thumbnail">
{{ include file="_tpl/article_icons.tpl" }}

<img src="{{ $image->src }}" alt="{{ $image->caption }} (photo: {{ $image->photographer }})" alt="" />
</a>
{{/image}}
Expand Down
56 changes: 23 additions & 33 deletions section.tpl
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@

{{ include file="_tpl/_html-head.tpl" }}


{{ include file="_tpl/header.tpl" }}

<div id="page" class="container">

<!-- Content -->
<section id="content">


{{ render file="_tpl/section_cont.tpl" params=$gimme->url->get_parameter("ls-art0") }}

</section>
<!-- End Content -->


</div>

<script>
var section_number = {{$gimme->section->number}};
var lang = '{{ $gimme->language->code }}';
</script>

<script src="{{ url static_file='_js/infiniteScroll/progress.min.js' }}" type="text/javascript"></script>
<script src="{{ url static_file='_js/under_backbone.js' }}" type="text/javascript"></script>
<script src="{{ url static_file='_js/infiniteScroll/model_collection.js' }}" type="text/javascript"></script>
<script src="{{ url static_file='_js/infiniteScroll/views.js' }}" type="text/javascript"></script>
<script src="{{ url static_file='_js/infiniteScroll/app.js' }}" type="text/javascript"></script>

{{ include file="_tpl/footer.tpl" }}
{{ include file="_tpl/_html-foot.tpl" }}

{{ include file="_tpl/_html-head.tpl" }}


{{ include file="_tpl/header.tpl" }}

<div id="page" class="container">

<!-- Content -->
<section id="content">


{{ render file="_tpl/section_standard_cont.tpl" params=$gimme->url->get_parameter("ls-art0") }}

</section>
<!-- End Content -->


</div>


{{ include file="_tpl/footer.tpl" }}
{{ include file="_tpl/_html-foot.tpl" }}
33 changes: 33 additions & 0 deletions section_liquid.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

{{ include file="_tpl/_html-head.tpl" }}


{{ include file="_tpl/header.tpl" }}

<div id="page" class="container">

<!-- Content -->
<section id="content">


{{ render file="_tpl/section_cont.tpl" params=$gimme->url->get_parameter("ls-art0") }}

</section>
<!-- End Content -->


</div>

<script>
var section_number = {{$gimme->section->number}};
var lang = '{{ $gimme->language->code }}';
</script>

<script src="{{ url static_file='_js/infiniteScroll/progress.min.js' }}" type="text/javascript"></script>
<script src="{{ url static_file='_js/under_backbone.js' }}" type="text/javascript"></script>
<script src="{{ url static_file='_js/infiniteScroll/model_collection.js' }}" type="text/javascript"></script>
<script src="{{ url static_file='_js/infiniteScroll/views.js' }}" type="text/javascript"></script>
<script src="{{ url static_file='_js/infiniteScroll/app.js' }}" type="text/javascript"></script>

{{ include file="_tpl/footer.tpl" }}
{{ include file="_tpl/_html-foot.tpl" }}
23 changes: 0 additions & 23 deletions section_standard_pagination.tpl

This file was deleted.

0 comments on commit 5c205fc

Please sign in to comment.