From 791fc8920b0991d3d194317d46eff46eb83cd58b Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 7 Feb 2023 20:57:49 +0100 Subject: [PATCH] Change events to use twig syntax & be compatible with phpBB 3.3.9+ --- .../overall_footer_breadcrumb_prepend.html | 2 +- .../event/overall_footer_page_body_after.html | 68 +++++++++---------- .../overall_header_breadcrumb_prepend.html | 2 +- .../event/overall_header_head_append.html | 18 ++--- .../overall_header_page_body_before.html | 8 +-- 5 files changed, 49 insertions(+), 49 deletions(-) diff --git a/styles/prosilver/template/event/overall_footer_breadcrumb_prepend.html b/styles/prosilver/template/event/overall_footer_breadcrumb_prepend.html index e5cb7b5e..883a23d4 100644 --- a/styles/prosilver/template/event/overall_footer_breadcrumb_prepend.html +++ b/styles/prosilver/template/event/overall_footer_breadcrumb_prepend.html @@ -1 +1 @@ -{L_PORTAL} +{% if U_PORTAL %}{{ lang('PORTAL') }}{% endif %} diff --git a/styles/prosilver/template/event/overall_footer_page_body_after.html b/styles/prosilver/template/event/overall_footer_page_body_after.html index 0d4423e0..9a3bb917 100644 --- a/styles/prosilver/template/event/overall_footer_page_body_after.html +++ b/styles/prosilver/template/event/overall_footer_page_body_after.html @@ -1,46 +1,46 @@ - +{% if S_PORTAL_ALL === true %} - -
- - - - - - - - - - - - - + {% if S_LEFT_COLUMN %} +
+ {% for modules_left in loops.modules_left %} + {% DEFINE TEMPLATE_FILE = ''~ modules_left.TEMPLATE_FILE ~'' %} + {% DEFINE IMAGE_SRC = ''~ modules_left.IMAGE_SRC ~'' %} + {% DEFINE IMAGE_WIDTH = ''~ modules_left.IMAGE_WIDTH ~'' %} + {% DEFINE IMAGE_HEIGHT = ''~ modules_left.IMAGE_HEIGHT ~'' %} + {% DEFINE CUSTOM_CODE = ''~ modules_left.CODE ~'' %} + {% DEFINE TITLE = ''~ modules_left.TITLE ~'' %} + {% DEFINE MODULE_ID = ''~ modules_left.MODULE_ID ~'' %} + {% DEFINE FA_ICON = ''~ modules_left.FA_ICON ~'' %} + {% DEFINE FA_SIZE = ''~ modules_left.FA_SIZE ~'' %} + {% DEFINE FA_ENABLED = ''~ modules_left.FA_ENABLED ~'' %} + {% INCLUDE ''~ definition.TEMPLATE_FILE ~'' %} + {% endfor %}
- + {% endif %} - -
- - - - - - - - - - - - - + {% if S_RIGHT_COLUMN %} +
+ {% for modules_right in loops.modules_right %} + {% DEFINE TEMPLATE_FILE = ''~ modules_right.TEMPLATE_FILE ~'' %} + {% DEFINE IMAGE_SRC = ''~ modules_right.IMAGE_SRC ~'' %} + {% DEFINE IMAGE_WIDTH = ''~ modules_right.IMAGE_WIDTH ~'' %} + {% DEFINE IMAGE_HEIGHT = ''~ modules_right.IMAGE_HEIGHT ~'' %} + {% DEFINE CUSTOM_CODE = ''~ modules_right.CODE ~'' %} + {% DEFINE TITLE = ''~ modules_right.TITLE ~'' %} + {% DEFINE FA_ICON = ''~ modules_right.FA_ICON ~'' %} + {% DEFINE FA_SIZE = ''~ modules_right.FA_SIZE ~'' %} + {% DEFINE FA_ENABLED = ''~ modules_right.FA_ENABLED ~'' %} + {% DEFINE MODULE_ID = ''~ modules_right.MODULE_ID ~'' %} + {% INCLUDE ''~ definition.TEMPLATE_FILE ~'' %} + {% endfor %}
- + {% endif %}
- +{% endif %} diff --git a/styles/prosilver/template/event/overall_header_breadcrumb_prepend.html b/styles/prosilver/template/event/overall_header_breadcrumb_prepend.html index e5cb7b5e..883a23d4 100644 --- a/styles/prosilver/template/event/overall_header_breadcrumb_prepend.html +++ b/styles/prosilver/template/event/overall_header_breadcrumb_prepend.html @@ -1 +1 @@ -{L_PORTAL} +{% if U_PORTAL %}{{ lang('PORTAL') }}{% endif %} diff --git a/styles/prosilver/template/event/overall_header_head_append.html b/styles/prosilver/template/event/overall_header_head_append.html index 990b1733..57c59393 100644 --- a/styles/prosilver/template/event/overall_header_head_append.html +++ b/styles/prosilver/template/event/overall_header_head_append.html @@ -1,9 +1,9 @@ - - - - - - - - - +{% if T_EXT_THEME_PATH %} +{% INCLUDECSS '@board3_portal/portal.css' %} +{% if S_PORTAL_ALL %} +{% INCLUDECSS '@board3_portal/portal_all.css' %} +{% INCLUDECSS '@board3_portal/portal_all_responsive.css' %} +{% else %} +{% INCLUDECSS '@board3_portal/portal_responsive.css' %} +{% endif %} +{% endif %} diff --git a/styles/prosilver/template/event/overall_header_page_body_before.html b/styles/prosilver/template/event/overall_header_page_body_before.html index 1e4f2801..1f48d1aa 100644 --- a/styles/prosilver/template/event/overall_header_page_body_before.html +++ b/styles/prosilver/template/event/overall_header_page_body_before.html @@ -1,7 +1,7 @@ - +{% if S_PORTAL_ALL === true %}
- -
- + {% INCLUDE 'portal/_block_config.html' %} +
+{% endif %}