Skip to content

Commit

Permalink
Merge pull request #3 from siwaonline/master
Browse files Browse the repository at this point in the history
added youtube, vimeo and dailymotion
  • Loading branch information
Cruiser13 committed Jul 13, 2021
2 parents ff338a2 + 9e431be commit c490d68
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
Expand Up @@ -31,3 +31,9 @@ privacyUrl: "Privacy URL"
privacyUrl_helptext: "Wenn hier eine Zahl eingegeben wird, wird das Dokument mit dieser ID verwendet."
configuration_save_success: "Konfiguration für Seite <b>%site%</b> erfolgreich gespeichert."
configuration_save_fail: "Fehler bei der Speicherung der Konfiguration für Seite <b>%site%</b>!"
youtube: "Youtube"
youtube_helptext: "Aktivieren Sie Youtube (true|false)"
vimeo: "Vimeo"
vimeo_helptext: "Aktivieren Sie Vimeo (true|false)"
dailymotion: "Dailymotion"
dailymotion_helptext: "Aktivieren Sie Dailymotion (true|false)"
Expand Up @@ -31,3 +31,9 @@ privacyUrl: "Privacy URL"
privacyUrl_helptext: "If value is numeric, then will be taken Document by id."
configuration_save_success: "Configuration for Site <b>%site%</b> saved successfully."
configuration_save_fail: "Failed to save configuration for Site <b>%site%</b>!"
youtube: "Youtube"
youtube_helptext: "Activate Youtube (true|false)"
vimeo: "Vimeo"
vimeo_helptext: "Activate Vimeo (true|false)"
dailymotion: "Dailymotion"
dailymotion_helptext: "Activate Dailymotion (true|false)"
Expand Up @@ -32,3 +32,6 @@ matomo_site_id: ""
matomo_host: ""
mautic_url: ""
zopimID: ""
youtube: "false"
vimeo: "false"
dailymotion: "false"
Expand Up @@ -14,7 +14,7 @@
"adblocker": {{ configuration.adblocker }}, /* Show a Warning if an adblocker is detected */
"showIcon": {{ configuration.showIcon }}, /* Show cookie icon to manage cookies */
"iconPosition": {{ configuration.iconPosition }}, /* Position of the icon between BottomRight, BottomLeft, TopRight and TopLeft */
"iconPosition": "{{ configuration.iconPosition }}", /* Position of the icon between BottomRight, BottomLeft, TopRight and TopLeft */
"AcceptAllCta" : {{ configuration.AcceptAllCta }}, /* Show the accept all button when highPrivacy on */
"highPrivacy": {{ configuration.highPrivacy }}, /* Disable auto consent */
Expand Down Expand Up @@ -83,6 +83,12 @@
{% elseif configurationidentifier == 'zopimID' %}
tarteaucitron.user.zopimID = '{{ configurationvalue }}';
(tarteaucitron.job = tarteaucitron.job || []).push('zopim');
{% elseif configurationidentifier == 'youtube' and configurationvalue == 'true' %}
(tarteaucitron.job = tarteaucitron.job || []).push('youtube');
{% elseif configurationidentifier == 'vimeo' and configurationvalue == 'true' %}
(tarteaucitron.job = tarteaucitron.job || []).push('vimeo');
{% elseif configurationidentifier == 'dailymotion' and configurationvalue == 'true' %}
(tarteaucitron.job = tarteaucitron.job || []).push('dailymotion');
{% endif %}
{% endif %}
{% endfor %}
Expand Down

0 comments on commit c490d68

Please sign in to comment.