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 +++++++++++++++++++ .../templates/old/components/alert_error.twig | 11 + .../templates/old/components/alert_info.twig | 11 + .../templates/old/components/alert_success.twig | 11 + src/application/templates/old/components/post.twig | 169 +++++++++++++++ .../templates/old/components/post_editor.twig | 37 ++++ .../templates/old/components/topic_log.twig | 60 ++++++ src/application/templates/old/delete_post.twig | 42 ++++ src/application/templates/old/delete_topic.twig | 36 ++++ src/application/templates/old/error_page.twig | 12 ++ src/application/templates/old/info_page.twig | 12 ++ src/application/templates/old/login.twig | 51 +++++ src/application/templates/old/new_password.twig | 40 ++++ src/application/templates/old/new_topic.twig | 32 +++ src/application/templates/old/password_reset.twig | 45 ++++ src/application/templates/old/register.twig | 77 +++++++ src/application/templates/old/search.twig | 77 +++++++ src/application/templates/old/view_topic.twig | 237 +++++++++++++++++++++ src/application/templates/old/view_topics.twig | 30 +++ src/application/templates/old/view_user.twig | 196 +++++++++++++++++ src/application/themes/old/theme.json | 11 + src/ui/theme-files/old/attachment_forbidden.gif | Bin 0 -> 1074 bytes src/ui/theme-files/old/attachment_forbidden.png | Bin 0 -> 806 bytes src/ui/theme-files/old/attachment_forbidden.psd | Bin 0 -> 32062 bytes src/ui/theme-files/old/check.gif | Bin 0 -> 1054 bytes src/ui/theme-files/old/check.png | Bin 0 -> 842 bytes src/ui/theme-files/old/delete.gif | Bin 0 -> 1063 bytes src/ui/theme-files/old/delete.png | Bin 0 -> 841 bytes src/ui/theme-files/old/exit.gif | Bin 0 -> 1016 bytes src/ui/theme-files/old/exit.png | Bin 0 -> 1193 bytes src/ui/theme-files/old/eye.gif | Bin 0 -> 597 bytes src/ui/theme-files/old/eye.png | Bin 0 -> 705 bytes src/ui/theme-files/old/film.gif | Bin 0 -> 1027 bytes src/ui/theme-files/old/film.png | Bin 0 -> 710 bytes src/ui/theme-files/old/film.psd | Bin 0 -> 35510 bytes src/ui/theme-files/old/forbidden.gif | Bin 0 -> 1045 bytes src/ui/theme-files/old/forbidden.png | Bin 0 -> 795 bytes src/ui/theme-files/old/garbage.gif | Bin 0 -> 1072 bytes src/ui/theme-files/old/garbage.png | Bin 0 -> 911 bytes src/ui/theme-files/old/gradient_top.gif | Bin 0 -> 528 bytes src/ui/theme-files/old/gradient_top.png | Bin 0 -> 351 bytes src/ui/theme-files/old/home.gif | Bin 0 -> 1031 bytes src/ui/theme-files/old/home.png | Bin 0 -> 820 bytes src/ui/theme-files/old/information.gif | Bin 0 -> 1054 bytes src/ui/theme-files/old/information.png | Bin 0 -> 796 bytes src/ui/theme-files/old/lang_de.gif | Bin 0 -> 1023 bytes src/ui/theme-files/old/lang_de.png | Bin 0 -> 567 bytes src/ui/theme-files/old/lang_en.gif | Bin 0 -> 1037 bytes src/ui/theme-files/old/lang_en.png | Bin 0 -> 619 bytes src/ui/theme-files/old/link.gif | Bin 0 -> 1000 bytes src/ui/theme-files/old/link.png | Bin 0 -> 752 bytes src/ui/theme-files/old/lock.gif | Bin 0 -> 1008 bytes src/ui/theme-files/old/lock.png | Bin 0 -> 1133 bytes src/ui/theme-files/old/lock_large.gif | Bin 0 -> 1472 bytes src/ui/theme-files/old/lock_large.png | Bin 0 -> 1709 bytes src/ui/theme-files/old/lock_open.gif | Bin 0 -> 1021 bytes src/ui/theme-files/old/lock_open.png | Bin 0 -> 744 bytes src/ui/theme-files/old/lock_small.gif | Bin 0 -> 128 bytes src/ui/theme-files/old/lock_small.png | Bin 0 -> 194 bytes src/ui/theme-files/old/lock_small.psd | Bin 0 -> 31590 bytes src/ui/theme-files/old/make-gifs | 7 + src/ui/theme-files/old/message.gif | Bin 0 -> 1014 bytes src/ui/theme-files/old/message.png | Bin 0 -> 781 bytes src/ui/theme-files/old/message_add.gif | Bin 0 -> 1034 bytes src/ui/theme-files/old/message_add.png | Bin 0 -> 1237 bytes src/ui/theme-files/old/message_delete.gif | Bin 0 -> 1036 bytes src/ui/theme-files/old/message_delete.png | Bin 0 -> 848 bytes src/ui/theme-files/old/message_edit.gif | Bin 0 -> 1035 bytes src/ui/theme-files/old/message_edit.png | Bin 0 -> 834 bytes src/ui/theme-files/old/microphone.gif | Bin 0 -> 594 bytes src/ui/theme-files/old/microphone.png | Bin 0 -> 647 bytes src/ui/theme-files/old/paperclip_small.gif | Bin 0 -> 291 bytes src/ui/theme-files/old/paperclip_small.png | Bin 0 -> 266 bytes src/ui/theme-files/old/paperclip_small.psd | Bin 0 -> 23544 bytes src/ui/theme-files/old/pencil.gif | Bin 0 -> 1005 bytes src/ui/theme-files/old/pencil.png | Bin 0 -> 756 bytes src/ui/theme-files/old/photo.gif | Bin 0 -> 1036 bytes src/ui/theme-files/old/photo.png | Bin 0 -> 649 bytes src/ui/theme-files/old/photo.psd | Bin 0 -> 35538 bytes src/ui/theme-files/old/refresh.gif | Bin 0 -> 1049 bytes src/ui/theme-files/old/refresh.png | Bin 0 -> 825 bytes src/ui/theme-files/old/search.gif | Bin 0 -> 1005 bytes src/ui/theme-files/old/search.png | Bin 0 -> 718 bytes src/ui/theme-files/old/text_blank.gif | Bin 0 -> 597 bytes src/ui/theme-files/old/text_blank.png | Bin 0 -> 458 bytes src/ui/theme-files/old/text_bold.gif | Bin 0 -> 618 bytes src/ui/theme-files/old/text_bold.png | Bin 0 -> 583 bytes src/ui/theme-files/old/text_italics.gif | Bin 0 -> 612 bytes src/ui/theme-files/old/text_italics.png | Bin 0 -> 571 bytes src/ui/theme-files/old/text_strikethrough.gif | Bin 0 -> 631 bytes src/ui/theme-files/old/text_strikethrough.png | Bin 0 -> 656 bytes src/ui/theme-files/old/text_strikethrough.psd | Bin 0 -> 55042 bytes src/ui/theme-files/old/text_subscript.gif | Bin 0 -> 632 bytes src/ui/theme-files/old/text_subscript.png | Bin 0 -> 674 bytes src/ui/theme-files/old/text_superscript.gif | Bin 0 -> 624 bytes src/ui/theme-files/old/text_superscript.png | Bin 0 -> 671 bytes src/ui/theme-files/old/text_underlined.gif | Bin 0 -> 619 bytes src/ui/theme-files/old/text_underlined.png | Bin 0 -> 565 bytes src/ui/theme-files/old/theme.css | 72 +++++++ src/ui/theme-files/old/undo.gif | Bin 0 -> 1024 bytes src/ui/theme-files/old/undo.png | Bin 0 -> 762 bytes src/ui/theme-files/old/user.gif | Bin 0 -> 1027 bytes src/ui/theme-files/old/user.png | Bin 0 -> 1197 bytes src/ui/theme-files/old/user_add.gif | Bin 0 -> 1031 bytes src/ui/theme-files/old/user_add.png | Bin 0 -> 731 bytes 105 files changed, 1499 insertions(+) create mode 100644 src/application/templates/old/base.twig create mode 100644 src/application/templates/old/components/alert_error.twig create mode 100644 src/application/templates/old/components/alert_info.twig create mode 100644 src/application/templates/old/components/alert_success.twig create mode 100644 src/application/templates/old/components/post.twig create mode 100644 src/application/templates/old/components/post_editor.twig create mode 100644 src/application/templates/old/components/topic_log.twig create mode 100644 src/application/templates/old/delete_post.twig create mode 100644 src/application/templates/old/delete_topic.twig create mode 100644 src/application/templates/old/error_page.twig create mode 100644 src/application/templates/old/info_page.twig create mode 100644 src/application/templates/old/login.twig create mode 100644 src/application/templates/old/new_password.twig create mode 100644 src/application/templates/old/new_topic.twig create mode 100644 src/application/templates/old/password_reset.twig create mode 100644 src/application/templates/old/register.twig create mode 100644 src/application/templates/old/search.twig create mode 100644 src/application/templates/old/view_topic.twig create mode 100644 src/application/templates/old/view_topics.twig create mode 100644 src/application/templates/old/view_user.twig create mode 100644 src/application/themes/old/theme.json create mode 100644 src/ui/theme-files/old/attachment_forbidden.gif create mode 100644 src/ui/theme-files/old/attachment_forbidden.png create mode 100644 src/ui/theme-files/old/attachment_forbidden.psd create mode 100644 src/ui/theme-files/old/check.gif create mode 100644 src/ui/theme-files/old/check.png create mode 100644 src/ui/theme-files/old/delete.gif create mode 100644 src/ui/theme-files/old/delete.png create mode 100644 src/ui/theme-files/old/exit.gif create mode 100644 src/ui/theme-files/old/exit.png create mode 100644 src/ui/theme-files/old/eye.gif create mode 100644 src/ui/theme-files/old/eye.png create mode 100644 src/ui/theme-files/old/film.gif create mode 100644 src/ui/theme-files/old/film.png create mode 100644 src/ui/theme-files/old/film.psd create mode 100644 src/ui/theme-files/old/forbidden.gif create mode 100644 src/ui/theme-files/old/forbidden.png create mode 100644 src/ui/theme-files/old/garbage.gif create mode 100644 src/ui/theme-files/old/garbage.png create mode 100644 src/ui/theme-files/old/gradient_top.gif create mode 100644 src/ui/theme-files/old/gradient_top.png create mode 100644 src/ui/theme-files/old/home.gif create mode 100644 src/ui/theme-files/old/home.png create mode 100644 src/ui/theme-files/old/information.gif create mode 100644 src/ui/theme-files/old/information.png create mode 100644 src/ui/theme-files/old/lang_de.gif create mode 100644 src/ui/theme-files/old/lang_de.png create mode 100644 src/ui/theme-files/old/lang_en.gif create mode 100644 src/ui/theme-files/old/lang_en.png create mode 100644 src/ui/theme-files/old/link.gif create mode 100644 src/ui/theme-files/old/link.png create mode 100644 src/ui/theme-files/old/lock.gif create mode 100644 src/ui/theme-files/old/lock.png create mode 100644 src/ui/theme-files/old/lock_large.gif create mode 100644 src/ui/theme-files/old/lock_large.png create mode 100644 src/ui/theme-files/old/lock_open.gif create mode 100644 src/ui/theme-files/old/lock_open.png create mode 100644 src/ui/theme-files/old/lock_small.gif create mode 100644 src/ui/theme-files/old/lock_small.png create mode 100644 src/ui/theme-files/old/lock_small.psd create mode 100755 src/ui/theme-files/old/make-gifs create mode 100644 src/ui/theme-files/old/message.gif create mode 100644 src/ui/theme-files/old/message.png create mode 100644 src/ui/theme-files/old/message_add.gif create mode 100644 src/ui/theme-files/old/message_add.png create mode 100644 src/ui/theme-files/old/message_delete.gif create mode 100644 src/ui/theme-files/old/message_delete.png create mode 100644 src/ui/theme-files/old/message_edit.gif create mode 100644 src/ui/theme-files/old/message_edit.png create mode 100644 src/ui/theme-files/old/microphone.gif create mode 100644 src/ui/theme-files/old/microphone.png create mode 100644 src/ui/theme-files/old/paperclip_small.gif create mode 100644 src/ui/theme-files/old/paperclip_small.png create mode 100644 src/ui/theme-files/old/paperclip_small.psd create mode 100644 src/ui/theme-files/old/pencil.gif create mode 100644 src/ui/theme-files/old/pencil.png create mode 100644 src/ui/theme-files/old/photo.gif create mode 100644 src/ui/theme-files/old/photo.png create mode 100644 src/ui/theme-files/old/photo.psd create mode 100644 src/ui/theme-files/old/refresh.gif create mode 100644 src/ui/theme-files/old/refresh.png create mode 100644 src/ui/theme-files/old/search.gif create mode 100644 src/ui/theme-files/old/search.png create mode 100644 src/ui/theme-files/old/text_blank.gif create mode 100644 src/ui/theme-files/old/text_blank.png create mode 100644 src/ui/theme-files/old/text_bold.gif create mode 100644 src/ui/theme-files/old/text_bold.png create mode 100644 src/ui/theme-files/old/text_italics.gif create mode 100644 src/ui/theme-files/old/text_italics.png create mode 100644 src/ui/theme-files/old/text_strikethrough.gif create mode 100644 src/ui/theme-files/old/text_strikethrough.png create mode 100644 src/ui/theme-files/old/text_strikethrough.psd create mode 100644 src/ui/theme-files/old/text_subscript.gif create mode 100644 src/ui/theme-files/old/text_subscript.png create mode 100644 src/ui/theme-files/old/text_superscript.gif create mode 100644 src/ui/theme-files/old/text_superscript.png create mode 100644 src/ui/theme-files/old/text_underlined.gif create mode 100644 src/ui/theme-files/old/text_underlined.png create mode 100644 src/ui/theme-files/old/theme.css create mode 100644 src/ui/theme-files/old/undo.gif create mode 100644 src/ui/theme-files/old/undo.png create mode 100644 src/ui/theme-files/old/user.gif create mode 100644 src/ui/theme-files/old/user.png create mode 100644 src/ui/theme-files/old/user_add.gif create mode 100644 src/ui/theme-files/old/user_add.png (limited to 'src') 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 %} +
+ + + + + + +
+ + diff --git a/src/application/templates/old/components/alert_error.twig b/src/application/templates/old/components/alert_error.twig new file mode 100644 index 0000000..a45559c --- /dev/null +++ b/src/application/templates/old/components/alert_error.twig @@ -0,0 +1,11 @@ + + +
+   + {%- if message starts with "?!HTML::" -%} + {{- message|slice(8)|raw -}} + {%- else -%} + {{- message -}} + {%- endif -%} +
+
diff --git a/src/application/templates/old/components/alert_info.twig b/src/application/templates/old/components/alert_info.twig new file mode 100644 index 0000000..d45410c --- /dev/null +++ b/src/application/templates/old/components/alert_info.twig @@ -0,0 +1,11 @@ + + +
+   + {%- if message starts with "?!HTML::" -%} + {{- message|slice(8)|raw -}} + {%- else -%} + {{- message -}} + {%- endif -%} +
+
\ No newline at end of file diff --git a/src/application/templates/old/components/alert_success.twig b/src/application/templates/old/components/alert_success.twig new file mode 100644 index 0000000..2192358 --- /dev/null +++ b/src/application/templates/old/components/alert_success.twig @@ -0,0 +1,11 @@ + + +
+   + {%- if message starts with "?!HTML::" -%} + {{- message|slice(8)|raw -}} + {%- else -%} + {{- message -}} + {%- endif -%} +
+
diff --git a/src/application/templates/old/components/post.twig b/src/application/templates/old/components/post.twig new file mode 100644 index 0000000..6b04bca --- /dev/null +++ b/src/application/templates/old/components/post.twig @@ -0,0 +1,169 @@ +{%- set fileAttachments = attachments|filter(a => not (a.mimeType starts with "image/" or a.mimeType starts with "video/")) -%} +{%- set imageAttachments = attachments|filter(a => a.mimeType starts with "image/" or a.mimeType starts with "video/") -%} + +{%- set canReply = + not post.deleted + and not topic.isLocked + and currentUser is not null + and currentUser.hasPermission(permission("CREATE_OWN_POST")) +-%} + +{%- set canEdit = + not post.deleted + and not topic.isLocked + and currentUser is not null + and ( + ( + postAuthor is not null + and postAuthor.id == currentUser.id + and postAuthor.hasPermission(permission("EDIT_OWN_POST")) + ) + or currentUser.hasPermission(permission("EDIT_OTHER_POST")) + ) -%} + +{%- set canDelete = + not post.deleted + and currentUser is not null + and ( + ( + postAuthor is not null + and postAuthor.id == currentUser.id + and postAuthor.hasPermission(permission("DELETE_OWN_POST")) + ) + or currentUser.hasPermission(permission("DELETE_OTHER_POST")) + ) -%} + +{%- set canViewAttachments = currentUser is not null -%} + +{%- set your_are_the_author = + currentUser is not null + and postAuthor is not null + and currentUser.id == postAuthor.id +-%} + +{%- set is_op = + topicAuthor is not null + and postAuthor is not null + and postAuthor.id == topicAuthor.id +-%} + +{%- set hasOtherAttachments = (fileAttachments|length > 0) -%} + +{% if post.deleted %} + + + + + + +
+  {# + #}{{ __("This post has been deleted") }} +
+ + +{% else %} + + + {% if not hide_pfp %} + {% if postAuthor %} + {% if hide_actions %} + {{ __( + {% else %} + + {{ __( + + {% endif %} + {% else %} +
+ {% endif %} + {% endif %} + + + + {% if not hide_actions %} +
{# + #}{{ __( + {%- if canReply -%} + + {%- endif -%} + {%- if canEdit -%} +
{# + #}{# + #}{# + #}
+ {%- endif -%} + {%- if canDelete -%} +
{# + #}{# + #}{# + #}
+ {%- endif -%} +
+ {% endif %} + {% if postAuthor %} + {% if hide_actions %} + {{ postAuthor.displayName }} + {% else %} + {{ postAuthor.displayName }} + {% endif %} + {% if your_are_the_author %} + [{{ __("You") }}] + {% endif %} + {% if is_op %} + {{ __( + {% endif %} + {% else %} + {{ __("(deleted)") }} + {% endif %} +
+ {{ post.postDate.format("c") }} + {% if post.edited %} + {{ __("(edited)") }} + {% endif %} + + + + + {{ renderPost(post.content) }} + {% if imageAttachments|length > 0 %} +
+ {% for attachment in imageAttachments %} + {% if hide_actions %} + + + + {% else %} + + + {% if canViewAttachments %} + + {% else %} + + {% endif %} + + {% endif %} + {% endfor %} +
+ {% endif %} + + + {% if hasOtherAttachments %} + + + {% for attachment in fileAttachments %} + {% if hide_actions %} + {{ attachment.name }} + {% else %} + + {% if not canViewAttachments %} + + {% endif %} + {{ attachment.name }} + + {% endif %} + {% endfor %} + + + {% endif %} +{% endif %} diff --git a/src/application/templates/old/components/post_editor.twig b/src/application/templates/old/components/post_editor.twig new file mode 100644 index 0000000..b9d688e --- /dev/null +++ b/src/application/templates/old/components/post_editor.twig @@ -0,0 +1,37 @@ + + + + + + + +
+ + + + +   + + +   + + +
+ +
diff --git a/src/application/templates/old/components/topic_log.twig b/src/application/templates/old/components/topic_log.twig new file mode 100644 index 0000000..b03024c --- /dev/null +++ b/src/application/templates/old/components/topic_log.twig @@ -0,0 +1,60 @@ +{%- set user = "" -%} +{%- if postAuthor is null -%} + {%- set user = __("(deleted)")|e("html") -%} +{%- else -%} + {%- set user = + '' + ~ postAuthor.displayName|e("html") + ~ '' + -%} +{%- endif -%} + + + + + {% if postAuthor %} + {% if hideActions %} + {{ __( + {% else %} + + {{ __( + + {% endif %} + {% else %} +
+ {% endif %} + +{% if logMessage.type == constant("mystic\\forum\\orm\\TopicLogMessage::LOCKED") %} + + + {{ __("%user% locked this topic", { + "user": user, + }) }} +
+ {{ logMessage.postDate.format("c") }} +{% elseif logMessage.type == constant("mystic\\forum\\orm\\TopicLogMessage::UNLOCKED") %} + + + {{ __("%user% unlocked this topic", { + "user": user, + }) }} +
+ {{ logMessage.postDate.format("c") }} +{% elseif logMessage.type == constant("mystic\\forum\\orm\\TopicLogMessage::TITLE_CHANGED") %} + + + {{ __("%user% changed the title of this topic from %old_title% to %new_title%", { + "user": user, + "old_title": '' ~ logMessage.params.old_value|default(__("unknown"))|e("html") ~ '', + "new_title": '' ~ logMessage.params.new_value|default(__("unknown"))|e("html") ~ '', + }) }} +
+ {{ logMessage.postDate.format("c") }} +{% else %} + + {{ __("unknown") }} +{% endif %} + + diff --git a/src/application/templates/old/delete_post.twig b/src/application/templates/old/delete_post.twig new file mode 100644 index 0000000..62c25fe --- /dev/null +++ b/src/application/templates/old/delete_post.twig @@ -0,0 +1,42 @@ +{% set title = __("Delete post") %} + +{% extends "base.twig" %} + +{% block content %} + + + + + + + + + + + +
+

{{ __("Do you want to delete this post?") }}

+
+ {{ __("Are you sure you want to delete the following post:") }}

+ + {% include "components/post.twig" with { + post: ctx.post, + postAuthor: ctx.postAuthor, + attachments: ctx.attachments, + hide_actions: true, + } %} +
+
+
+ + + +
+
+ + + +
+
+ +{% endblock %} diff --git a/src/application/templates/old/delete_topic.twig b/src/application/templates/old/delete_topic.twig new file mode 100644 index 0000000..59d2a02 --- /dev/null +++ b/src/application/templates/old/delete_topic.twig @@ -0,0 +1,36 @@ +{% set title = __("Delete topic") %} + +{% extends "base.twig" %} + +{% block content %} + + + + + + + + + + + +
+

{{ __("Do you want to delete this topic?") }}

+
+ {{ __("Are you sure you want to delete the topic %topic% including all posts and attachments?", { + "topic": ctx.topic.title|e("html"), + }) }} +
+
+ + + +
+
+ + + +
+
+ +{% endblock %} diff --git a/src/application/templates/old/error_page.twig b/src/application/templates/old/error_page.twig new file mode 100644 index 0000000..dde4057 --- /dev/null +++ b/src/application/templates/old/error_page.twig @@ -0,0 +1,12 @@ +{% set title = __("Error") %} +{% extends "base.twig" %} + +{% block navbar %} + {% if not ctx.skipLoginCheck %} + {{ parent() }} + {% endif %} +{% endblock %} + +{% block content %} + {% include "components/alert_error.twig" with { message: ctx.message } %} +{% endblock %} diff --git a/src/application/templates/old/info_page.twig b/src/application/templates/old/info_page.twig new file mode 100644 index 0000000..e243b36 --- /dev/null +++ b/src/application/templates/old/info_page.twig @@ -0,0 +1,12 @@ +{% set title = __("Information") %} +{% extends "base.twig" %} + +{% block navbar %} + {% if not ctx.skipLoginCheck %} + {{ parent() }} + {% endif %} +{% endblock %} + +{% block content %} + {% include "components/alert_info.twig" with { message: ctx.message } %} +{% endblock %} diff --git a/src/application/templates/old/login.twig b/src/application/templates/old/login.twig new file mode 100644 index 0000000..cbbb929 --- /dev/null +++ b/src/application/templates/old/login.twig @@ -0,0 +1,51 @@ +{% set title = __("Log in") %} +{% set formId = "login" %} +{% set formError = getAndClearFormError(formId) %} + +{% extends "base.twig" %} + +{% block content %} + +
+

{{ __("Log in") }}

+ +{% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} +{% endif %} +
+ + +
+
+
+
+
+
+ + {{ __("I forgot my password") }} + + {% if constant("REGISTRATION_ENABLED") %} +

+ + + + +
+ {{ __("Don't have an account? %link%Register now%/link%", { + "link": '', + "/link": '', + }) }} +
+ {% endif %} +
+ +{% endblock %} + +{% block scripts %} +{{ parent() }} + +{% endblock %} diff --git a/src/application/templates/old/new_password.twig b/src/application/templates/old/new_password.twig new file mode 100644 index 0000000..02d6037 --- /dev/null +++ b/src/application/templates/old/new_password.twig @@ -0,0 +1,40 @@ +{% set title = __("Reset password") %} +{% set formId = "pwnew" %} +{% set formError = getAndClearFormError(formId) %} + +{% extends "base.twig" %} + +{% block content %} + +
+

{{ __("Reset password") }}

+ +{% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} +{% endif %} +
+ + + + +
+
+
+ +
+
+
+ + +
+ +{% endblock %} + +{% block scripts %} +{{ parent() }} + +{% endblock %} diff --git a/src/application/templates/old/new_topic.twig b/src/application/templates/old/new_topic.twig new file mode 100644 index 0000000..5063db1 --- /dev/null +++ b/src/application/templates/old/new_topic.twig @@ -0,0 +1,32 @@ +{% set title = __("New topic") %} +{% set formId = "newtopic" %} +{% set formError = getAndClearFormError(formId) %} + +{% extends "base.twig" %} + +{% block content %} +
+ +

{{ __("New topic") }}

+ +{% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} +{% endif %} +
+ +
+
+
+
+ {% include "components/post_editor.twig" with { name: "message", id: "i_message", value: lastFormField(formId, "message") } %} +
+
+
+
+ +
+ +{% endblock %} diff --git a/src/application/templates/old/password_reset.twig b/src/application/templates/old/password_reset.twig new file mode 100644 index 0000000..c6e98c2 --- /dev/null +++ b/src/application/templates/old/password_reset.twig @@ -0,0 +1,45 @@ +{% set title = __("Reset password") %} +{% set formId = "pwreset" %} +{% set formError = getAndClearFormError(formId) %} + +{% extends "base.twig" %} + +{% block content %} + +
+

{{ __("Reset password") }}

+ +{% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} +{% endif %} +
+ + +
+
+
+
+
+ + + + +
+ {{ __("I know my password and I want to %link%log in%/link%!", { + "link": '', + "/link": '', + }) }} +
+
+ +{% endblock %} + +{% block scripts %} +{{ parent() }} + +{% endblock %} + diff --git a/src/application/templates/old/register.twig b/src/application/templates/old/register.twig new file mode 100644 index 0000000..02e2bd0 --- /dev/null +++ b/src/application/templates/old/register.twig @@ -0,0 +1,77 @@ +{% set title = __("Register") %} +{% set formId = "register" %} +{% set formError = getAndClearFormError(formId) %} + +{% extends "base.twig" %} + +{% block content %} + +
+

{{ __("Register") }}

+ + + {% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} + {% endif %} +
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CAPTCHA + + + +
+ + +   +
+
+ + + +

+ + + + +
+ {{ __("Already have an account? %link%Sign in now%/link%", { + "link": '', + "/link": '', + }) }} +
+
+{% endblock %} + +{% block scripts %} +{{ parent() }} + + +{% endblock %} + diff --git a/src/application/templates/old/search.twig b/src/application/templates/old/search.twig new file mode 100644 index 0000000..0bdd497 --- /dev/null +++ b/src/application/templates/old/search.twig @@ -0,0 +1,77 @@ +{% set title = __("Search") %} +{% set formId = "search" %} +{% set formError = getAndClearFormError(formId) %} + +{% extends "base.twig" %} + +{% block content %} + +
+

{{ __("Search") }}

+ +{% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} +{% endif %} + +
+ + + + + + + +
+ + + + + +
+
+ +{% if g.get.query is defined and g.get.query is not null and g.get.query != "" %} + {% if ctx.posts|length > 0 %} +

{{ __("%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")), + }) }}

+ + {% for post in ctx.posts|filter(p => not p.deleted) %} + {% set hasAttachments = ctx.attachments[post.id]|length > 0 %} + {% set postAuthor = ctx.users[post.authorId] %} + {{ renderPostSummary(post.content) }}
+ {{ __("posted by %author% on %post_date% in %topic%", { + "author": '' ~ (postAuthor ? postAuthor.displayName : __("unknown"))|e("html") ~ '', + "post_date": '
' ~ post.postDate.format("c")|e("html") ~ '', + "topic": '
' + ~ (ctx.topics[post.topicId].isLocked ? ('' ~ __( ') : '') + ~ (ctx.topics[post.topicId] ? ctx.topics[post.topicId].title : null)|default(__("unknown"))|e("html") ~ '', + }) }} +

+ {% endfor %} + {% else %} +
+ + +
+  {# + #}{{ __("No results for this search") }} +
+
+ {% endif %} +{% endif %} + +{% endblock %} + + +{% block scripts %} +{{ parent() }} +{% if not (g.get.query is defined and g.get.query is not null and g.get.query != "") %} + +{% endif %} +{% endblock %} diff --git a/src/application/templates/old/view_topic.twig b/src/application/templates/old/view_topic.twig new file mode 100644 index 0000000..613de49 --- /dev/null +++ b/src/application/templates/old/view_topic.twig @@ -0,0 +1,237 @@ +{% set canReply = + not ctx.topic.isLocked + and currentUser is not null + and currentUser.hasPermission(permission("CREATE_OWN_POST")) %} + +{% set canEdit = + currentUser is not null and ( + ( + ctx.topicAuthor is not null + and currentUser.id == ctx.topicAuthor.id + and ctx.topicAuthor.hasPermission(permission("EDIT_OWN_TOPIC")) + ) + or currentUser.hasPermission(permission("EDIT_OTHER_TOPIC")) + ) %} + +{% set couldEditPost = + currentUser is not null + and ( + currentUser.hasPermission(permission("EDIT_OWN_POST")) + or currentUser.hasPermission(permission("EDIT_OTHER_POST")) + ) %} + +{% set canDelete = + currentUser is not null and ( + ( + ctx.topicAuthor is not null + and currentUser.id == ctx.topicAuthor.id + and ctx.topicAuthor.hasPermission(permission("DELETE_OWN_TOPIC")) + ) + or currentUser.hasPermission(permission("DELETE_OTHER_TOPIC")) + ) %} + +{% set title = ctx.topic.title %} +{% extends "base.twig" %} + +{% block content %} + +{% set formError = getAndClearFormError("updateTopic") %} +{% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} +{% endif %} +{% set formError = getAndClearFormError("lockTopic") %} +{% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} +{% endif %} +{% set formError = null %} + +
+ + + +{% if couldEditPost %} + + + +{% for item in ctx.allItems %} + {% if item.type == "post" %} + {% include "components/post.twig" with { + post: item.post, + postAuthor: item.postAuthor, + topicAuthor: item.topicAuthor, + topic: item.topic, + attachments: item.attachments, + hide_actions: false, + hide_pfp: false, + } %} + {% elseif item.type == "logMessage" %} + {% include "components/topic_log.twig" with { + type: item.type, + logMessage: item.logMessage, + postAuthor: item.postAuthor, + topicAuthor: item.topicAuthor, + topic: item.topic, + hide_actions: false, + hide_pfp: false, + } %} + {% endif %} +{% endfor %} +
+ +{% if ctx.topic.isLocked %} +
+ + +
+
+ {{ __("This topic has been locked") }} +
+
+{% elseif currentUser is not null %} + {% set formId = "addpost" %} +

{{ __("Reply to this topic") }}

+ {% set formError = getAndClearFormError(formId) %} + {% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} + {% endif %} +
+ + +
+ {% include "components/post_editor.twig" with { value: "", name: "message", id: "i_message" } %} +
+
+
+
+ +
+{% else %} +
+ + +
+

{{ __("Log in to reply to this topic") }}

+
+ + + +
+
+
+{% endif %} + + +{% endblock %} diff --git a/src/application/templates/old/view_topics.twig b/src/application/templates/old/view_topics.twig new file mode 100644 index 0000000..e6e69b7 --- /dev/null +++ b/src/application/templates/old/view_topics.twig @@ -0,0 +1,30 @@ +{% extends "base.twig" %} + +{% block content %} + +{% if currentUser.hasPermission(permission("CREATE_OWN_TOPIC")) %} +

+  {# + #}{{ __("New topic") }} +

+
+{% endif %} + + +{% for topic in ctx.topics %} + + + +{% endfor %} +
+ + {% if topic.isLocked -%} + + {%- endif -%} + {{ topic.title }} +
+ {{ topic.creationDate.format("c") }} +
+
+ +{% endblock %} diff --git a/src/application/templates/old/view_user.twig b/src/application/templates/old/view_user.twig new file mode 100644 index 0000000..311dfb1 --- /dev/null +++ b/src/application/templates/old/view_user.twig @@ -0,0 +1,196 @@ +{% set canEdit = + currentUser is not null + and ( + ( + ctx.user.id == currentUser.id + and currentUser.hasPermission(permission("EDIT_OWN_USER")) + ) + or currentUser.hasPermission(permission("EDIT_OTHER_USER")) + ) %} + +{% set isOwnProfile = + currentUser is not null + and currentUser.id == ctx.user.id %} + +{% set sUserPossessive = isOwnProfile ? "Your posts" : "%display_name%'s posts" %} + +{% set emailPending = isOwnProfile and ctx.user.pendingEmail is not null %} + +{% set title = ctx.user.displayName %} + +{% extends "base.twig" %} + +{% block content %} + +
+ {{ __( + {{ ctx.user.displayName }} + {% if isOwnProfile %} + [{{ __("You") }}] + {% endif %}
+ @{{ ctx.user.name }}
+ {{ __("Member since %join_date%", { + "join_date": '' ~ (ctx.dateJoined.format("c")|e("html")) ~ '', + }) }} +
+
+ +{% if canEdit %} + + + + + +
+{% endif %} + +

{{ __(sUserPossessive, { + "display_name": ctx.user.displayName|e("html"), +}) }}

+ +{% if ctx.posts|length > 0 %} + + {% for post in ctx.posts %} + + + + {% endfor %} +
+ {% set hasAttachments = ctx.attachments[post.id] is defined and ctx.attachments[post.id]|length > 0 %} + {% if hasAttachments %} + + {% endif %} + {{ renderPostSummary(post.content) }} +
+ {{ __("posted on %post_date% in %topic%", { + "post_date": '' ~ post.postDate.format("c")|e("html") ~ '', + "topic": '
' + ~ (ctx.topics[post.topicId].isLocked ? ('' ~ __( ') : '') + ~ (ctx.topics[post.topicId] ? ctx.topics[post.topicId].title : null)|default(__("unknown"))|e("html") ~ '', + }) }} +
+{% else %} + {% include "components/alert_info.twig" with { message: __("This user has not posted anything yet") } %} +{% endif %} + +{% if canEdit %} +
+

{{ __("Edit profile") }}

+ {% set formId = "update_profile" %} + {% set formError = getAndClearFormError(formId) %} + {% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} + {% endif %} +
+ + +
+
+
+ +
+ {% if ctx.lastNameChangeTooRecent %} +
+ {{ __("You can only change your username every 30 days!") }}
+ {% else %} +
+ {% endif %} +
+ +
+ {% if emailPending %} +
+ {% else %} +
+ {% endif %} + + +
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ {% if isOwnProfile %} +
+

{{ __("Change password") }}

+ {% set formId = "update_password" %} + {% set formError = getAndClearFormError(formId) %} + {% if formError %} + {% include "components/alert_error.twig" with { message: formError } %} + {% endif %} +
+ + +
+
+
+ +
+
+
+ +
+
+
+ + +
+ {% endif %} +
+{% endif %} + + + +{% endblock %} diff --git a/src/application/themes/old/theme.json b/src/application/themes/old/theme.json new file mode 100644 index 0000000..2afa968 --- /dev/null +++ b/src/application/themes/old/theme.json @@ -0,0 +1,11 @@ +{ + "$format": 1, + "version": "1.0.0", + "id": "old", + "name": "Classic", + "author": "Jonas Kohl", + "template": "old", + "files": [ + "../../../ui/theme-files/old/theme.css" + ] +} diff --git a/src/ui/theme-files/old/attachment_forbidden.gif b/src/ui/theme-files/old/attachment_forbidden.gif new file mode 100644 index 0000000..cfd62b5 Binary files /dev/null and b/src/ui/theme-files/old/attachment_forbidden.gif differ diff --git a/src/ui/theme-files/old/attachment_forbidden.png b/src/ui/theme-files/old/attachment_forbidden.png new file mode 100644 index 0000000..bb93a5d Binary files /dev/null and b/src/ui/theme-files/old/attachment_forbidden.png differ diff --git a/src/ui/theme-files/old/attachment_forbidden.psd b/src/ui/theme-files/old/attachment_forbidden.psd new file mode 100644 index 0000000..5e33a9f Binary files /dev/null and b/src/ui/theme-files/old/attachment_forbidden.psd differ diff --git a/src/ui/theme-files/old/check.gif b/src/ui/theme-files/old/check.gif new file mode 100644 index 0000000..4ebaf91 Binary files /dev/null and b/src/ui/theme-files/old/check.gif differ diff --git a/src/ui/theme-files/old/check.png b/src/ui/theme-files/old/check.png new file mode 100644 index 0000000..fa45366 Binary files /dev/null and b/src/ui/theme-files/old/check.png differ diff --git a/src/ui/theme-files/old/delete.gif b/src/ui/theme-files/old/delete.gif new file mode 100644 index 0000000..c7cacaf Binary files /dev/null and b/src/ui/theme-files/old/delete.gif differ diff --git a/src/ui/theme-files/old/delete.png b/src/ui/theme-files/old/delete.png new file mode 100644 index 0000000..fb3ed2f Binary files /dev/null and b/src/ui/theme-files/old/delete.png differ diff --git a/src/ui/theme-files/old/exit.gif b/src/ui/theme-files/old/exit.gif new file mode 100644 index 0000000..64e6603 Binary files /dev/null and b/src/ui/theme-files/old/exit.gif differ diff --git a/src/ui/theme-files/old/exit.png b/src/ui/theme-files/old/exit.png new file mode 100644 index 0000000..71f4bfa Binary files /dev/null and b/src/ui/theme-files/old/exit.png differ diff --git a/src/ui/theme-files/old/eye.gif b/src/ui/theme-files/old/eye.gif new file mode 100644 index 0000000..41c9397 Binary files /dev/null and b/src/ui/theme-files/old/eye.gif differ diff --git a/src/ui/theme-files/old/eye.png b/src/ui/theme-files/old/eye.png new file mode 100644 index 0000000..ddf8a53 Binary files /dev/null and b/src/ui/theme-files/old/eye.png differ diff --git a/src/ui/theme-files/old/film.gif b/src/ui/theme-files/old/film.gif new file mode 100644 index 0000000..db02ab3 Binary files /dev/null and b/src/ui/theme-files/old/film.gif differ diff --git a/src/ui/theme-files/old/film.png b/src/ui/theme-files/old/film.png new file mode 100644 index 0000000..32b05e3 Binary files /dev/null and b/src/ui/theme-files/old/film.png differ diff --git a/src/ui/theme-files/old/film.psd b/src/ui/theme-files/old/film.psd new file mode 100644 index 0000000..71b8e03 Binary files /dev/null and b/src/ui/theme-files/old/film.psd differ diff --git a/src/ui/theme-files/old/forbidden.gif b/src/ui/theme-files/old/forbidden.gif new file mode 100644 index 0000000..5daa931 Binary files /dev/null and b/src/ui/theme-files/old/forbidden.gif differ diff --git a/src/ui/theme-files/old/forbidden.png b/src/ui/theme-files/old/forbidden.png new file mode 100644 index 0000000..c4466f5 Binary files /dev/null and b/src/ui/theme-files/old/forbidden.png differ diff --git a/src/ui/theme-files/old/garbage.gif b/src/ui/theme-files/old/garbage.gif new file mode 100644 index 0000000..fb92eba Binary files /dev/null and b/src/ui/theme-files/old/garbage.gif differ diff --git a/src/ui/theme-files/old/garbage.png b/src/ui/theme-files/old/garbage.png new file mode 100644 index 0000000..4c94f84 Binary files /dev/null and b/src/ui/theme-files/old/garbage.png differ diff --git a/src/ui/theme-files/old/gradient_top.gif b/src/ui/theme-files/old/gradient_top.gif new file mode 100644 index 0000000..ba99b06 Binary files /dev/null and b/src/ui/theme-files/old/gradient_top.gif differ diff --git a/src/ui/theme-files/old/gradient_top.png b/src/ui/theme-files/old/gradient_top.png new file mode 100644 index 0000000..a74a62b Binary files /dev/null and b/src/ui/theme-files/old/gradient_top.png differ diff --git a/src/ui/theme-files/old/home.gif b/src/ui/theme-files/old/home.gif new file mode 100644 index 0000000..0c2d873 Binary files /dev/null and b/src/ui/theme-files/old/home.gif differ diff --git a/src/ui/theme-files/old/home.png b/src/ui/theme-files/old/home.png new file mode 100644 index 0000000..8b80577 Binary files /dev/null and b/src/ui/theme-files/old/home.png differ diff --git a/src/ui/theme-files/old/information.gif b/src/ui/theme-files/old/information.gif new file mode 100644 index 0000000..eb6196d Binary files /dev/null and b/src/ui/theme-files/old/information.gif differ diff --git a/src/ui/theme-files/old/information.png b/src/ui/theme-files/old/information.png new file mode 100644 index 0000000..54d6b93 Binary files /dev/null and b/src/ui/theme-files/old/information.png differ diff --git a/src/ui/theme-files/old/lang_de.gif b/src/ui/theme-files/old/lang_de.gif new file mode 100644 index 0000000..57b5aa3 Binary files /dev/null and b/src/ui/theme-files/old/lang_de.gif differ diff --git a/src/ui/theme-files/old/lang_de.png b/src/ui/theme-files/old/lang_de.png new file mode 100644 index 0000000..fa505ab Binary files /dev/null and b/src/ui/theme-files/old/lang_de.png differ diff --git a/src/ui/theme-files/old/lang_en.gif b/src/ui/theme-files/old/lang_en.gif new file mode 100644 index 0000000..a6e03b3 Binary files /dev/null and b/src/ui/theme-files/old/lang_en.gif differ diff --git a/src/ui/theme-files/old/lang_en.png b/src/ui/theme-files/old/lang_en.png new file mode 100644 index 0000000..496a553 Binary files /dev/null and b/src/ui/theme-files/old/lang_en.png differ diff --git a/src/ui/theme-files/old/link.gif b/src/ui/theme-files/old/link.gif new file mode 100644 index 0000000..2542121 Binary files /dev/null and b/src/ui/theme-files/old/link.gif differ diff --git a/src/ui/theme-files/old/link.png b/src/ui/theme-files/old/link.png new file mode 100644 index 0000000..45fefe3 Binary files /dev/null and b/src/ui/theme-files/old/link.png differ diff --git a/src/ui/theme-files/old/lock.gif b/src/ui/theme-files/old/lock.gif new file mode 100644 index 0000000..255756f Binary files /dev/null and b/src/ui/theme-files/old/lock.gif differ diff --git a/src/ui/theme-files/old/lock.png b/src/ui/theme-files/old/lock.png new file mode 100644 index 0000000..d3c2163 Binary files /dev/null and b/src/ui/theme-files/old/lock.png differ diff --git a/src/ui/theme-files/old/lock_large.gif b/src/ui/theme-files/old/lock_large.gif new file mode 100644 index 0000000..20f81ca Binary files /dev/null and b/src/ui/theme-files/old/lock_large.gif differ diff --git a/src/ui/theme-files/old/lock_large.png b/src/ui/theme-files/old/lock_large.png new file mode 100644 index 0000000..38bc49d Binary files /dev/null and b/src/ui/theme-files/old/lock_large.png differ diff --git a/src/ui/theme-files/old/lock_open.gif b/src/ui/theme-files/old/lock_open.gif new file mode 100644 index 0000000..c80b12d Binary files /dev/null and b/src/ui/theme-files/old/lock_open.gif differ diff --git a/src/ui/theme-files/old/lock_open.png b/src/ui/theme-files/old/lock_open.png new file mode 100644 index 0000000..3b2b629 Binary files /dev/null and b/src/ui/theme-files/old/lock_open.png differ diff --git a/src/ui/theme-files/old/lock_small.gif b/src/ui/theme-files/old/lock_small.gif new file mode 100644 index 0000000..a167c7b Binary files /dev/null and b/src/ui/theme-files/old/lock_small.gif differ diff --git a/src/ui/theme-files/old/lock_small.png b/src/ui/theme-files/old/lock_small.png new file mode 100644 index 0000000..2e76183 Binary files /dev/null and b/src/ui/theme-files/old/lock_small.png differ diff --git a/src/ui/theme-files/old/lock_small.psd b/src/ui/theme-files/old/lock_small.psd new file mode 100644 index 0000000..dc2bc82 Binary files /dev/null and b/src/ui/theme-files/old/lock_small.psd differ diff --git a/src/ui/theme-files/old/make-gifs b/src/ui/theme-files/old/make-gifs new file mode 100755 index 0000000..d5a2f39 --- /dev/null +++ b/src/ui/theme-files/old/make-gifs @@ -0,0 +1,7 @@ +#!/bin/sh +for f in *.png; do + out_file="${f%.*}.gif" + if [ ! -f "$out_file" ]; then + magick "$f" -background white -flatten -transparent white "$out_file" + fi +done diff --git a/src/ui/theme-files/old/message.gif b/src/ui/theme-files/old/message.gif new file mode 100644 index 0000000..a7ec893 Binary files /dev/null and b/src/ui/theme-files/old/message.gif differ diff --git a/src/ui/theme-files/old/message.png b/src/ui/theme-files/old/message.png new file mode 100644 index 0000000..995d19e Binary files /dev/null and b/src/ui/theme-files/old/message.png differ diff --git a/src/ui/theme-files/old/message_add.gif b/src/ui/theme-files/old/message_add.gif new file mode 100644 index 0000000..c2efaf6 Binary files /dev/null and b/src/ui/theme-files/old/message_add.gif differ diff --git a/src/ui/theme-files/old/message_add.png b/src/ui/theme-files/old/message_add.png new file mode 100644 index 0000000..f1e02fb Binary files /dev/null and b/src/ui/theme-files/old/message_add.png differ diff --git a/src/ui/theme-files/old/message_delete.gif b/src/ui/theme-files/old/message_delete.gif new file mode 100644 index 0000000..c31b4ff Binary files /dev/null and b/src/ui/theme-files/old/message_delete.gif differ diff --git a/src/ui/theme-files/old/message_delete.png b/src/ui/theme-files/old/message_delete.png new file mode 100644 index 0000000..6ab300a Binary files /dev/null and b/src/ui/theme-files/old/message_delete.png differ diff --git a/src/ui/theme-files/old/message_edit.gif b/src/ui/theme-files/old/message_edit.gif new file mode 100644 index 0000000..cf79608 Binary files /dev/null and b/src/ui/theme-files/old/message_edit.gif differ diff --git a/src/ui/theme-files/old/message_edit.png b/src/ui/theme-files/old/message_edit.png new file mode 100644 index 0000000..19d4087 Binary files /dev/null and b/src/ui/theme-files/old/message_edit.png differ diff --git a/src/ui/theme-files/old/microphone.gif b/src/ui/theme-files/old/microphone.gif new file mode 100644 index 0000000..5b022b7 Binary files /dev/null and b/src/ui/theme-files/old/microphone.gif differ diff --git a/src/ui/theme-files/old/microphone.png b/src/ui/theme-files/old/microphone.png new file mode 100644 index 0000000..d398dd5 Binary files /dev/null and b/src/ui/theme-files/old/microphone.png differ diff --git a/src/ui/theme-files/old/paperclip_small.gif b/src/ui/theme-files/old/paperclip_small.gif new file mode 100644 index 0000000..fc890d6 Binary files /dev/null and b/src/ui/theme-files/old/paperclip_small.gif differ diff --git a/src/ui/theme-files/old/paperclip_small.png b/src/ui/theme-files/old/paperclip_small.png new file mode 100644 index 0000000..7972647 Binary files /dev/null and b/src/ui/theme-files/old/paperclip_small.png differ diff --git a/src/ui/theme-files/old/paperclip_small.psd b/src/ui/theme-files/old/paperclip_small.psd new file mode 100644 index 0000000..57c456f Binary files /dev/null and b/src/ui/theme-files/old/paperclip_small.psd differ diff --git a/src/ui/theme-files/old/pencil.gif b/src/ui/theme-files/old/pencil.gif new file mode 100644 index 0000000..e8eb5b4 Binary files /dev/null and b/src/ui/theme-files/old/pencil.gif differ diff --git a/src/ui/theme-files/old/pencil.png b/src/ui/theme-files/old/pencil.png new file mode 100644 index 0000000..43f1170 Binary files /dev/null and b/src/ui/theme-files/old/pencil.png differ diff --git a/src/ui/theme-files/old/photo.gif b/src/ui/theme-files/old/photo.gif new file mode 100644 index 0000000..6a3f41d Binary files /dev/null and b/src/ui/theme-files/old/photo.gif differ diff --git a/src/ui/theme-files/old/photo.png b/src/ui/theme-files/old/photo.png new file mode 100644 index 0000000..e4e3b3b Binary files /dev/null and b/src/ui/theme-files/old/photo.png differ diff --git a/src/ui/theme-files/old/photo.psd b/src/ui/theme-files/old/photo.psd new file mode 100644 index 0000000..00b945a Binary files /dev/null and b/src/ui/theme-files/old/photo.psd differ diff --git a/src/ui/theme-files/old/refresh.gif b/src/ui/theme-files/old/refresh.gif new file mode 100644 index 0000000..b7a8fbc Binary files /dev/null and b/src/ui/theme-files/old/refresh.gif differ diff --git a/src/ui/theme-files/old/refresh.png b/src/ui/theme-files/old/refresh.png new file mode 100644 index 0000000..f916be5 Binary files /dev/null and b/src/ui/theme-files/old/refresh.png differ diff --git a/src/ui/theme-files/old/search.gif b/src/ui/theme-files/old/search.gif new file mode 100644 index 0000000..5195c21 Binary files /dev/null and b/src/ui/theme-files/old/search.gif differ diff --git a/src/ui/theme-files/old/search.png b/src/ui/theme-files/old/search.png new file mode 100644 index 0000000..f140214 Binary files /dev/null and b/src/ui/theme-files/old/search.png differ diff --git a/src/ui/theme-files/old/text_blank.gif b/src/ui/theme-files/old/text_blank.gif new file mode 100644 index 0000000..e65d197 Binary files /dev/null and b/src/ui/theme-files/old/text_blank.gif differ diff --git a/src/ui/theme-files/old/text_blank.png b/src/ui/theme-files/old/text_blank.png new file mode 100644 index 0000000..6e4a8df Binary files /dev/null and b/src/ui/theme-files/old/text_blank.png differ diff --git a/src/ui/theme-files/old/text_bold.gif b/src/ui/theme-files/old/text_bold.gif new file mode 100644 index 0000000..b07a2b0 Binary files /dev/null and b/src/ui/theme-files/old/text_bold.gif differ diff --git a/src/ui/theme-files/old/text_bold.png b/src/ui/theme-files/old/text_bold.png new file mode 100644 index 0000000..bd57bc3 Binary files /dev/null and b/src/ui/theme-files/old/text_bold.png differ diff --git a/src/ui/theme-files/old/text_italics.gif b/src/ui/theme-files/old/text_italics.gif new file mode 100644 index 0000000..48f42a8 Binary files /dev/null and b/src/ui/theme-files/old/text_italics.gif differ diff --git a/src/ui/theme-files/old/text_italics.png b/src/ui/theme-files/old/text_italics.png new file mode 100644 index 0000000..8905715 Binary files /dev/null and b/src/ui/theme-files/old/text_italics.png differ diff --git a/src/ui/theme-files/old/text_strikethrough.gif b/src/ui/theme-files/old/text_strikethrough.gif new file mode 100644 index 0000000..eb81e8d Binary files /dev/null and b/src/ui/theme-files/old/text_strikethrough.gif differ diff --git a/src/ui/theme-files/old/text_strikethrough.png b/src/ui/theme-files/old/text_strikethrough.png new file mode 100644 index 0000000..5865053 Binary files /dev/null and b/src/ui/theme-files/old/text_strikethrough.png differ diff --git a/src/ui/theme-files/old/text_strikethrough.psd b/src/ui/theme-files/old/text_strikethrough.psd new file mode 100644 index 0000000..86bc2ee Binary files /dev/null and b/src/ui/theme-files/old/text_strikethrough.psd differ diff --git a/src/ui/theme-files/old/text_subscript.gif b/src/ui/theme-files/old/text_subscript.gif new file mode 100644 index 0000000..bdaf5dc Binary files /dev/null and b/src/ui/theme-files/old/text_subscript.gif differ diff --git a/src/ui/theme-files/old/text_subscript.png b/src/ui/theme-files/old/text_subscript.png new file mode 100644 index 0000000..83ae2cf Binary files /dev/null and b/src/ui/theme-files/old/text_subscript.png differ diff --git a/src/ui/theme-files/old/text_superscript.gif b/src/ui/theme-files/old/text_superscript.gif new file mode 100644 index 0000000..b16a28e Binary files /dev/null and b/src/ui/theme-files/old/text_superscript.gif differ diff --git a/src/ui/theme-files/old/text_superscript.png b/src/ui/theme-files/old/text_superscript.png new file mode 100644 index 0000000..affcc7e Binary files /dev/null and b/src/ui/theme-files/old/text_superscript.png differ diff --git a/src/ui/theme-files/old/text_underlined.gif b/src/ui/theme-files/old/text_underlined.gif new file mode 100644 index 0000000..f643fab Binary files /dev/null and b/src/ui/theme-files/old/text_underlined.gif differ diff --git a/src/ui/theme-files/old/text_underlined.png b/src/ui/theme-files/old/text_underlined.png new file mode 100644 index 0000000..59f0b9a Binary files /dev/null and b/src/ui/theme-files/old/text_underlined.png differ diff --git a/src/ui/theme-files/old/theme.css b/src/ui/theme-files/old/theme.css new file mode 100644 index 0000000..3b40570 --- /dev/null +++ b/src/ui/theme-files/old/theme.css @@ -0,0 +1,72 @@ +body { + background: #fff url("/ui/theme-files/old/gradient_top.gif") repeat-x; +} +body, td, th, .seamless, .body-font { + font: 8pt/1.2 Verdana, sans-serif; +} +h1, .h1 { + font: bold 16pt/1.2 Verdana, sans-serif; + margin: 0.67em 0; +} +th { font-weight: bold; } +.no-bold { font-weight: normal; } +.inline-icon { vertical-align: middle; } +form { margin: 0; } +.m-l, .seamless.m-l { margin-left: 2px; } +.m-r, .seamless.m-r { margin-right: 2px; } +.m-l-lg, .seamless.m-l-lg { margin-left: 8px; } +.m-r-lg, .seamless.m-r-l.m-l-lg { margin-right: 8px; } +.m-0 { margin: 0; } +.footer select { font-size: 8pt; } +.pull-left { float: left; } +.pull-right { float: right; } +.text-left { text-align: left; } +.text-center { text-align: center; } +.text-right { text-align: right; } +.inline { display: inline; } +.fw { width: 100%; } +.seamless { + border: none; + background: none; + -webkit-border-radius: 0; + -moz-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + text-decoration: none; + color: black; + cursor: pointer; + margin: 0; + padding: 0; +} +.post-editor { + width: 100%; + resize: vertical; + max-height: 499px; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; + border: 0; +} +.image-attachment { + display: inline-block; + *display: inline; + zoom: 1; + position: relative; + margin-top: 4px; +} +.attachment-icon { + position: absolute; + right: 4px; + bottom: 4px; +} +.clearfix:before, +.clearfix:after { + content: " "; + display: table; +} +.clearfix:after { + clear: both; +} +.clearfix { + *zoom: 1; +} diff --git a/src/ui/theme-files/old/undo.gif b/src/ui/theme-files/old/undo.gif new file mode 100644 index 0000000..d147b9a Binary files /dev/null and b/src/ui/theme-files/old/undo.gif differ diff --git a/src/ui/theme-files/old/undo.png b/src/ui/theme-files/old/undo.png new file mode 100644 index 0000000..3c1047c Binary files /dev/null and b/src/ui/theme-files/old/undo.png differ diff --git a/src/ui/theme-files/old/user.gif b/src/ui/theme-files/old/user.gif new file mode 100644 index 0000000..ea02bbe Binary files /dev/null and b/src/ui/theme-files/old/user.gif differ diff --git a/src/ui/theme-files/old/user.png b/src/ui/theme-files/old/user.png new file mode 100644 index 0000000..ee243c3 Binary files /dev/null and b/src/ui/theme-files/old/user.png differ diff --git a/src/ui/theme-files/old/user_add.gif b/src/ui/theme-files/old/user_add.gif new file mode 100644 index 0000000..616a361 Binary files /dev/null and b/src/ui/theme-files/old/user_add.gif differ diff --git a/src/ui/theme-files/old/user_add.png b/src/ui/theme-files/old/user_add.png new file mode 100644 index 0000000..772b430 Binary files /dev/null and b/src/ui/theme-files/old/user_add.png differ -- cgit v1.2.3