Skip to content

Commit

Permalink
Fix for strict variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SahAssar authored and GwendolenLynch committed Apr 30, 2016
1 parent 8c1e250 commit 80408a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/sitemap_xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
{% if record.fieldtype(key) == "image" and value != "" %}
<image:image>
<image:loc>{{app.paths.hosturl}}{{value|image(app.config.get('general/thumbnails/default_image')|first,app.config.get('general/thumbnails/default_image')|last,app.config.get('general/thumbnails/default_image')|slice(0,1))}}</image:loc>
<image:title><![CDATA[{{value.alt ? value.alt : value.title}}]]></image:title>
<image:caption><![CDATA[{{value.title ? value.title : value.alt}}]]></image:caption>
<image:title><![CDATA[{{value.alt|default(false) ? value.alt : value.title|default('')}}]]></image:title>
<image:caption><![CDATA[{{value.title|default(false) ? value.title : value.alt|default('')}}]]></image:caption>
</image:image>
{% elseif record.fieldtype(key) == "imagelist" and attribute(record, key) is not empty %}
{% set list = attribute(record, key) %}
Expand Down

0 comments on commit 80408a9

Please sign in to comment.