From b2be876424adc115936a67f781a5930da77d167c Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Tue, 29 Nov 2022 10:38:01 +0100 Subject: [PATCH] Made unfurlUrl template available in ACP See https://www.woltlab.com/community/thread/298168-artikel-erstellen-im-acp-bringt-fehler-bei-vorschau/ --- syncTemplates.json | 1 + .../install/files/acp/templates/unfurlUrl.tpl | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 wcfsetup/install/files/acp/templates/unfurlUrl.tpl diff --git a/syncTemplates.json b/syncTemplates.json index 026dcbd754b..00bb7f0a643 100644 --- a/syncTemplates.json +++ b/syncTemplates.json @@ -91,6 +91,7 @@ "sitemapEnd", "sitemapStart", "trophyImage", + "unfurlUrl", "uploadFieldComponent", "userConditions", "userOptionsCondition", diff --git a/wcfsetup/install/files/acp/templates/unfurlUrl.tpl b/wcfsetup/install/files/acp/templates/unfurlUrl.tpl new file mode 100644 index 00000000000..0258cc8ad76 --- /dev/null +++ b/wcfsetup/install/files/acp/templates/unfurlUrl.tpl @@ -0,0 +1,21 @@ +{if $object->status == "SUCCESSFUL"} + {if $object->isPlainUrl()} + url isUgc=$enableUgc}>{$object->title} + {else} +
+ {if !$object->getImageUrl()|empty} + + {/if} +
+ url appendClassname=false isUgc=$enableUgc}>{$object->title} +
{$object->description}
+
{$object->getHost()}
+
+
+ {/if} +{else} + url isUgc=$enableUgc}>{$object->url} +{/if} \ No newline at end of file