Add option for smaller font in banners.
[wolnelektury.git] / src / annoy / templates / annoy / banner.html
index 012be11..97f10c1 100644 (file)
@@ -7,7 +7,13 @@
       {{ banner.open_label }}
     </a>
   {% endif %}
-  <div class="annoy-banner annoy-banner_{{ banner.place }}{% if banner.image %} with-image{% endif %}" id="annoy-banner-{{ banner.id }}">
+  <div class="
+              annoy-banner
+              annoy-banner_{{ banner.place }}
+              annoy-banner-style_{{ banner.style }}
+              {% if banner.image %}with-image{% endif %}
+              {% if banner.smallfont %}banner-smallfont{% endif %}
+              " id="annoy-banner-{{ banner.id }}">
     {% if not banner.action_label %}
       <a href="{{ banner.url }}">
     {% endif %}
@@ -17,7 +23,7 @@
         <img src="{{ banner.image.url }}">
       {% endif %}
       <div class="text">
-        {{ banner.text|safe|linebreaks }}
+        {{ banner.get_text|safe|linebreaks }}
       </div>
 
       {% if banner.action_label %}