Add option for smaller font in banners.
[wolnelektury.git] / src / annoy / templates / annoy / banner.html
1 {% if banner %}
2   {% if closable %}
3     <a class='annoy-banner-on annoy-banner-on_{{ banner.place }}'
4        href="{{ banner.url }}"
5        data-target="#annoy-banner-{{ banner.id }}"
6     >
7       {{ banner.open_label }}
8     </a>
9   {% endif %}
10   <div class="
11               annoy-banner
12               annoy-banner_{{ banner.place }}
13               annoy-banner-style_{{ banner.style }}
14               {% if banner.image %}with-image{% endif %}
15               {% if banner.smallfont %}banner-smallfont{% endif %}
16               " id="annoy-banner-{{ banner.id }}">
17     {% if not banner.action_label %}
18       <a href="{{ banner.url }}">
19     {% endif %}
20     <div class="annoy-banner-inner">
21
22       {% if banner.image %}
23         <img src="{{ banner.image.url }}">
24       {% endif %}
25       <div class="text">
26         {{ banner.get_text|safe|linebreaks }}
27       </div>
28
29       {% if banner.action_label %}
30         <a class="action" href="{{ banner.url }}">
31           {{ banner.action_label }}
32         </a>
33       {% endif %}
34     </div>
35     {% if not banner.action_label %}
36       </a>
37     {% endif %}
38     {% if closable %}
39       <a class='annoy-banner-off annoy-banner-off_{{ banner.place }}'>{{ banner.close_label|default:"x" }}</a>
40     {% endif %}
41   </div>
42
43 {% endif %}