From ce8d8af09256cea85132b83b225791dc5e98a23e Mon Sep 17 00:00:00 2001 From: Nikita Hovratov Date: Fri, 16 Aug 2024 19:20:06 +0200 Subject: [PATCH] [!!!][TASK] Replace custom TranslateViewHelper with LanguagePathViewHelper --- .../card_group/Source/EditorPreview.html | 2 +- .../card_group/Source/Frontend.html | 2 +- Classes/ViewHelpers/AssetPathViewHelper.php | 10 ++ .../ViewHelpers/LanguagePathViewHelper.php | 60 ++++++++++ Classes/ViewHelpers/TranslateViewHelper.php | 111 ------------------ Documentation/Templating/Index.rst | 7 +- .../simple-with-basics/Source/Frontend.html | 2 +- .../simple/Source/Frontend.html | 2 +- .../simple2/Source/Frontend.html | 4 +- ...est.php => LanguagePathViewHelperTest.php} | 47 ++------ 10 files changed, 92 insertions(+), 155 deletions(-) create mode 100644 Classes/ViewHelpers/LanguagePathViewHelper.php delete mode 100644 Classes/ViewHelpers/TranslateViewHelper.php rename Tests/Functional/ViewHelpers/{TranslateViewHelperTest.php => LanguagePathViewHelperTest.php} (57%) diff --git a/Build/content-blocks-examples/ContentBlocks/ContentElements/card_group/Source/EditorPreview.html b/Build/content-blocks-examples/ContentBlocks/ContentElements/card_group/Source/EditorPreview.html index 6395732c..26d719e8 100644 --- a/Build/content-blocks-examples/ContentBlocks/ContentElements/card_group/Source/EditorPreview.html +++ b/Build/content-blocks-examples/ContentBlocks/ContentElements/card_group/Source/EditorPreview.html @@ -32,7 +32,7 @@

{item.link_title} - +