Changeset 2605301 for shapepress-dsgvo
- Timestamp:
- 09/27/2021 06:27:15 AM (5 years ago)
- Location:
- shapepress-dsgvo/trunk
- Files:
-
- 2 added
- 1 deleted
- 4 edited
-
includes/class-sp-dsgvo-integration-api-base.php (modified) (4 diffs)
-
includes/html (deleted)
-
includes/integrations/tagmanager/googletagmanager/class-sp-dsgvo-google-tagmanager-api.php (modified) (2 diffs)
-
includes/integrations/tagmanager/matomotagmanager/class-sp-dsgvo-matomo-tagmanager-api.php (modified) (1 diff)
-
public/images/Datenschutzvereinbarungen-Einstellungen.png (added)
-
public/images/banner-1544x500.png (added)
-
templates/de_DE/emails/legal-texts-update.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shapepress-dsgvo/trunk/includes/class-sp-dsgvo-integration-api-base.php
r2604177 r2605301 190 190 } 191 191 192 function getAllowedHtmlForScriptsForKses() { 193 return array_merge( 194 wp_kses_allowed_html( 'post' ), 195 array( 196 'script' => array( 197 'type' => array(), 198 'src' => array(), 199 'charset' => array(), 200 'async' => array() 201 ), 202 'noscript' => array(), 203 'style' => array( 204 'type' => array() 205 ), 206 'iframe' => array( 207 'src' => array(), 208 'height' => array(), 209 'width' => array(), 210 'frameborder' => array(), 211 'allowfullscreen' => array() 212 ) 213 ) 214 ); 215 216 } 217 192 218 public final function checkIfIntegrationIsAllowed($integrationSlug) 193 219 { … … 277 303 278 304 if ($integrationAllowed) { 279 echo $result; // we cant esc here because the original script/code which the user enters has to be written. otherwise trackings scripts and chatbots,. would not work305 echo wp_kses($result, $this->getAllowedHtmlForScriptsForKses()); 280 306 } 281 307 return; … … 301 327 302 328 if ($integrationAllowed) { 303 echo $result; // we cant esc here because the original script/code which the user enters has to be written. otherwise trackings scripts and chatbots,. would not work 329 echo wp_kses($result, $this->getAllowedHtmlForScriptsForKses()); 304 330 } 305 331 return; … … 325 351 326 352 if ($integrationAllowed) { 327 echo $result; // we cant esc here because the original script/code which the user enters has to be written. otherwise trackings scripts and chatbots,. would not work 353 echo wp_kses($result, $this->getAllowedHtmlForScriptsForKses()); 328 354 } 329 355 return; -
shapepress-dsgvo/trunk/includes/integrations/tagmanager/googletagmanager/class-sp-dsgvo-google-tagmanager-api.php
r2604177 r2605301 48 48 $result = "<!-- id='sp-dsgvo-script-container-$this->slug' class='sp-dsgvo-script-container'-->$jsCode<!-- end sp-dsgvo-script-container-$this->slug -->"; 49 49 if ($integrationAllowed) { 50 echo $result; // we cant esc here because the original script/code which the user enters has to be written. otherwise trackings scripts and chatbots,. would not work50 echo wp_kses($result, $this->getAllowedHtmlForScriptsForKses()); 51 51 } 52 52 return; … … 73 73 74 74 if ($integrationAllowed) { 75 echo $result; // we cant esc here because the original script/code which the user enters has to be written. otherwise trackings scripts and chatbots,. would not work 75 echo wp_kses($result, $this->getAllowedHtmlForScriptsForKses()); 76 76 } 77 77 return; -
shapepress-dsgvo/trunk/includes/integrations/tagmanager/matomotagmanager/class-sp-dsgvo-matomo-tagmanager-api.php
r2604177 r2605301 48 48 $result = "<!-- id='sp-dsgvo-script-container-$this->slug' class='sp-dsgvo-script-container'-->$jsCode<!-- end sp-dsgvo-script-container-$this->slug -->"; 49 49 if ($integrationAllowed) { 50 echo $result; // we cant esc here because the original script/code which the user enters has to be written. otherwise trackings scripts and chatbots,. would not work 50 echo wp_kses($result, $this->getAllowedHtmlForScriptsForKses()); 51 51 } 52 52 return; -
shapepress-dsgvo/trunk/templates/de_DE/emails/legal-texts-update.php
r2247191 r2605301 244 244 <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" style="margin: 0px auto; min-width: 100%;" role="presentation"> 245 245 <tr> 246 <td align="center" valign="top" class="image-full-width" width="560" style="width: 560px; line-height: 0px;"> <a href="https://legalweb.io" style="font-size: inherit; border-style: none; text-decoration: none !important;" border="0"><img src=" https://legalweb.io/wp-content/uploads/2019/11/banner-1544x500.png" width="560" style="height: auto; display: block !important; width: 100%; max-width: 560px; min-width: 100%;" alt="legal web GmbH" border="0" hspace="0" vspace="0" height="auto"></a></td>246 <td align="center" valign="top" class="image-full-width" width="560" style="width: 560px; line-height: 0px;"> <a href="https://legalweb.io" style="font-size: inherit; border-style: none; text-decoration: none !important;" border="0"><img src="<?php echo esc_attr(SPDSGVO::pluginURI('images\banner-1544x500.png')); ?>" width="560" style="height: auto; display: block !important; width: 100%; max-width: 560px; min-width: 100%;" alt="legal web GmbH" border="0" hspace="0" vspace="0" height="auto"></a></td> 247 247 </tr><!-- start space --> 248 248 <tr> … … 308 308 <table width="265" dir="ltr" align="right" border="0" cellpadding="0" cellspacing="0" class="full-width right" style="max-width: 265px; min-width: 100%;" role="presentation"> 309 309 <tr> 310 <td align="center" valign="top" class="image-full-width" width="265" style="width: 265px; line-height: 0px;"> <a href="#" style="text-decoration: none !important; font-size: inherit; border-style: none;" border="0"> <img src=" https://legalweb.io/wp-content/uploads/2020/02/Datenschutzvereinbarungen-Einstellungen.png" width="265" style="max-width: 265px; height: auto; display: block !important; min-width: 100%;" vspace="0" hspace="0" alt="image2" height="auto"></a> </td>310 <td align="center" valign="top" class="image-full-width" width="265" style="width: 265px; line-height: 0px;"> <a href="#" style="text-decoration: none !important; font-size: inherit; border-style: none;" border="0"> <img src="<?php echo esc_attr(SPDSGVO::pluginURI('images\Datenschutzvereinbarungen-Einstellungen.png')); ?>" width="265" style="max-width: 265px; height: auto; display: block !important; min-width: 100%;" vspace="0" hspace="0" alt="image2" height="auto"></a> </td> 311 311 </tr> 312 312 </table>
Note: See TracChangeset
for help on using the changeset viewer.