PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 2.15
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v2.15
5.6.0 5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 3.0.0 3.0.1 3.0.2 3.0.3 3.0.5 3.0.51 3.0.60 3.0.61 3.0.62 3.0.70 3.0.71 3.0.72 All 35 releases
double-opt-in / core / Support.class.php

Support.class.php in Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification 2.15, at core/Support.class.php

43 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace forge12\contactform7\CF7DoubleOptIn {
4 if(!defined('ABSPATH')){
5 exit();
6 }
7
8 /**
9 * Class Support
10 */
11 class Support
12 {
13 /**
14 * @var null
15 */
16 private static $_instance = null;
17
18 /**
19 * @return Support|null
20 */
21 public static function getInstance(){
22 if(self::$_instance == null){
23 self::$_instance = new Support();
24 }
25 return self::$_instance;
26 }
27
28 private function __construct()
29 {
30 $settings = get_option('f12-doi-settings');
31
32 if(is_array($settings) && (isset($settings['support']) && $settings['support'] != 0) || !isset($settings['support'])) {
33 add_action('wp_footer', array($this, 'addLink'), 9999);
34 }
35 }
36
37 public function addLink(){
38 ?>
39 <noscript><!-- Double Opt-in Powered By Forge12 Interactive --><a title="WordPress Agentur" href="https://www.forge12.com/">Double Opt-in by Forge12</a></noscript>
40 <?php
41 }
42 }
43 }