From f490626b8a2ff360c4a914615484ea6e5bf8cdee Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Sat, 19 Oct 2024 12:38:45 +0200 Subject: Add modern theme --- src/application/templates/modern/base.twig | 222 +++++ .../templates/modern/components/alert_error.twig | 8 + .../templates/modern/components/alert_info.twig | 8 + .../templates/modern/components/alert_success.twig | 8 + .../templates/modern/components/post.twig | 180 ++++ .../modern/components/richtext_editor.twig | 35 + .../templates/modern/components/topic_log.twig | 68 ++ src/application/templates/modern/delete_post.twig | 40 + src/application/templates/modern/delete_topic.twig | 37 + src/application/templates/modern/error_page.twig | 12 + src/application/templates/modern/info_page.twig | 12 + src/application/templates/modern/login.twig | 46 + src/application/templates/modern/new_password.twig | 38 + src/application/templates/modern/new_topic.twig | 39 + .../templates/modern/password_reset.twig | 38 + src/application/templates/modern/register.twig | 92 ++ src/application/templates/modern/search.twig | 69 ++ src/application/templates/modern/view_topic.twig | 367 ++++++++ src/application/templates/modern/view_topics.twig | 28 + src/application/templates/modern/view_user.twig | 196 +++++ src/application/themes/modern/theme.json | 11 + .../theme-files/modern/InterVariable-Italic.woff2 | Bin 0 -> 380904 bytes src/ui/theme-files/modern/InterVariable.woff2 | Bin 0 -> 345588 bytes src/ui/theme-files/modern/theme.css | 970 +++++++++++++++++++++ 24 files changed, 2524 insertions(+) create mode 100644 src/application/templates/modern/base.twig create mode 100644 src/application/templates/modern/components/alert_error.twig create mode 100644 src/application/templates/modern/components/alert_info.twig create mode 100644 src/application/templates/modern/components/alert_success.twig create mode 100644 src/application/templates/modern/components/post.twig create mode 100644 src/application/templates/modern/components/richtext_editor.twig create mode 100644 src/application/templates/modern/components/topic_log.twig create mode 100644 src/application/templates/modern/delete_post.twig create mode 100644 src/application/templates/modern/delete_topic.twig create mode 100644 src/application/templates/modern/error_page.twig create mode 100644 src/application/templates/modern/info_page.twig create mode 100644 src/application/templates/modern/login.twig create mode 100644 src/application/templates/modern/new_password.twig create mode 100644 src/application/templates/modern/new_topic.twig create mode 100644 src/application/templates/modern/password_reset.twig create mode 100644 src/application/templates/modern/register.twig create mode 100644 src/application/templates/modern/search.twig create mode 100644 src/application/templates/modern/view_topic.twig create mode 100644 src/application/templates/modern/view_topics.twig create mode 100644 src/application/templates/modern/view_user.twig create mode 100644 src/application/themes/modern/theme.json create mode 100644 src/ui/theme-files/modern/InterVariable-Italic.woff2 create mode 100644 src/ui/theme-files/modern/InterVariable.woff2 create mode 100644 src/ui/theme-files/modern/theme.css diff --git a/src/application/templates/modern/base.twig b/src/application/templates/modern/base.twig new file mode 100644 index 0000000..819af80 --- /dev/null +++ b/src/application/templates/modern/base.twig @@ -0,0 +1,222 @@ +{%- 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 -%} + + +
+ + + + +{{ __("%result_count% result(s) in %search_duration% second(s)", { + "result_count": ctx.posts|length, + "search_duration": ctx.search_duration|number_format(2, __(".", context: "Number formatting"), __(",", context: "Number formatting")), + }) }}
+{{ topic.creationDate.format("c") }}
+ + {% endfor %} +