Changeset 3049451
- Timestamp:
- 03/12/2024 03:17:47 AM (2 years ago)
- Location:
- termageddon-usercentrics/trunk
- Files:
-
- 9 edited
-
README.txt (modified) (2 diffs)
-
admin/class-termageddon-usercentrics-admin.php (modified) (5 diffs)
-
admin/css/termageddon-usercentrics-admin.css (modified) (1 diff)
-
admin/css/termageddon-usercentrics-admin.min.css (modified) (1 diff)
-
includes/class-termageddon-usercentrics.php (modified) (2 diffs)
-
languages/termageddon-usercentrics.pot (modified) (19 diffs)
-
public/class-termageddon-usercentrics-public.php (modified) (4 diffs)
-
termageddon-usercentrics.code-workspace (modified) (1 diff)
-
termageddon-usercentrics.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
termageddon-usercentrics/trunk/README.txt
r3011051 r3049451 2 2 Contributors: dintriglia 3 3 Donate link: https://termageddon.com 4 Tags: termageddon, cookie, consent, embed 4 Tags: termageddon, cookie, consent, embed, usercentrics 5 5 Requires at least: 3.0.1 6 Tested up to: 6.4. 27 Stable tag: 1.3. 76 Tested up to: 6.4.3 7 Stable tag: 1.3.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 If you wish to place a privacy settings link in the footer or anywhere else, you can use the [uc-privacysettings] shortcode. 24 24 25 **Please note**: When GeoIP is enabled, you will be collecting IP addresses for the purposes of determining which cookie consent solution (or lack thereof) to provide to each website visitor (CPRA cookie consent, GDPR cookie consent, UK DPA consent or none), based on their location. A cookie will then be placed on the user's browser to log their session, which helps improve page load speed when the user visits other pages on the website. You should ensure that you are in compliance with all applicable privacy laws prior to installing this plugin (or any other technologies on your website). To opt out of this feature, keep all GeoIP checkboxes unchecked (default).25 **Please note**: When GeoIP is enabled, you will be collecting IP addresses for the purposes of determining which cookie consent solution (or lack thereof) to provide to each website visitor (CPRA or CIPA cookie consent, GDPR cookie consent, UK DPA consent or none), based on their location. A cookie will then be placed on the user's browser to log their session, which helps improve page load speed when the user visits other pages on the website. You should ensure that you are in compliance with all applicable privacy laws prior to installing this plugin (or any other technologies on your website). To opt out of this feature, keep all GeoIP checkboxes unchecked (default). 26 26 27 27 == Changelog == 28 29 = 1.3.8 = 30 31 - [ADD] Added support for CIPA in California. 32 - [ADD] Added Divi Video Integration Support to improve image overlay placeholder handling when consent is required. 33 - [ADD] Added documentation link for Geo-Location. 28 34 29 35 = 1.3.7 = -
termageddon-usercentrics/trunk/admin/class-termageddon-usercentrics-admin.php
r2948875 r3049451 186 186 $message_list[] = esc_html__( 'Geolocation Database Last Updated', 'termageddon-usercentrics' ) . ': ' . PHP_EOL . Termageddon_Usercentrics::get_maxmind_db_last_updated(); 187 187 $message_list[] = esc_html__( 'Geolocation Database Next Update', 'termageddon-usercentrics' ) . ': ' . PHP_EOL . Termageddon_Usercentrics::get_maxmind_db_next_update(); 188 $message_list[] = esc_html__( 'Allowed HTML Tags', 'termageddon-usercentrics' ) . ': ' . PHP_EOL . Termageddon_Usercentrics::get_allowed_html_kses(); 188 189 echo '<textarea readonly rows="17" style="width: 100%;">' . esc_textarea( implode( PHP_EOL . PHP_EOL, $message_list ) ) . '</textarea>'; 189 190 … … 449 450 ); 450 451 452 // Divi Video Overlay Integration Player. 453 add_settings_field( 454 'termageddon_usercentrics_integration_divi_video', 455 __( 'Divi Video Player Integration', 'termageddon-usercentrics' ) . $this->mark_as_beta() . '<br> 456 <em>' . __( 'This resolves and improves the cookie-consent implementation when using an image placeholder overlay for the Divi video embed.', 'termageddon-usercentrics' ) . '</em>', 457 array( &$this, 'divi_video_support' ), // function which prints the field. 458 'termageddon-usercentrics', // page slug. 459 'termageddon_usercentrics_section_settings', // section ID. 460 array( 461 'label_for' => 'termageddon_usercentrics_integration_divi_video', 462 ) 463 ); 464 465 register_setting( 466 'termageddon_usercentrics_settings', // settings group name. 467 'termageddon_usercentrics_integration_divi_video', // option name. 468 '' // sanitization function. 469 ); 470 451 471 // Presto Player. 452 472 add_settings_field( 453 473 'termageddon_usercentrics_integration_presto_player', 454 __( 'Presto Player', 'termageddon-usercentrics' ) . $this->mark_as_beta(),474 __( 'Presto Player', 'termageddon-usercentrics' ), 455 475 array( &$this, 'presto_player_support' ), // function which prints the field. 456 476 'termageddon-usercentrics', // page slug. … … 553 573 add_settings_field( 554 574 'termageddon_usercentrics_show_in_california', 555 __( 'California (CPRA )', 'termageddon-usercentrics' ),575 __( 'California (CPRA or CIPA)', 'termageddon-usercentrics' ), 556 576 array( &$this, 'show_in_california_html' ), // function which prints the field. 557 577 'termageddon-usercentrics', // page slug. … … 764 784 * @return void 765 785 */ 786 public function divi_video_support( array $args ) { 787 $args['label'] = 'enabled'; 788 self::generate_checkbox( 'divi_video', 'integration', $args ); 789 } 790 791 /** 792 * The HTML field for the admin disable checkbox. 793 * 794 * @param array $args The arguments provided by the add_settings_field() method. 795 * @return void 796 */ 766 797 public function presto_player_support( array $args ) { 767 798 $args['label'] = 'enabled'; … … 952 983 953 984 echo '<p>' . 954 esc_html__( 'When enabled, you will be collecting IP addresses for the purposes of determining which cookie consent solution (or lack thereof) to provide to each website visitor (CPRA cookie consent, GDPR cookie consent, UK DPA consent or none), based on their location. A cookie will then be placed on the user\'s browser to cache their location, which helps improve page load speed when the user visits other pages on the website. You should ensure that you are in compliance with all applicable privacy laws prior to using this feature (or any other technologies on your website).', 'termageddon-usercentrics' ) . 955 '</p>'; 985 esc_html__( 'When enabled, you will be collecting IP addresses for the purposes of determining which cookie consent solution (or lack thereof) to provide to each website visitor (CPRA or CIPA cookie consent, GDPR cookie consent, UK DPA consent or none), based on their location. A cookie will then be placed on the user\'s browser to cache their location, which helps improve page load speed when the user visits other pages on the website. You should ensure that you are in compliance with all applicable privacy laws prior to using this feature (or any other technologies on your website).', 'termageddon-usercentrics' ) . 986 '</p>'; 987 988 echo '<p>' . 989 esc_html__( 'Not sure what to select? Review', 'termageddon-usercentrics' ) . ' <a href="https://termageddon.freshdesk.com/support/solutions/articles/66000503289-how-to-activate-a-cookie-policy-and-cookie-consent-solution" target="_blank">' . esc_html__( 'this article', 'termageddon-usercentrics' ) . '</a>' . ' ' . esc_html__( 'along with page 1 of your Privacy Policy questionnaire within ', 'termageddon-usercentrics' ) . '<a href="https://app.termageddon.com/home" target="_blank">app.termageddon.com</a>.' . 990 '</p>'; 956 991 957 992 echo ' -
termageddon-usercentrics/trunk/admin/css/termageddon-usercentrics-admin.css
r2948875 r3049451 164 164 padding: 1px 12px; 165 165 } 166 167 .tu-settings-section label em { 168 font-size: 12px; 169 font-weight: 400; 170 } -
termageddon-usercentrics/trunk/admin/css/termageddon-usercentrics-admin.min.css
r2948875 r3049451 1 textarea.termageddon-embed-code{width:100%;height:250px}.tu-section-settings,.tu-toggle-section{margin-top:2rem}.tu-toggle-section .tu-section-title{font-size:125%;font-weight:800}.tu-toggle-section .tu-section-title-helper{padding:1rem;color:#6c6c6c;font-style:italic}.tu-toggle-section input[readonly]{opacity:50%;pointer-events:none}.tu-toggle-section .form-table{margin-left:2rem}.tu-toggle-section .form-table td,.tu-toggle-section .form-table th{padding:.5rem 0}.tu-toggle-section.slim-section .form-table th{width:125px}.tu-settings-section .form-table th{width:300px}.tu-section-hidden{display:none}.tu-label-warning{background-color:orange;color:#fff;padding:3px 5px;border-radius:5px;font-size:60%}input[type=checkbox].wppd-ui-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;width:auto;height:auto;vertical-align:middle;position:relative;border:0;outline:0;cursor:pointer;margin:0 4px;background:0 0;box-shadow:none}input[type=checkbox].wppd-ui-toggle:focus{box-shadow:none}input[type=checkbox].wppd-ui-toggle:after{content:"";font-size:6px;font-weight:400;line-height:18px;text-indent:-14px;color:#fff;width:36px;height:18px;display:inline-block;background-color:#a7aaad;border-radius:72px;box-shadow:0 0 12px rgb(0 0 0 / 15%) inset}input[type=checkbox].wppd-ui-toggle:before{content:"";width:14px;height:14px;display:block;position:absolute;top:2px;left:2px;margin:0;border-radius:50%;background-color:#fff}input[type=checkbox].wppd-ui-toggle:checked:before{left:20px;margin:0;background-color:#fff}input[type=checkbox].wppd-ui-toggle,input[type=checkbox].wppd-ui-toggle:after,input[type=checkbox].wppd-ui-toggle:before,input[type=checkbox].wppd-ui-toggle:checked:after,input[type=checkbox].wppd-ui-toggle:checked:before{transition:ease .15s}input[type=checkbox].wppd-ui-toggle:checked:after{content:"ON";background-color:#2271b1}input[type=checkbox].wppd-ui-toggle.label-hidden:after{width:48px}input[type=checkbox].wppd-ui-toggle.label-hidden:checked:before{left:32px}input[type=checkbox].wppd-ui-toggle.label-hidden:checked:after{content:"HIDDEN"}input[type=checkbox].wppd-ui-toggle.label-enabled:after{font-size:8px;width:60px;content:"DISABLED";text-indent:15px}input[type=checkbox].wppd-ui-toggle.label-enabled:checked:before{left:44px}input[type=checkbox].wppd-ui-toggle.label-enabled:checked:after{background-color:#1ed14b;content:"ENABLED";text-indent:-14px}.notice-inline{border-top:1px solid #c3c4c7;border-bottom:1px solid #c3c4c7;border-right:1px solid #c3c4c7;border-left-width:4px;border-left-style:solid;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:5px 15px 2px;padding:1px 12px} 1 textarea.termageddon-embed-code{width:100%;height:250px}.tu-section-settings,.tu-toggle-section{margin-top:2rem}.tu-toggle-section .tu-section-title{font-size:125%;font-weight:800}.tu-toggle-section .tu-section-title-helper{padding:1rem;color:#6c6c6c;font-style:italic}.tu-toggle-section input[readonly]{opacity:50%;pointer-events:none}.tu-toggle-section .form-table{margin-left:2rem}.tu-toggle-section .form-table td,.tu-toggle-section .form-table th{padding:.5rem 0}.tu-toggle-section.slim-section .form-table th{width:125px}.tu-settings-section .form-table th{width:300px}.tu-section-hidden{display:none}.tu-label-warning{background-color:orange;color:#fff;padding:3px 5px;border-radius:5px;font-size:60%}input[type=checkbox].wppd-ui-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;width:auto;height:auto;vertical-align:middle;position:relative;border:0;outline:0;cursor:pointer;margin:0 4px;background:0 0;box-shadow:none}input[type=checkbox].wppd-ui-toggle:focus{box-shadow:none}input[type=checkbox].wppd-ui-toggle:after{content:"";font-size:6px;font-weight:400;line-height:18px;text-indent:-14px;color:#fff;width:36px;height:18px;display:inline-block;background-color:#a7aaad;border-radius:72px;box-shadow:0 0 12px rgb(0 0 0 / 15%) inset}input[type=checkbox].wppd-ui-toggle:before{content:"";width:14px;height:14px;display:block;position:absolute;top:2px;left:2px;margin:0;border-radius:50%;background-color:#fff}input[type=checkbox].wppd-ui-toggle:checked:before{left:20px;margin:0;background-color:#fff}input[type=checkbox].wppd-ui-toggle,input[type=checkbox].wppd-ui-toggle:after,input[type=checkbox].wppd-ui-toggle:before,input[type=checkbox].wppd-ui-toggle:checked:after,input[type=checkbox].wppd-ui-toggle:checked:before{transition:ease .15s}input[type=checkbox].wppd-ui-toggle:checked:after{content:"ON";background-color:#2271b1}input[type=checkbox].wppd-ui-toggle.label-hidden:after{width:48px}input[type=checkbox].wppd-ui-toggle.label-hidden:checked:before{left:32px}input[type=checkbox].wppd-ui-toggle.label-hidden:checked:after{content:"HIDDEN"}input[type=checkbox].wppd-ui-toggle.label-enabled:after{font-size:8px;width:60px;content:"DISABLED";text-indent:15px}input[type=checkbox].wppd-ui-toggle.label-enabled:checked:before{left:44px}input[type=checkbox].wppd-ui-toggle.label-enabled:checked:after{background-color:#1ed14b;content:"ENABLED";text-indent:-14px}.notice-inline{border-top:1px solid #c3c4c7;border-bottom:1px solid #c3c4c7;border-right:1px solid #c3c4c7;border-left-width:4px;border-left-style:solid;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:5px 15px 2px;padding:1px 12px}.tu-settings-section label em{font-size:12px;font-weight:400} -
termageddon-usercentrics/trunk/includes/class-termageddon-usercentrics.php
r2976730 r3049451 80 80 $this->define_extra_hooks(); 81 81 } 82 83 /** 84 * The wp_kses() allowed html for any echoed code. 85 * 86 * @since 1.1.1 87 * @access private 88 * @var string $allowed_html The array of allowed html tags passed into the wp_kses function. 89 */ 90 public const ALLOWED_HTML = array( 91 'link' => array( 92 'rel' => array(), 93 'href' => array(), 94 'as' => array(), 95 'value' => array(), 96 ), 97 'script' => array( 98 'type' => array(), 99 'id' => array(), 100 'src' => array(), 101 'data-settings-id' => array(), 102 'data-usercentrics' => array(), 103 'data-version' => array(), 104 'async' => array(), 105 ), 106 'style' => array( 107 'id' => array(), 108 ), 109 ); 82 110 83 111 /** … … 874 902 875 903 return trim( ( ! empty( $city ) ? $city . ', ' : '' ) . ( ! empty( $state ) ? $state . ' ' : '' ) . ( ! empty( $country ) ? $country . '' : '' ) ); 904 } 905 906 907 public static function get_allowed_html_kses(): string { 908 $allowed = wp_kses_allowed_html( self::ALLOWED_HTML ); 909 return json_encode( $allowed, JSON_PRETTY_PRINT ); 876 910 } 877 911 -
termageddon-usercentrics/trunk/languages/termageddon-usercentrics.pot
r2948875 r3049451 4 4 "Project-Id-Version: Termageddon + Usercentrics\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 202 3-08-05 18:28+0000\n"6 "POT-Creation-Date: 2024-03-12 02:56+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 17 17 "X-Domain: termageddon-usercentrics" 18 18 19 #: admin/class-termageddon-usercentrics-admin.php:34 319 #: admin/class-termageddon-usercentrics-admin.php:344 20 20 msgid "Administrators" 21 21 msgstr "" … … 25 25 msgstr "" 26 26 27 #: admin/class-termageddon-usercentrics-admin.php:555 28 msgid "California (CPRA)" 29 msgstr "" 30 31 #: admin/class-termageddon-usercentrics-admin.php:537 27 #: admin/class-termageddon-usercentrics-admin.php:188 28 msgid "Allowed HTML Tags" 29 msgstr "" 30 31 #: admin/class-termageddon-usercentrics-admin.php:989 32 msgid "along with page 1 of your Privacy Policy questionnaire within " 33 msgstr "" 34 35 #: admin/class-termageddon-usercentrics-admin.php:575 36 msgid "California (CPRA or CIPA)" 37 msgstr "" 38 39 #: admin/class-termageddon-usercentrics-admin.php:557 32 40 msgid "Canada (PIPEDA)" 33 41 msgstr "" 34 42 35 43 #. section ID. 36 #: admin/class-termageddon-usercentrics-admin.php:6 4744 #: admin/class-termageddon-usercentrics-admin.php:667 37 45 msgid "Control Panel" 38 46 msgstr "" 39 47 40 #: admin/class-termageddon-usercentrics-admin.php:9 1848 #: admin/class-termageddon-usercentrics-admin.php:949 41 49 msgid "Cookie Policy and Consent Solution" 42 50 msgstr "" … … 46 54 msgstr "" 47 55 56 #: admin/class-termageddon-usercentrics-admin.php:455 57 msgid "Divi Video Player Integration" 58 msgstr "" 59 48 60 #. Description of the plugin 49 61 msgid "" … … 52 64 msgstr "" 53 65 54 #: admin/class-termageddon-usercentrics-admin.php:36 166 #: admin/class-termageddon-usercentrics-admin.php:362 55 67 msgid "Editors" 56 68 msgstr "" 57 69 58 70 #: admin/class-termageddon-usercentrics-admin.php:170 59 #: admin/class-termageddon-usercentrics-admin.php:30 671 #: admin/class-termageddon-usercentrics-admin.php:307 60 72 msgid "Embed Code" 61 73 msgstr "" 62 74 63 #: admin/class-termageddon-usercentrics-admin.php:6 0075 #: admin/class-termageddon-usercentrics-admin.php:620 64 76 msgid "Enable location logging" 65 77 msgstr "" 66 78 67 #: admin/class-termageddon-usercentrics-admin.php:6 2079 #: admin/class-termageddon-usercentrics-admin.php:640 68 80 msgid "Enable page caching support via AJAX" 69 81 msgstr "" 70 82 71 #: admin/class-termageddon-usercentrics-admin.php:6 6183 #: admin/class-termageddon-usercentrics-admin.php:681 72 84 msgid "Error Count" 73 85 msgstr "" 74 86 75 #: admin/class-termageddon-usercentrics-admin.php:19 187 #: admin/class-termageddon-usercentrics-admin.php:192 76 88 msgid "Error Information" 77 89 msgstr "" 78 90 79 #: admin/class-termageddon-usercentrics-admin.php:6 7991 #: admin/class-termageddon-usercentrics-admin.php:699 80 92 msgid "Error List" 81 93 msgstr "" 82 94 83 #: admin/class-termageddon-usercentrics-admin.php:5 0195 #: admin/class-termageddon-usercentrics-admin.php:521 84 96 msgid "European Union & European Economic Area (GDPR)" 85 97 msgstr "" 86 98 87 #: includes/class-termageddon-usercentrics.php: 19899 #: includes/class-termageddon-usercentrics.php:225 88 100 msgid "Every Month" 89 101 msgstr "" 90 102 91 #: admin/class-termageddon-usercentrics-admin.php:43 2103 #: admin/class-termageddon-usercentrics-admin.php:433 92 104 msgid "" 93 105 "For some theme builders including Divi, the footer (bottom bar) does not " … … 99 111 #. section ID. 100 112 #: admin/class-termageddon-usercentrics-admin.php:172 101 #: admin/class-termageddon-usercentrics-admin.php: 481113 #: admin/class-termageddon-usercentrics-admin.php:501 102 114 msgid "Geo-Location" 103 115 msgstr "" 104 116 105 117 #: admin/class-termageddon-usercentrics-admin.php:143 106 #: admin/class-termageddon-usercentrics-admin.php:9 63118 #: admin/class-termageddon-usercentrics-admin.php:998 107 119 msgid "" 108 120 "Geo-Location is enabled, but no locations have been toggled on. This means " … … 134 146 msgstr "" 135 147 136 #: admin/class-termageddon-usercentrics-admin.php:40 7148 #: admin/class-termageddon-usercentrics-admin.php:408 137 149 msgid "Hide Privacy Settings Link when cookie consent tool is disabled" 138 150 msgstr "" … … 142 154 msgstr "" 143 155 144 #: admin/class-termageddon-usercentrics-admin.php:9 36156 #: admin/class-termageddon-usercentrics-admin.php:967 145 157 msgid "If you are using the Divi theme" 146 158 msgstr "" 147 159 148 #: admin/class-termageddon-usercentrics-admin.php:9 35160 #: admin/class-termageddon-usercentrics-admin.php:966 149 161 msgid "" 150 162 "If you would like to remove Usercentrics for logged in users such as admins, " … … 160 172 msgstr "" 161 173 162 #: admin/class-termageddon-usercentrics-admin.php:3 79174 #: admin/class-termageddon-usercentrics-admin.php:380 163 175 msgid "Logged-in Users" 176 msgstr "" 177 178 #: admin/class-termageddon-usercentrics-admin.php:989 179 msgid "Not sure what to select? Review" 164 180 msgstr "" 165 181 … … 170 186 msgstr "" 171 187 172 #: admin/class-termageddon-usercentrics-admin.php:4 54188 #: admin/class-termageddon-usercentrics-admin.php:474 173 189 msgid "Presto Player" 174 190 msgstr "" 175 191 176 #: admin/class-termageddon-usercentrics-admin.php:42 6192 #: admin/class-termageddon-usercentrics-admin.php:427 177 193 msgid "Privacy Settings Link - Alternative Implementation" 178 194 msgstr "" 179 195 180 196 #. section ID. 181 #: includes/class-termageddon-usercentrics.php: 378197 #: includes/class-termageddon-usercentrics.php:405 182 198 #: admin/class-termageddon-usercentrics-admin.php:171 183 #: admin/class-termageddon-usercentrics-admin.php:33 4199 #: admin/class-termageddon-usercentrics-admin.php:335 184 200 msgid "Settings" 185 201 msgstr "" … … 194 210 msgstr "" 195 211 212 #: admin/class-termageddon-usercentrics-admin.php:989 213 msgid "this article" 214 msgstr "" 215 196 216 #: admin/class-termageddon-usercentrics-admin.php:178 197 217 msgid "" … … 200 220 msgstr "" 201 221 202 #: admin/class-termageddon-usercentrics-admin.php:975 222 #: admin/class-termageddon-usercentrics-admin.php:456 223 msgid "" 224 "This resolves and improves the cookie-consent implementation when using an " 225 "image placeholder overlay for the Divi video embed." 226 msgstr "" 227 228 #: admin/class-termageddon-usercentrics-admin.php:1010 203 229 msgid "" 204 230 "To reset any of the backend variables, update the values below and save your " … … 206 232 msgstr "" 207 233 208 #: admin/class-termageddon-usercentrics-admin.php:5 19234 #: admin/class-termageddon-usercentrics-admin.php:539 209 235 msgid "United Kingdom (UK DPA)" 210 236 msgstr "" 211 237 212 #: admin/class-termageddon-usercentrics-admin.php:9 17238 #: admin/class-termageddon-usercentrics-admin.php:948 213 239 msgid "Upon generating your " 214 240 msgstr "" 215 241 216 #: admin/class-termageddon-usercentrics-admin.php:9 03242 #: admin/class-termageddon-usercentrics-admin.php:934 217 243 msgid "Upon saving, all previous errors in the log will be deleted." 218 244 msgstr "" 219 245 220 #: admin/class-termageddon-usercentrics-admin.php:5 73246 #: admin/class-termageddon-usercentrics-admin.php:593 221 247 msgid "Virginia (VCDPA)" 222 248 msgstr "" … … 229 255 msgstr "" 230 256 231 #: admin/class-termageddon-usercentrics-admin.php:41 3257 #: admin/class-termageddon-usercentrics-admin.php:414 232 258 msgid "" 233 259 "When enabled, the Privacy Settings link will be hidden from certain users, " … … 242 268 msgstr "" 243 269 244 #: admin/class-termageddon-usercentrics-admin.php:6 06270 #: admin/class-termageddon-usercentrics-admin.php:626 245 271 msgid "" 246 272 "When enabled, the visitor's location can be viewed in the browser console, " … … 248 274 msgstr "" 249 275 250 #: admin/class-termageddon-usercentrics-admin.php:6 26276 #: admin/class-termageddon-usercentrics-admin.php:646 251 277 msgid "" 252 278 "When enabled, the visitor's location is checked via javascript to allow " … … 254 280 msgstr "" 255 281 256 #: admin/class-termageddon-usercentrics-admin.php:9 54282 #: admin/class-termageddon-usercentrics-admin.php:985 257 283 msgid "" 258 284 "When enabled, you will be collecting IP addresses for the purposes of " 259 285 "determining which cookie consent solution (or lack thereof) to provide to " 260 "each website visitor (CPRA cookie consent, GDPR cookie consent, UK DPA"261 " consent or none), based on their location. A cookie will then be placed on"262 " the user's browser to cache their location, which helps improve page load "286 "each website visitor (CPRA or CIPA cookie consent, GDPR cookie consent, UK " 287 "DPA consent or none), based on their location. A cookie will then be placed " 288 "on the user's browser to cache their location, which helps improve page load " 263 289 "speed when the user visits other pages on the website. You should ensure " 264 290 "that you are in compliance with all applicable privacy laws prior to using " … … 270 296 msgstr "" 271 297 272 #: admin/class-termageddon-usercentrics-admin.php:9 19298 #: admin/class-termageddon-usercentrics-admin.php:950 273 299 msgid "" 274 300 "within your Termageddon account, you will be brought to the \"View embed " … … 277 303 msgstr "" 278 304 279 #: admin/class-termageddon-usercentrics-admin.php:9 37305 #: admin/class-termageddon-usercentrics-admin.php:968 280 306 msgid "" 281 307 "you will need to enable at least one of the settings below to ensure logged " -
termageddon-usercentrics/trunk/public/class-termageddon-usercentrics-public.php
r3011051 r3049451 39 39 */ 40 40 private $version; 41 42 /**43 * The wp_kses() allowed html for any echoed code.44 *45 * @since 1.1.146 * @access private47 * @var string $allowed_html The array of allowed html tags passed into the wp_kses function.48 */49 private const ALLOWED_HTML = array(50 'link' => array(51 'rel' => array(),52 'href' => array(),53 'as' => array(),54 'value' => array(),55 ),56 'script' => array(57 'type' => array(),58 'id' => array(),59 'src' => array(),60 'data-settings-id' => array(),61 'data-usercentrics' => array(),62 'data-version' => array(),63 'async' => array(),64 ),65 'style' => array(66 'id' => array(),67 ),68 );69 41 70 42 /** … … 139 111 // Output to HTML HEAD. 140 112 echo '<!-- TERMAGEDDON + USERCENTRICS (DISABLED) -->'; 141 echo wp_kses( $script, self::ALLOWED_HTML );113 echo wp_kses( $script, Termageddon_Usercentrics::ALLOWED_HTML ); 142 114 echo '<!-- END TERMAGEDDON + USERCENTRICS -->'; 143 115 } … … 226 198 } 227 199 200 // Divi Video Player Integration Javascript. 201 if ( Termageddon_Usercentrics::is_integration_enabled( 'divi_video' ) ) { 202 $script .= '<script type="application/javascript" id="uc-integration-divi-video"> 203 window.addEventListener(\'load\', function () { 204 jQuery(\'div.et_pb_video_overlay_hover\').on(\'click\', function(e) { 205 jQuery(this).closest(\'div.et_pb_video_overlay\').hide() 206 }).find(\'a.et_pb_video_play\').attr(\'href\', \'javascript:void(0)\') 207 }) 208 </script>'; 209 } 210 228 211 // Presto Player Integration Javascript. 229 212 if ( Termageddon_Usercentrics::is_integration_enabled( 'presto_player' ) ) { … … 241 224 // Output to HTML HEAD. 242 225 echo '<!-- TERMAGEDDON + USERCENTRICS -->'; 243 echo wp_kses( $script, self::ALLOWED_HTML );226 echo wp_kses( $script, Termageddon_Usercentrics::ALLOWED_HTML ); 244 227 echo '<!-- END TERMAGEDDON + USERCENTRICS -->'; 245 228 -
termageddon-usercentrics/trunk/termageddon-usercentrics.code-workspace
r2792169 r3049451 6 6 { 7 7 "path": "../../uploads" 8 }, 9 { 10 "path": "../../../../svn/termageddon-usercentrics" 8 11 } 9 12 ], -
termageddon-usercentrics/trunk/termageddon-usercentrics.php
r3011051 r3049451 15 15 * Plugin Name: Termageddon + Usercentrics 16 16 * Description: Easily integrate the Usercentrics consent solution into your website while controlling visibility for logged in users and admins. 17 * Version: 1.3. 717 * Version: 1.3.8 18 18 * Author: Termageddon 19 19 * Author URI: https://termageddon.com … … 34 34 * Rename this for your plugin and update it as you release new versions. 35 35 */ 36 define( 'TERMAGEDDON_COOKIE_VERSION', '1.3. 7' );36 define( 'TERMAGEDDON_COOKIE_VERSION', '1.3.8' ); 37 37 38 38 define( 'TERMAGEDDON_COOKIE_PLUGIN_PATH', dirname( __FILE__ ) );// No trailing slash.
Note: See TracChangeset
for help on using the changeset viewer.