Skip to content

Commit a820d11

Browse files
committed
Refactor ACP-managed integrations ACP explainer
1 parent 1543d1d commit a820d11

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

adm/style/consentmanager_acp.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,19 @@ <h3>{{ lang('WARNING') }}</h3>
7373
<fieldset>
7474
<legend>{{ lang('ACP_CONSENTMANAGER_INTEGRATIONS') }}</legend>
7575
<dl>
76-
<dt><label for="consentmanager_integrations">{{ lang('ACP_CONSENTMANAGER_INTEGRATIONS') ~ lang('COLON') }}</label><br><span>{{ lang('ACP_CONSENTMANAGER_INTEGRATIONS_EXPLAIN') }}</span><br><br>
77-
<span><strong>{{ lang('EXAMPLE') ~ lang('COLON') }}</strong></span><br>
78-
<pre><samp class="error">{{ CONSENTMANAGER_INTEGRATIONS_EXAMPLE }}</samp></pre>
76+
<dt><label for="consentmanager_integrations">{{ lang('ACP_CONSENTMANAGER_INTEGRATIONS') ~ lang('COLON') }}</label>
77+
<br>
78+
{{ lang('ACP_CONSENTMANAGER_INTEGRATIONS_EXPLAIN') }}<br>
79+
<br>
80+
{{ lang('ACP_CONSENTMANAGER_INTEGRATIONS_FORMAT') }}<br>
81+
<pre><samp class="error">{{ CONSENTMANAGER_INTEGRATIONS_EXAMPLE }}</samp></pre><br>
82+
<strong>{{ lang('ACP_CONSENTMANAGER_INTEGRATIONS_REQUIRED') ~ lang('COLON') }}</strong><br>
83+
&bull; <samp class="error">id</samp>{{ lang('COLON')}} {{ lang('ACP_CONSENTMANAGER_INTEGRATIONS_REQUIRED_ID') }}<br>
84+
&bull; <samp class="error">category</samp>{{ lang('COLON')}} {{ lang('ACP_CONSENTMANAGER_INTEGRATIONS_REQUIRED_CAT') }} <samp class="error">necessary</samp>, <samp class="error">analytics</samp>, <samp class="error">marketing</samp>, <samp class="error">media</samp>.<br>
85+
&bull; <samp class="error">src</samp>{{ lang('COLON')}} {{ lang('ACP_CONSENTMANAGER_INTEGRATIONS_REQUIRED_SRC') }}<br>
86+
<br>
87+
<strong>{{ lang('ACP_CONSENTMANAGER_INTEGRATIONS_OPTIONAL') ~ lang('COLON') }}</strong><br>
88+
&bull; <samp class="error">label</samp>, <samp class="error">description</samp>, <samp class="error">async</samp>, <samp class="error">defer</samp>
7989
</dt>
8090
<dd>
8191
<div style="position: relative; display: inline-block;">

language/en/acp_consentmanager.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@
2828
'ACP_CONSENTMANAGER_MEDIA' => 'Enable embedded media category',
2929
'ACP_CONSENTMANAGER_MEDIA_EXPLAIN' => 'Allows videos, players, widgets, and other iframe-based external media to be loaded after consent.',
3030
'ACP_CONSENTMANAGER_INTEGRATIONS' => 'Manual integrations',
31-
'ACP_CONSENTMANAGER_INTEGRATIONS_EXPLAIN' => 'Use this to add third-party analytics, marketing, or other scripts directly from the ACP. These integrations appear in the consent UI and are only loaded after the required consent has been granted.<br><br>Provide a JSON array of integrations.<br><br>Each object must include: <samp class="error">id</samp>, <samp class="error">category</samp>, <samp class="error">src</samp>. The <samp class="error">id</samp> may only use letters, numbers, dots, underscores, colons, and hyphens. The <samp class="error">category</samp> must be <samp class="error">necessary</samp>, <samp class="error">analytics</samp>, or <samp class="error">marketing</samp>. The <samp class="error">src</samp> must be a valid http, https, or relative script URL.<br><br>Optional fields: <samp class="error">label</samp>, <samp class="error">description</samp>, <samp class="error">async</samp>, <samp class="error">defer</samp>.',
31+
'ACP_CONSENTMANAGER_INTEGRATIONS_EXPLAIN' => 'Use this to add third-party analytics, marketing, or other scripts directly from the ACP. These integrations appear in the consent UI and are only loaded after the required consent has been granted.',
32+
'ACP_CONSENTMANAGER_INTEGRATIONS_FORMAT' => 'Provide a JSON array of integrations. For example:',
33+
'ACP_CONSENTMANAGER_INTEGRATIONS_REQUIRED' => 'Required properties',
34+
'ACP_CONSENTMANAGER_INTEGRATIONS_REQUIRED_ID' => 'may only use letters, numbers, dots, underscores, colons, and hyphens.',
35+
'ACP_CONSENTMANAGER_INTEGRATIONS_REQUIRED_CAT' => 'must be one of these values:',
36+
'ACP_CONSENTMANAGER_INTEGRATIONS_REQUIRED_SRC' => 'must be a valid http, https, or relative script URL.',
37+
'ACP_CONSENTMANAGER_INTEGRATIONS_OPTIONAL' => 'Optional properties',
3238
'ACP_CONSENTMANAGER_INTEGRATIONS_EXAMPLE_LABEL' => 'Example Analytics',
3339
'ACP_CONSENTMANAGER_INTEGRATIONS_EXAMPLE_DESC' => 'Loads a simple analytics library after consent.',
3440
'ACP_CONSENTMANAGER_REGISTRATIONS' => 'Registered integrations',
@@ -45,7 +51,6 @@
4551
'CONSENTMANAGER_CATEGORY_ANALYTICS' => 'Analytics',
4652
'CONSENTMANAGER_CATEGORY_MARKETING' => 'Marketing',
4753
'CONSENTMANAGER_CATEGORY_MEDIA' => 'Media',
48-
'EXAMPLE' => 'Example',
4954

5055
// Consent logs
5156
'ACP_CONSENTMANAGER_EXPORT_EXPLAIN' => 'Download a CSV file of stored consent log records or permanently delete matching records from the database. All fields are optional; leave them blank to work with the full log.',

0 commit comments

Comments
 (0)