06/15 Phase 4 + 5 codes
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{# Reusable ad slot partial. Usage: {% include "ads/_slot.html" with slot="sidebar" %} #}
|
||||
{% if show_ads and ads.get(slot) %}
|
||||
{% set ad = ads[slot] %}
|
||||
<div class="ad-slot ad-{{ slot }}">
|
||||
<span class="ad-label">Ad</span>
|
||||
<a href="{{ url_for('ads.click', ad_id=ad.id) }}" target="_blank" rel="noopener sponsored">
|
||||
{% if ad.creative_path %}
|
||||
<img src="{{ url_for('listings.media', rel='ads/' + ad.creative_path) }}"
|
||||
alt="{{ ad.alt_text or ad.advertiser_name }}" class="ad-img">
|
||||
{% else %}
|
||||
<div class="ad-text-creative">{{ ad.advertiser_name }}</div>
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user