N°7410 - Fix typo in template path

This commit is contained in:
Molkobain
2024-07-18 16:06:12 +02:00
parent 06c26c99bb
commit d32949d1d3
10 changed files with 10 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ function DisplayWelcomePopup(WebPage $oP): void
$oWelcomePopupService = WelcomePopupService::GetInstance();
$aProvidersMessagesData = $oWelcomePopupService->GetMessages();
if (count($aProvidersMessagesData) > 0) {
TwigHelper::RenderIntoPage($oP, APPROOT."/", "templates/application/welcome_popup/layout", [
TwigHelper::RenderIntoPage($oP, APPROOT."/", "templates/application/welcome-popup/layout", [
"aProvidersMessagesData" => $aProvidersMessagesData,
"sEndpointAbsURIForAcknowledgeMessage" => Router::GetInstance()->GenerateUrl(WelcomePopupController::ROUTE_NAMESPACE . ".acknowledge_message"),
]);

View File

@@ -20,7 +20,7 @@ use utils;
*/
class Message {
/** @var string Default TWIG template */
protected const DEFAULT_TWIG_TEMPLATE_REL_PATH = 'templates/application/welcome_popup/templates/left-title-description-right-illustration.html.twig';
protected const DEFAULT_TWIG_TEMPLATE_REL_PATH = 'templates/application/welcome-popup/templates/left-title-description-right-illustration.html.twig';
/** @var string Unique ID of the message within its provider */
protected readonly string $sId;

View File

@@ -38,7 +38,7 @@ class MessageFactory {
$sIllustrationAbsURI,
[],
$iImportance,
"templates/application/welcome_popup/templates/left-title-description-right-illustration.html.twig"
"templates/application/welcome-popup/templates/left-title-description-right-illustration.html.twig"
);
}
@@ -61,7 +61,7 @@ class MessageFactory {
$sIllustrationAbsURI,
[],
$iImportance,
"templates/application/welcome_popup/templates/left-illustration-right-title-description.html.twig"
"templates/application/welcome-popup/templates/left-illustration-right-title-description.html.twig"
);
}
@@ -74,7 +74,7 @@ class MessageFactory {
$sIllustrationAbsURI,
[],
$iImportance,
"templates/application/welcome_popup/templates/left-illustration-as-svg-markup-right-title-description.html.twig"
"templates/application/welcome-popup/templates/left-illustration-as-svg-markup-right-title-description.html.twig"
);
}
@@ -87,7 +87,7 @@ class MessageFactory {
$sIllustrationAbsURI,
[],
$iImportance,
"templates/application/welcome_popup/templates/left-title-description-right-illustration-as-svg-markup.html.twig"
"templates/application/welcome-popup/templates/left-title-description-right-illustration-as-svg-markup.html.twig"
);
}

View File

@@ -1,4 +1,4 @@
{% extends 'templates/application/welcome_popup/templates/left-illustration-right-title-description.html.twig' %}
{% extends 'templates/application/welcome-popup/templates/left-illustration-right-title-description.html.twig' %}
{% block wpMessagIllustrationInner %}
<div class="ibo-welcome-popup--message-illustration ibo-svg-illustration--container">

View File

@@ -1,3 +1,3 @@
{% extends 'templates/application/welcome_popup/templates/layout.html.twig' %}
{% extends 'templates/application/welcome-popup/templates/layout.html.twig' %}
{% block wpMessageContentExtraCssClasses %}{{ parent() }} ibo-is-illustration-on-left-side{% endblock %}

View File

@@ -1,4 +1,4 @@
{% extends 'templates/application/welcome_popup/templates/left-title-description-right-illustration.html.twig' %}
{% extends 'templates/application/welcome-popup/templates/left-title-description-right-illustration.html.twig' %}
{% block wpMessagIllustrationInner %}
<div class="ibo-welcome-popup--message-illustration ibo-svg-illustration--container">

View File

@@ -1,3 +1,3 @@
{% extends 'templates/application/welcome_popup/templates/layout.html.twig' %}
{% extends 'templates/application/welcome-popup/templates/layout.html.twig' %}
{# Nothing there, it's exactly the default template. The file only exists to ease people understanding what the default layout is. #}