Changeset 2604177 for shapepress-dsgvo
- Timestamp:
- 09/24/2021 09:27:53 AM (5 years ago)
- Location:
- shapepress-dsgvo/trunk
- Files:
-
- 57 edited
-
admin/tabs/v3/popup-notice/class-sp-dsgvo-cookie-notice-action.php (modified) (1 diff)
-
includes/class-sp-dsgvo-embedding-api-base.php (modified) (2 diffs)
-
includes/class-sp-dsgvo-integration-api-base.php (modified) (6 diffs)
-
includes/class-sp-dsgvo-integration.php (modified) (1 diff)
-
includes/integrations/embeddings/facebook-feed/class-sp-dsgvo-facebook-feed-integration.php (modified) (1 diff)
-
includes/integrations/embeddings/facebook-feed/page.php (modified) (1 diff)
-
includes/integrations/embeddings/gmaps/class-sp-dsgvo-gmaps-api.php (modified) (2 diffs)
-
includes/integrations/embeddings/gmaps/class-sp-dsgvo-gmaps-integration.php (modified) (1 diff)
-
includes/integrations/embeddings/gmaps/page.php (modified) (1 diff)
-
includes/integrations/embeddings/instagram/class-sp-dsgvo-instagram-integration.php (modified) (1 diff)
-
includes/integrations/embeddings/instagram/page.php (modified) (1 diff)
-
includes/integrations/embeddings/openstreetmap/class-sp-dsgvo-openstreetmap-api.php (modified) (2 diffs)
-
includes/integrations/embeddings/openstreetmap/class-sp-dsgvo-openstreetmap-integration.php (modified) (1 diff)
-
includes/integrations/embeddings/openstreetmap/page.php (modified) (1 diff)
-
includes/integrations/embeddings/soundcloud/class-sp-dsgvo-soundcloud-integration.php (modified) (1 diff)
-
includes/integrations/embeddings/soundcloud/page.php (modified) (1 diff)
-
includes/integrations/embeddings/twitter/class-sp-dsgvo-twitter-integration.php (modified) (1 diff)
-
includes/integrations/embeddings/twitter/page.php (modified) (1 diff)
-
includes/integrations/embeddings/vimeo/class-sp-dsgvo-vimeo-api.php (modified) (2 diffs)
-
includes/integrations/embeddings/vimeo/class-sp-dsgvo-vimeo-integration.php (modified) (1 diff)
-
includes/integrations/embeddings/vimeo/page.php (modified) (1 diff)
-
includes/integrations/embeddings/youtube/class-sp-dsgvo-youtube-api.php (modified) (2 diffs)
-
includes/integrations/embeddings/youtube/class-sp-dsgvo-youtube-integration.php (modified) (1 diff)
-
includes/integrations/embeddings/youtube/page.php (modified) (1 diff)
-
includes/integrations/mailchimp/MailchimpIntegration.php (modified) (1 diff)
-
includes/integrations/statistics/clicky/class-sp-dsgvo-clicky-integration.php (modified) (2 diffs)
-
includes/integrations/statistics/clicky/page.php (modified) (1 diff)
-
includes/integrations/statistics/etracker/class-sp-dsgvo-etracker-integration.php (modified) (2 diffs)
-
includes/integrations/statistics/etracker/page.php (modified) (1 diff)
-
includes/integrations/statistics/googleanalytics/class-sp-dsgvo-google-analytics-integration.php (modified) (1 diff)
-
includes/integrations/statistics/googleanalytics/page.php (modified) (1 diff)
-
includes/integrations/statistics/hotjar/class-sp-dsgvo-hotjar-integration.php (modified) (2 diffs)
-
includes/integrations/statistics/hotjar/page.php (modified) (1 diff)
-
includes/integrations/statistics/matomo/class-sp-dsgvo-matomo-integration.php (modified) (1 diff)
-
includes/integrations/statistics/matomo/page.php (modified) (1 diff)
-
includes/integrations/statistics/mautic/class-sp-dsgvo-mautic-integration.php (modified) (1 diff)
-
includes/integrations/statistics/mautic/page.php (modified) (1 diff)
-
includes/integrations/statistics/piwik/class-sp-dsgvo-piwik-integration.php (modified) (2 diffs)
-
includes/integrations/statistics/piwik/page.php (modified) (1 diff)
-
includes/integrations/statistics/wpstatistics/class-sp-dsgvo-wpstatistics-integration.php (modified) (1 diff)
-
includes/integrations/statistics/wpstatistics/page.php (modified) (1 diff)
-
includes/integrations/tagmanager/googletagmanager/class-sp-dsgvo-google-tagmanager-api.php (modified) (2 diffs)
-
includes/integrations/tagmanager/googletagmanager/class-sp-dsgvo-google-tagmanager-integration.php (modified) (2 diffs)
-
includes/integrations/tagmanager/googletagmanager/page.php (modified) (1 diff)
-
includes/integrations/tagmanager/matomotagmanager/class-sp-dsgvo-matomo-tagmanager-api.php (modified) (1 diff)
-
includes/integrations/tagmanager/matomotagmanager/class-sp-dsgvo-matomo-tagmanager-integration.php (modified) (2 diffs)
-
includes/integrations/tagmanager/matomotagmanager/page.php (modified) (1 diff)
-
includes/integrations/targeting/bingadsuet/class-sp-dsgvo-bing-ads-uet-integration.php (modified) (2 diffs)
-
includes/integrations/targeting/bingadsuet/page.php (modified) (1 diff)
-
includes/integrations/targeting/criteo/class-sp-dsgvo-criteo-integration.php (modified) (2 diffs)
-
includes/integrations/targeting/criteo/page.php (modified) (1 diff)
-
includes/integrations/targeting/fbpixel/class-sp-dsgvo-fb-pixel-integration.php (modified) (2 diffs)
-
includes/integrations/targeting/fbpixel/page.php (modified) (1 diff)
-
includes/integrations/targeting/gadsense/class-sp-dsgvo-gadsense-integration.php (modified) (2 diffs)
-
includes/integrations/targeting/gadsense/page.php (modified) (1 diff)
-
includes/integrations/targeting/linkedinpixel/class-sp-dsgvo-linkedin-pixel-integration.php (modified) (2 diffs)
-
includes/integrations/targeting/linkedinpixel/page.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shapepress-dsgvo/trunk/admin/tabs/v3/popup-notice/class-sp-dsgvo-cookie-notice-action.php
r2604113 r2604177 13 13 SPDSGVOSettings::set('show_notice_on_close', $this->get('show_notice_on_close', '0')); 14 14 SPDSGVOSettings::set('force_cookie_info', $this->get('force_cookie_info', '0')); 15 SPDSGVOSettings::set('run_necessary_automatically', $this->get('run_necessary_automatically', '0')); 15 16 SPDSGVOSettings::set('mandatory_integrations_editable', $this->get('mandatory_integrations_editable', '0')); 16 17 SPDSGVOSettings::set('cookie_notice_text', $this->get('cookie_notice_text', '')); -
shapepress-dsgvo/trunk/includes/class-sp-dsgvo-embedding-api-base.php
r2602888 r2604177 135 135 { 136 136 $settings = array(); 137 $settings[' enabled'] = '0';137 $settings['isEnabled'] = '0'; 138 138 $settings['propertyId'] = ''; 139 139 $settings['cookieNames'] = $this->cookieNames; … … 165 165 $settings = $this->getSettings(); 166 166 167 return $settings[' enabled'] == '1';167 return $settings['isEnabled'] == '1'; 168 168 } 169 169 -
shapepress-dsgvo/trunk/includes/class-sp-dsgvo-integration-api-base.php
r2604113 r2604177 158 158 { 159 159 $settings = array(); 160 $settings[' enabled'] = '0';160 $settings['isEnabled'] = '0'; 161 161 $settings['propertyId'] = ''; 162 162 $settings['useOwnCode'] = $ownCodeEnabledByDefault ? '1' : '0'; … … 185 185 } 186 186 187 public function validateJsCode($code){ 188 189 return $code; 190 } 191 187 192 public final function checkIfIntegrationIsAllowed($integrationSlug) 188 193 { … … 204 209 $settings = $this->getSettings(); 205 210 206 return $settings[' enabled'] == '1';211 return $settings['isEnabled'] == '1'; 207 212 } 208 213 … … 260 265 $settings = $this->getSettings(); 261 266 262 if ($settings[' enabled'] == '0') return;267 if ($settings['isEnabled'] == '0') return; 263 268 $propertyId = $settings['propertyId']; 264 269 … … 283 288 $settings = $this->getSettings(); 284 289 285 if ($settings[' enabled'] == '0') return;290 if ($settings['isEnabled'] == '0') return; 286 291 $propertyId = $settings['propertyId']; 287 292 … … 307 312 $settings = $this->getSettings(); 308 313 309 if ($settings[' enabled'] == '0') return;314 if ($settings['isEnabled'] == '0') return; 310 315 $propertyId = $settings['propertyId']; 311 316 -
shapepress-dsgvo/trunk/includes/class-sp-dsgvo-integration.php
r2602888 r2604177 109 109 die(); 110 110 } 111 111 112 public function requireAdmin(){ 113 if(!current_user_can('administrator')){ 114 echo '0'; 115 die; 116 } 117 } 118 119 public function checkCSRF(){ 120 121 $actionName = self::action().'-nonce'; 122 $submittedNonce = $_REQUEST['_wpnonce']; 123 124 if ( wp_verify_nonce( $submittedNonce, $actionName ) ) { 125 return TRUE; 126 } else 127 { 128 echo 'CSRF ERROR: Nonce not valid'; 129 die; 130 //return FALSE; 131 } 132 133 } 112 134 } -
shapepress-dsgvo/trunk/includes/integrations/embeddings/facebook-feed/class-sp-dsgvo-facebook-feed-integration.php
r2247191 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->requireAdmin(); 28 27 29 $settings = $this->apiInstance->getSettings(); 28 30 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');31 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 32 31 33 -
shapepress-dsgvo/trunk/includes/integrations/embeddings/facebook-feed/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 23 23 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/embeddings/gmaps/class-sp-dsgvo-gmaps-api.php
r2247191 r2604177 33 33 34 34 $legacySettings = SPDSGVOSettings::get('page_basics_embeddings'); 35 if ($settings[' enabled'] == '0' && empty($legacySettings) == false && in_array('google-maps', $legacySettings))35 if ($settings['isEnabled'] == '0' && empty($legacySettings) == false && in_array('google-maps', $legacySettings)) 36 36 { 37 $settings[' enabled'] = '1';37 $settings['isEnabled'] = '1'; 38 38 } 39 39 40 return $settings[' enabled'] == '1';40 return $settings['isEnabled'] == '1'; 41 41 } 42 42 … … 46 46 47 47 $legacySettings = SPDSGVOSettings::get('page_basics_embeddings'); 48 if ($settings[' enabled'] == '0' && empty($legacySettings) == false && in_array('google-maps', $legacySettings))48 if ($settings['isEnabled'] == '0' && empty($legacySettings) == false && in_array('google-maps', $legacySettings)) 49 49 { 50 $settings[' enabled'] = '1';50 $settings['isEnabled'] = '1'; 51 51 } 52 52 -
shapepress-dsgvo/trunk/includes/integrations/embeddings/gmaps/class-sp-dsgvo-gmaps-integration.php
r2469299 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->requireAdmin(); 28 27 29 $settings = $this->apiInstance->getSettings(); 28 30 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');31 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 32 31 33 // delete old setting from times before we had embeddings -
shapepress-dsgvo/trunk/includes/integrations/embeddings/gmaps/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 23 23 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/embeddings/instagram/class-sp-dsgvo-instagram-integration.php
r2247191 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->requireAdmin(); 28 27 29 $settings = $this->apiInstance->getSettings(); 28 30 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');31 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 32 31 33 -
shapepress-dsgvo/trunk/includes/integrations/embeddings/instagram/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 23 23 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/embeddings/openstreetmap/class-sp-dsgvo-openstreetmap-api.php
r2280819 r2604177 32 32 33 33 $legacySettings = SPDSGVOSettings::get('page_basics_embeddings'); 34 if ($settings[' enabled'] == '0' && empty($legacySettings) == false && in_array('open-street-map', $legacySettings))34 if ($settings['isEnabled'] == '0' && empty($legacySettings) == false && in_array('open-street-map', $legacySettings)) 35 35 { 36 $settings[' enabled'] = '1';36 $settings['isEnabled'] = '1'; 37 37 } 38 38 39 return $settings[' enabled'] == '1';39 return $settings['isEnabled'] == '1'; 40 40 } 41 41 … … 45 45 46 46 $legacySettings = SPDSGVOSettings::get('page_basics_embeddings'); 47 if ($settings[' enabled'] == '0' && empty($legacySettings) == false && in_array('open-street-map', $legacySettings))47 if ($settings['isEnabled'] == '0' && empty($legacySettings) == false && in_array('open-street-map', $legacySettings)) 48 48 { 49 $settings[' enabled'] = '1';49 $settings['isEnabled'] = '1'; 50 50 } 51 51 -
shapepress-dsgvo/trunk/includes/integrations/embeddings/openstreetmap/class-sp-dsgvo-openstreetmap-integration.php
r2469299 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->requireAdmin(); 28 27 29 $settings = $this->apiInstance->getSettings(); 28 30 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');31 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 32 31 33 // delete old setting from times before we had embeddings -
shapepress-dsgvo/trunk/includes/integrations/embeddings/openstreetmap/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 23 23 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/embeddings/soundcloud/class-sp-dsgvo-soundcloud-integration.php
r2247191 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->requireAdmin(); 27 28 $settings = $this->apiInstance->getSettings(); 28 29 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');30 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 31 31 32 -
shapepress-dsgvo/trunk/includes/integrations/embeddings/soundcloud/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 23 23 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/embeddings/twitter/class-sp-dsgvo-twitter-integration.php
r2247191 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->requireAdmin(); 28 27 29 $settings = $this->apiInstance->getSettings(); 28 30 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');31 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 32 31 33 -
shapepress-dsgvo/trunk/includes/integrations/embeddings/twitter/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 23 23 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/embeddings/vimeo/class-sp-dsgvo-vimeo-api.php
r2247191 r2604177 32 32 33 33 $legacySettings = SPDSGVOSettings::get('page_basics_embeddings'); 34 if ($settings[' enabled'] == '0' && empty($legacySettings) == false && in_array('vimeo', $legacySettings))34 if ($settings['isEnabled'] == '0' && empty($legacySettings) == false && in_array('vimeo', $legacySettings)) 35 35 { 36 $settings[' enabled'] = '1';36 $settings['isEnabled'] = '1'; 37 37 } 38 38 39 return $settings[' enabled'] == '1';39 return $settings['isEnabled'] == '1'; 40 40 } 41 41 … … 45 45 46 46 $legacySettings = SPDSGVOSettings::get('page_basics_embeddings'); 47 if ($settings[' enabled'] == '0' && empty($legacySettings) == false && in_array('vimeo', $legacySettings))47 if ($settings['isEnabled'] == '0' && empty($legacySettings) == false && in_array('vimeo', $legacySettings)) 48 48 { 49 $settings[' enabled'] = '1';49 $settings['isEnabled'] = '1'; 50 50 } 51 51 -
shapepress-dsgvo/trunk/includes/integrations/embeddings/vimeo/class-sp-dsgvo-vimeo-integration.php
r2469299 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->requireAdmin(); 28 27 29 $settings = $this->apiInstance->getSettings(); 28 30 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');31 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 32 31 33 // delete old setting from times before we had embeddings -
shapepress-dsgvo/trunk/includes/integrations/embeddings/vimeo/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 23 23 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/embeddings/youtube/class-sp-dsgvo-youtube-api.php
r2259265 r2604177 32 32 33 33 $legacySettings = SPDSGVOSettings::get('page_basics_embeddings'); 34 if ($settings[' enabled'] == '0' && empty($legacySettings) == false && in_array('youtube', $legacySettings))34 if ($settings['isEnabled'] == '0' && empty($legacySettings) == false && in_array('youtube', $legacySettings)) 35 35 { 36 $settings[' enabled'] = '1';36 $settings['isEnabled'] = '1'; 37 37 } 38 38 39 return $settings[' enabled'] == '1';39 return $settings['isEnabled'] == '1'; 40 40 } 41 41 … … 45 45 46 46 $legacySettings = SPDSGVOSettings::get('page_basics_embeddings'); 47 if ($settings[' enabled'] == '0' && empty($legacySettings) == false && in_array('youtube', $legacySettings))47 if ($settings['isEnabled'] == '0' && empty($legacySettings) == false && in_array('youtube', $legacySettings)) 48 48 { 49 $settings[' enabled'] = '1';49 $settings['isEnabled'] = '1'; 50 50 } 51 51 -
shapepress-dsgvo/trunk/includes/integrations/embeddings/youtube/class-sp-dsgvo-youtube-integration.php
r2469299 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->requireAdmin(); 28 27 29 $settings = $this->apiInstance->getSettings(); 28 30 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');31 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 32 31 33 // delete old setting from times before we had embeddings -
shapepress-dsgvo/trunk/includes/integrations/embeddings/youtube/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 23 23 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/mailchimp/MailchimpIntegration.php
r2198743 r2604177 20 20 21 21 public function viewSubmit(){ 22 23 $this->requireAdmin(); 22 24 23 25 if($this->has('mailchimp_api_token')){ -
shapepress-dsgvo/trunk/includes/integrations/statistics/clicky/class-sp-dsgvo-clicky-integration.php
r2602888 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->checkCSRF(); 28 $this->requireAdmin(); 29 27 30 $hasValidLicense = isValidPremiumEdition(); 28 31 if ($hasValidLicense == false) … … 34 37 $settings = SPDSGVOClickyApi::getInstance()->getSettings(); 35 38 36 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');39 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 37 40 $settings['propertyId'] = $this->get($this->slug.'_property_id', ''); 38 41 $settings['useOwnCode'] = $this->get($this->slug.'_own_code', '0'); -
shapepress-dsgvo/trunk/includes/integrations/statistics/clicky/page.php
r2604113 r2604177 19 19 20 20 <?php 21 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],21 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 22 22 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 23 23 '', -
shapepress-dsgvo/trunk/includes/integrations/statistics/etracker/class-sp-dsgvo-etracker-integration.php
r2602888 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->checkCSRF(); 28 $this->requireAdmin(); 29 27 30 $hasValidLicense = isValidPremiumEdition(); 28 31 if ($hasValidLicense == false) … … 34 37 $settings = SPDSGVOEtrackerApi::getInstance()->getSettings(); 35 38 36 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');39 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 37 40 $settings['propertyId'] = $this->get($this->slug.'_property_id', ''); 38 41 $settings['useOwnCode'] = $this->get($this->slug.'_own_code', '0'); -
shapepress-dsgvo/trunk/includes/integrations/statistics/etracker/page.php
r2604113 r2604177 21 21 22 22 <?php 23 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],23 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 24 24 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 25 25 '', -
shapepress-dsgvo/trunk/includes/integrations/statistics/googleanalytics/class-sp-dsgvo-google-analytics-integration.php
r2602888 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->checkCSRF(); 28 $this->requireAdmin(); 29 27 30 $settings = SPDSGVOGoogleAnalyticsApi::getInstance()->getSettings(); 28 31 29 $settings[' enabled'] = $this->get('ga_enable_analytics', '0');32 $settings['isEnabled'] = $this->get('ga_enable_analytics', '0'); 30 33 $settings['propertyId'] = $this->get('ga_tag_number', ''); 31 34 $settings['useOwnCode'] = $this->get('ga_own_code', '0'); -
shapepress-dsgvo/trunk/includes/integrations/statistics/googleanalytics/page.php
r2604113 r2604177 18 18 19 19 <?php 20 spDsgvoWriteInput('switch', '', 'ga_enable_analytics', $settings[' enabled'],20 spDsgvoWriteInput('switch', '', 'ga_enable_analytics', $settings['isEnabled'], 21 21 __('Use Google Analytics', 'shapepress-dsgvo'), 22 22 '', -
shapepress-dsgvo/trunk/includes/integrations/statistics/hotjar/class-sp-dsgvo-hotjar-integration.php
r2602888 r2604177 26 26 public function viewSubmit(){ 27 27 28 $this->checkCSRF(); 29 $this->requireAdmin(); 30 28 31 $hasValidLicense = isValidPremiumEdition(); 29 32 if ($hasValidLicense == false) … … 35 38 $settings = SPDSGVOHotjarApi::getInstance()->getSettings(); 36 39 37 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');40 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 38 41 $settings['propertyId'] = $this->get($this->slug.'_tag_number', ''); 39 42 $settings['useOwnCode'] = '1';//$this->get($this->slug.'_own_code', '1'); -
shapepress-dsgvo/trunk/includes/integrations/statistics/hotjar/page.php
r2604113 r2604177 23 23 24 24 <?php 25 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],25 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 26 26 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 27 27 '', -
shapepress-dsgvo/trunk/includes/integrations/statistics/matomo/class-sp-dsgvo-matomo-integration.php
r2602888 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->checkCSRF(); 28 $this->requireAdmin(); 29 27 30 $settings = SPDSGVOMatomoApi::getInstance()->getSettings(); 28 31 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');32 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 33 $settings['propertyId'] = $this->get($this->slug.'_tag_number', ''); 31 34 $settings['implementationMode'] = $this->get( $this->slug.'_implementationMode', ''); -
shapepress-dsgvo/trunk/includes/integrations/statistics/matomo/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 23 23 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/statistics/mautic/class-sp-dsgvo-mautic-integration.php
r2602888 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->checkCSRF(); 28 $this->requireAdmin(); 29 27 30 $settings = SPDSGVOMauticApi::getInstance()->getSettings(); 28 31 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');32 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 33 $settings['propertyId'] = $this->get($this->slug.'_tag_number', ''); 31 34 $settings['implementationMode'] = $this->get( $this->slug.'_implementationMode', ''); -
shapepress-dsgvo/trunk/includes/integrations/statistics/mautic/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 23 23 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/statistics/piwik/class-sp-dsgvo-piwik-integration.php
r2602888 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->checkCSRF(); 28 $this->requireAdmin(); 29 27 30 $hasValidLicense = isValidPremiumEdition(); 28 31 if ($hasValidLicense == false) … … 34 37 $settings = SPDSGVOPiwikApi::getInstance()->getSettings(); 35 38 36 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');39 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 37 40 $settings['propertyId'] = $this->get($this->slug.'_tag_number', ''); 38 41 $settings['useOwnCode'] = '1';//$this->get($this->slug.'_own_code', '1'); -
shapepress-dsgvo/trunk/includes/integrations/statistics/piwik/page.php
r2604113 r2604177 21 21 22 22 <?php 23 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],23 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 24 24 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 25 25 '', -
shapepress-dsgvo/trunk/includes/integrations/statistics/wpstatistics/class-sp-dsgvo-wpstatistics-integration.php
r2204538 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->checkCSRF(); 28 $this->requireAdmin(); 29 27 30 $settings = SPDSGVOWpStatisticsApi::getInstance()->getSettings(); 28 31 29 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');32 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 30 33 $settings['cloudMode'] = '0'; 31 34 $settings['useOwnCode'] = '1';//$this->get($this->slug.'_own_code', '1'); -
shapepress-dsgvo/trunk/includes/integrations/statistics/wpstatistics/page.php
r2604113 r2604177 21 21 22 22 <?php 23 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],23 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 24 24 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 25 25 '', -
shapepress-dsgvo/trunk/includes/integrations/tagmanager/googletagmanager/class-sp-dsgvo-google-tagmanager-api.php
r2604113 r2604177 37 37 $settings = $this->getSettings(); 38 38 39 if ($settings[' enabled'] == '0') return;39 if ($settings['isEnabled'] == '0') return; 40 40 $propertyId = $settings['propertyId']; 41 41 … … 57 57 $settings = $this->getSettings(); 58 58 59 if ($settings[' enabled'] == '0') return;59 if ($settings['isEnabled'] == '0') return; 60 60 $propertyId = $settings['propertyId']; 61 61 -
shapepress-dsgvo/trunk/includes/integrations/tagmanager/googletagmanager/class-sp-dsgvo-google-tagmanager-integration.php
r2602888 r2604177 26 26 public function viewSubmit(){ 27 27 28 $this->checkCSRF(); 29 $this->requireAdmin(); 30 28 31 $hasValidLicense = isValidPremiumEdition(); 29 32 if ($hasValidLicense == false) … … 35 38 $settings = SPDSGVOGoogleTagmanagerApi::getInstance()->getSettings(); 36 39 37 $settings[' enabled'] = $this->get('gtag_enable', '0');40 $settings['isEnabled'] = $this->get('gtag_enable', '0'); 38 41 $settings['propertyId'] = $this->get('gtag_tag_number', ''); 39 42 $settings['useOwnCode'] = $this->get('gtag_own_code', '0'); -
shapepress-dsgvo/trunk/includes/integrations/tagmanager/googletagmanager/page.php
r2604113 r2604177 20 20 21 21 <?php 22 spDsgvoWriteInput('switch', '', 'gtag_enable', $settings[' enabled'],22 spDsgvoWriteInput('switch', '', 'gtag_enable', $settings['isEnabled'], 23 23 __('Use Google TagManager', 'shapepress-dsgvo'), 24 24 '', -
shapepress-dsgvo/trunk/includes/integrations/tagmanager/matomotagmanager/class-sp-dsgvo-matomo-tagmanager-api.php
r2604113 r2604177 37 37 $settings = $this->getSettings(); 38 38 39 if ($settings[' enabled'] == '0') return;39 if ($settings['isEnabled'] == '0') return; 40 40 $propertyId = $settings['propertyId']; 41 41 -
shapepress-dsgvo/trunk/includes/integrations/tagmanager/matomotagmanager/class-sp-dsgvo-matomo-tagmanager-integration.php
r2602888 r2604177 26 26 public function viewSubmit(){ 27 27 28 $this->checkCSRF(); 29 $this->requireAdmin(); 30 28 31 $hasValidLicense = isValidPremiumEdition(); 29 32 if ($hasValidLicense == false) … … 35 38 $settings = SPDSGVOMatomoTagmanagerApi::getInstance()->getSettings(); 36 39 37 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');40 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 38 41 $settings['propertyId'] = $this->get($this->slug.'_tag_number', ''); 39 42 $settings['useOwnCode'] = '1';//$this->get($this->slug.'_own_code', '1'); -
shapepress-dsgvo/trunk/includes/integrations/tagmanager/matomotagmanager/page.php
r2604113 r2604177 21 21 22 22 <?php 23 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],23 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 24 24 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 25 25 '', -
shapepress-dsgvo/trunk/includes/integrations/targeting/bingadsuet/class-sp-dsgvo-bing-ads-uet-integration.php
r2602888 r2604177 26 26 public function viewSubmit(){ 27 27 28 $this->checkCSRF(); 29 $this->requireAdmin(); 30 28 31 $hasValidLicense = isValidPremiumEdition(); 29 32 if ($hasValidLicense == false) … … 35 38 $settings = SPDSGVOBingAdsUetApi::getInstance()->getSettings(); 36 39 37 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');40 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 38 41 $settings['propertyId'] = $this->get($this->slug.'_tag_number', ''); 39 42 $settings['useOwnCode'] = '1';//$this->get($this->slug.'_own_code', '1'); -
shapepress-dsgvo/trunk/includes/integrations/targeting/bingadsuet/page.php
r2604113 r2604177 23 23 24 24 <?php 25 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],25 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 26 26 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 27 27 '', -
shapepress-dsgvo/trunk/includes/integrations/targeting/criteo/class-sp-dsgvo-criteo-integration.php
r2602888 r2604177 25 25 public function viewSubmit(){ 26 26 27 $this->checkCSRF(); 28 $this->requireAdmin(); 29 27 30 $hasValidLicense = isValidPremiumEdition(); 28 31 if ($hasValidLicense == false) … … 34 37 $settings = SPDSGVOCriteoApi::getInstance()->getSettings(); 35 38 36 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');39 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 37 40 $settings['propertyId'] = $this->get($this->slug.'_tag_number', ''); 38 41 $settings['useOwnCode'] = '1';//$this->get($this->slug.'_own_code', '1'); -
shapepress-dsgvo/trunk/includes/integrations/targeting/criteo/page.php
r2604113 r2604177 23 23 24 24 <?php 25 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],25 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 26 26 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 27 27 '', -
shapepress-dsgvo/trunk/includes/integrations/targeting/fbpixel/class-sp-dsgvo-fb-pixel-integration.php
r2602888 r2604177 26 26 public function viewSubmit(){ 27 27 28 $this->checkCSRF(); 29 $this->requireAdmin(); 30 28 31 $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition(); 29 32 if ($hasValidLicense == false) … … 35 38 $settings = SPDSGVOFbPixelApi::getInstance()->getSettings(); 36 39 37 $settings[' enabled'] = $this->get('fb_enable_pixel', '0');40 $settings['isEnabled'] = $this->get('fb_enable_pixel', '0'); 38 41 $settings['propertyId'] = $this->get('fb_pixel_number', ''); 39 42 $settings['useOwnCode'] = $this->get('fb_own_code', '0'); -
shapepress-dsgvo/trunk/includes/integrations/targeting/fbpixel/page.php
r2604113 r2604177 23 23 24 24 <?php 25 spDsgvoWriteInput('switch', '', 'fb_enable_pixel', $settings[' enabled'],25 spDsgvoWriteInput('switch', '', 'fb_enable_pixel', $settings['isEnabled'], 26 26 __('Use Facebook Pixel', 'shapepress-dsgvo'), 27 27 '', -
shapepress-dsgvo/trunk/includes/integrations/targeting/gadsense/class-sp-dsgvo-gadsense-integration.php
r2602888 r2604177 26 26 public function viewSubmit(){ 27 27 28 $this->checkCSRF(); 29 $this->requireAdmin(); 30 28 31 $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition(); 29 32 if ($hasValidLicense == false) … … 35 38 $settings = SPDSGVOFbPixelApi::getInstance()->getSettings(); 36 39 37 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');40 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 38 41 $settings['propertyId'] = $this->get($this->slug.'_property_id', ''); 39 42 $settings['useOwnCode'] = $this->get($this->slug.'_own_code', '0'); -
shapepress-dsgvo/trunk/includes/integrations/targeting/gadsense/page.php
r2604113 r2604177 21 21 22 22 <?php 23 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],23 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 24 24 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 25 25 '', -
shapepress-dsgvo/trunk/includes/integrations/targeting/linkedinpixel/class-sp-dsgvo-linkedin-pixel-integration.php
r2602888 r2604177 26 26 public function viewSubmit(){ 27 27 28 $this->checkCSRF(); 29 $this->requireAdmin(); 30 28 31 $hasValidLicense = isValidPremiumEdition(); 29 32 if ($hasValidLicense == false) … … 35 38 $settings = SPDSGVOLinkedInPixelApi::getInstance()->getSettings(); 36 39 37 $settings[' enabled'] = $this->get( $this->slug.'_enable', '0');40 $settings['isEnabled'] = $this->get( $this->slug.'_enable', '0'); 38 41 $settings['propertyId'] = $this->get($this->slug.'_tag_number', ''); 39 42 $settings['useOwnCode'] = '1';//$this->get($this->slug.'_own_code', '1'); -
shapepress-dsgvo/trunk/includes/integrations/targeting/linkedinpixel/page.php
r2604113 r2604177 23 23 24 24 <?php 25 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings[' enabled'],25 spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'], 26 26 sprintf(__('Use %s', 'shapepress-dsgvo'), $apiInstance->getName()), 27 27 '',
Note: See TracChangeset
for help on using the changeset viewer.