X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/9e40b5e5d7e26f4b8d3250cfbde23540a6205fd6..0a956f5ab638ecce28608fd8f48bd7c9f761ba63:/forum/skins/default/templates/base_content.html
diff --git a/forum/skins/default/templates/base_content.html b/forum/skins/default/templates/base_content.html
index c434d66..0fbcc5d 100644
--- a/forum/skins/default/templates/base_content.html
+++ b/forum/skins/default/templates/base_content.html
@@ -1,7 +1,6 @@
-{% load i18n %}
-{% load extra_tags %}
+{% load i18n extra_tags extra_filters markup ui_registry %}
{% block fulltitle %}{% block title %}{% endblock %} - {{ settings.APP_SHORT_NAME }}{% endblock %}
@@ -14,7 +13,7 @@
{% endif %}
- {% if settings.USE_CUSTOM_CSS %}
+ {% if settings.USE_CUSTOM_CSS|or_preview:request %}
{% endif %}
{% block forestyle %}{% endblock %}
@@ -34,7 +33,12 @@
message: "{% trans "Message:" %}",
cancel: "{% trans "Cancel" %}",
close: "{% trans "Close" %}",
- ok: "{% trans "Ok" %}"
+ ok: "{% trans "Ok" %}",
+ matching_tags_url: "{% url matching_tags %}",
+ word: "{% trans "word" %}",
+ words: "{% trans "words" %}",
+ character: "{% trans "character" %}",
+ characters: "{% trans "characters" %}"
}
/* ]] */
@@ -51,8 +55,12 @@
});
{% endif %}
+ {% if settings.USE_CUSTOM_HEAD|or_preview:request %}
+ {{ settings.CUSTOM_HEAD|or_preview:request|safe }}
+ {% endif %}
{% block forejs %}{% endblock %}
+ {% loadregistry head_content %}{% endloadregistry %}
@@ -65,6 +73,11 @@
{% endautoescape %}
×
+ {% if settings.USE_CUSTOM_HEADER|or_preview:request %}
+
+ {% endif %}
{% include "header.html" %}
{% block page_center %}
{% endblock %}
- {% include "footer.html" %}
+ {% if settings.USE_CUSTOM_FOOTER|or_preview:request %}
+ {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "above" %}
+
+ {% endifequal %}
+
+ {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "replace" %}
+ {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
+ {% else %}
+ {% include "footer.html" %}
+ {% endifequal %}
+
+ {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "below" %}
+
+ {% endifequal %}
+ {% else %}
+
+ {% include "footer.html" %}
+
+ {% endif %}
{% block endjs %}
{% endblock %}
{% if settings.GOOGLE_ANALYTICS_KEY %}