From b634829548b7159412b3ef03c9f73265d9c655ed Mon Sep 17 00:00:00 2001 From: gustavofoa Date: Sat, 17 Sep 2016 10:10:20 -0300 Subject: [PATCH] Adsense Banners --- templates/adsense-banner.html | 12 ------------ templates/article.html | 15 ++++++++++----- templates/base.html | 26 ++++++++++++++++++++++++++ templates/index.html | 12 ++++++++++++ 4 files changed, 48 insertions(+), 17 deletions(-) delete mode 100644 templates/adsense-banner.html diff --git a/templates/adsense-banner.html b/templates/adsense-banner.html deleted file mode 100644 index 8e47f64..0000000 --- a/templates/adsense-banner.html +++ /dev/null @@ -1,12 +0,0 @@ - -{% if ADSENSE_AD_CLIENT and ADSENSE_AD_SLOT %} - - - -{% endif %} diff --git a/templates/article.html b/templates/article.html index 6c7d474..d9c172a 100644 --- a/templates/article.html +++ b/templates/article.html @@ -13,9 +13,6 @@
- {% if SHOW_ADSENSE_ARTICLE_TOP %} - {% include "adsense-banner.html" %} - {% endif %}

{{ article.title }}

{{ _('Posted on %(when)s in %(category)s', @@ -31,8 +28,16 @@ {{ article.content }} - {% if SHOW_ADSENSE_ARTICLE_BOTTOM %} - {% include "adsense-banner.html" %} + {% if ADSENSE.adClientId and ADSENSE.adSlot.articleBottom %} + + + {% endif %}

diff --git a/templates/base.html b/templates/base.html index 214ba04..83bed54 100644 --- a/templates/base.html +++ b/templates/base.html @@ -97,8 +97,34 @@ {% endfor %}
+ + {% if ADSENSE.adClientId and ADSENSE.adSlot.aside %} + + + + {% endif %} +
+ + {% if ADSENSE.adClientId and ADSENSE.adSlot.top %} + + + + {% endif %} + {% if MAIN_MENU %}
{% endfor %} +{% if ADSENSE.adClientId and ADSENSE.adSlot.homeBottom %} + + + +{% endif %} + {% include "partial/pagination.html" %} {% endblock %}