diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 546b305..5bbaf56 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -571,20 +571,26 @@ Exposes Consent Manager's startup data. This is for internal use; extension inte For extensions or templates that render iframe-based external media **outside** phpBB's bbcode engine, only output the deferred Consent Manager wrapper when the embedded media category is enabled. Otherwise, keep rendering the normal iframe. -Twig example: +Let's look at how we would handle the following iframe: + +```html + +``` + +### Pattern 1: Twig template example ```twig {% if S_CONSENTMANAGER_MEDIA_ENABLED %} - + {% else %} + +``` + +Use this pattern for: + +- ACP/custom-code features that inject raw HTML into pages +- integrations that output iframe markup after phpBB's bbcode and Twig rendering have already finished ## Examples of Consent Manager integrations diff --git a/build.xml b/build.xml index dfdf9dc..55671cb 100644 --- a/build.xml +++ b/build.xml @@ -25,6 +25,7 @@ +