From 7d685c5e64149e20c7dc8977f645e050be53ddfd Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Tue, 10 Dec 2024 17:15:10 +0100 Subject: Add classic theme --- src/application/templates/old/base.twig | 223 ++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 src/application/templates/old/base.twig (limited to 'src/application/templates/old/base.twig') diff --git a/src/application/templates/old/base.twig b/src/application/templates/old/base.twig new file mode 100644 index 0000000..7b358d0 --- /dev/null +++ b/src/application/templates/old/base.twig @@ -0,0 +1,223 @@ +{%- if title -%} + {%- set title = title ~ " | " -%} +{%- endif -%} +{%- set title = title ~ (g.env.MYSTIC_FORUM_TITLE|default("Forum")) -%} +{%- set nextParam = "" -%} +{%- if g.globals.action in ["login", "register"] -%} + {%- set nextParam = g.get.next|default("") -%} +{%- else -%} + {%- set nextParam = g.server.REQUEST_URI -%} +{%- endif -%} + + + + + + + + + {{ title }} + + + {% block head_after %}{% endblock %} + + + + +{% block nav %} + + + +{% endblock %} + +{% block main %} + +{% endblock %} + +{% block footer %} + + + +{% endblock %} + +{% block scripts %} + + +{% endblock %} + +
+ + + +
+ + +{% block navbar %} + {% if currentUser %} + + +  {{ __("Search") }} +  {{ __("View profile") }} + + {% else %} + +  {{ __("Search") }} +  {{ __("Log in") }} + {% if constant("REGISTRATION_ENABLED") %} +  {{ __("Register") }} + {% endif %} + {% endif %} +{% endblock %} + +
{{ __("Welcome, %user%!", { + user: currentUser.id == constant("mystic\\forum\\orm\\User::SUPERUSER_ID") ? ('' ~ (currentUser.displayName|e("html")) ~ '')|raw : ('' ~ (currentUser.displayName|e("html")) ~ '')|raw + }) }} {{ __("Start") }} {{ __("Log out") }} {{ __("Start") }}
+
+
+ {% block content %}{% endblock %} +
+ + + + + + +
+ + -- cgit v1.2.3