widget=Textarea(attrs={'rows': '25'}),
required=False))
+USE_ANNOUNCEMENT_BAR = Setting('USE_ANNOUNCEMENT_BAR', False, HEAD_AND_FOOT_SET, dict(
+ label = _("Show announcement bar"),
+ help_text = _("Some piece of content that goes under the search bar and can be used for announcements, etc."),
+ required=False))
+
+ANNOUNCEMENT_BAR = Setting('ANNOUNCEMENT_BAR', '', HEAD_AND_FOOT_SET, dict(
+ label = _("Announcement bar"),
+ help_text = _("The announcement bar content."),
+ widget=Textarea(attrs={'rows': '25'}),
+ required=False))
+
USE_CUSTOM_FOOTER = Setting('USE_CUSTOM_FOOTER', False, HEAD_AND_FOOT_SET, dict(
label = _("Use custom footer"),
help_text = _("Do you want to use a custom footer."),
<!-- template header.html -->
-{% load extra_tags ui_registry i18n %}
+{% load extra_tags ui_registry i18n extra_filters markup %}
<div id="roof">
<div id="navBar">
</tr>
</table>
</div>
- </div>
+ {% if settings.USE_ANNOUNCEMENT_BAR|or_preview:request %}
+ <div id="announcement">
+ {{ settings.ANNOUNCEMENT_BAR|or_preview:request|markdown:"settingsparser" }}
+ </div>
+ {% endif %}
+ </div>
<!-- end template header.html -->