| 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 |
} |