From 1b11df8b3914b438eedf8d9da7bca31de38a8687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 10 Jun 2026 13:41:17 -0400 Subject: [PATCH 01/32] wrap helpers that return html with {{}] --- templates/account/blocks.tpl | 2 +- templates/account/info.tpl | 14 +++++++------- templates/account/settings.tpl | 4 ++-- templates/groups/details.tpl | 2 +- templates/header.tpl | 8 ++++---- templates/modules/usercard.tpl | 2 +- templates/notifications.tpl | 2 +- templates/partials/account/category-item.tpl | 2 +- templates/partials/account/header.tpl | 2 +- templates/partials/account/session-list.tpl | 2 +- templates/partials/buttons/newTopic.tpl | 2 +- templates/partials/categories/item.tpl | 4 ++-- templates/partials/categories/lastpost.tpl | 2 +- templates/partials/chats-menu.tpl | 2 +- templates/partials/groups/invited.tpl | 2 +- templates/partials/groups/list.tpl | 2 +- templates/partials/groups/memberlist.tpl | 2 +- templates/partials/groups/pending.tpl | 2 +- templates/partials/header/user-menu.tpl | 2 +- templates/partials/menu.tpl | 2 +- templates/partials/notifications_list.tpl | 2 +- templates/partials/posts_list_item.tpl | 2 +- .../partials/quick-category-search-results.tpl | 2 +- templates/partials/quick-search-results.tpl | 4 ++-- templates/partials/search-filters.tpl | 4 ++-- templates/partials/search-results.tpl | 4 ++-- templates/partials/topic/navigation-post.tpl | 2 +- templates/partials/topic/post.tpl | 6 +++--- templates/partials/topic/quickreply.tpl | 2 +- templates/partials/topics_list.tpl | 6 +++--- templates/partials/users/item.tpl | 2 +- templates/topic.tpl | 2 +- templates/world.tpl | 4 ++-- 33 files changed, 52 insertions(+), 52 deletions(-) diff --git a/templates/account/blocks.tpl b/templates/account/blocks.tpl index a5e99c469..cdd5ae798 100644 --- a/templates/account/blocks.tpl +++ b/templates/account/blocks.tpl @@ -16,7 +16,7 @@
  • @@ -138,7 +138,7 @@
  • - {buildAvatar(./user, "24px", true)} + {{buildAvatar(./user, "24px", true)}} @@ -240,7 +240,7 @@
    - {buildAvatar(./user, "24px", true)} + {{buildAvatar(./user, "24px", true)}} diff --git a/templates/account/settings.tpl b/templates/account/settings.tpl index bb776d45f..b7e5689f2 100644 --- a/templates/account/settings.tpl +++ b/templates/account/settings.tpl @@ -61,7 +61,7 @@
    {{{ each settings.chatAllowListUsers }}}
    - {buildAvatar(@value, "16px", true)} {./username} + {{buildAvatar(@value, "16px", true)}} {./username}
    {{{ end }}} @@ -76,7 +76,7 @@
    {{{ each settings.chatDenyListUsers }}}
    - {buildAvatar(@value, "16px", true)} {./username} + {{buildAvatar(@value, "16px", true)}} {./username}
    {{{ end }}} diff --git a/templates/groups/details.tpl b/templates/groups/details.tpl index 76f4901d8..381301473 100644 --- a/templates/groups/details.tpl +++ b/templates/groups/details.tpl @@ -31,7 +31,7 @@
    {{{ if loggedIn }}} - {membershipBtn(group)} + {{membershipBtn(group)}} {{{ end }}} {{{ if isAdmin }}} [[user:edit]] diff --git a/templates/header.tpl b/templates/header.tpl index 1b73f1165..9f3f8692f 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -2,13 +2,13 @@ {browserTitle} - {{{each metaTags}}}{buildMetaTag(@value)}{{{end}}} + {{{each metaTags}}}{{buildMetaTag(@value)}}{{{end}}} - {{{each linkTags}}}{buildLinkTag(@value)}{{{end}}} + {{{each linkTags}}}{{buildLinkTag(@value)}}{{{end}}}