{# INCLUDE #}
{% if affiliates %}
<!-- Affiliate Links Banner Bar (INCLUDE) -->
<div id="AffiliateLinks" class="banner_bar">
<p class="fine_print">
{% if affiliates_message is defined %}
{{ affiliates_message }}</p>
{% else %}
Affiliate links: commissions support our project.</p>
{% endif %}
<div class="affiliate_carousel">
<div class="affiliate_content">
{% for i in range(2) %}
{% for affiliate in affiliates %}
<div class="affiliate_item">
<a href="{{affiliate.url}}" target="_blank" rel="nofollow" ><img src="{{imgdir}}/affiliates/{{affiliate.img}}" 
     alt="{{affiliate.name | escape}}" title="{{affiliate.name | escape}} - {{affiliate.type}}" 
     class="affiliate_image" /></a>
</div>
{% endfor %}
{% endfor %}
</div>
</div>
</div> <!-- AffiliateLinks -->
{% endif %}