Skip to content

Commit

Permalink
fixing banners
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocamposviana committed Dec 13, 2013
1 parent c376a77 commit 6c55dee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
TODO:
- Implement multibanner and banner templates;
- Improve gallery template;
- Improve content generation on install;
- Improve pagination;
Expand Down
8 changes: 5 additions & 3 deletions Resources/views/parts/page_banners.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@

<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
{% for item in banners[0].searchHits %}
{% for item in banners[0].searchHits %}
<div class="item{%if loop.index-1==0 %} active{% endif %}">


{% if not ez_is_field_empty( item.valueObject, "image" ) %}
<div class="attribute-image">
Expand All @@ -29,8 +30,9 @@
<div class="carousel-caption">
{{ item.valueObject.fields.title[language].text }}
</div>
{% endfor %}

</div>
{% endfor %}
</div>

<!-- Controls -->
Expand Down

0 comments on commit 6c55dee

Please sign in to comment.