| 1 |
<?php |
| 2 |
|
| 3 |
namespace cybot\cookiebot\addons\controller\addons\optinmonster; |
| 4 |
|
| 5 |
use cybot\cookiebot\addons\controller\addons\Base_Cookiebot_Plugin_Addon; |
| 6 |
|
| 7 |
class Optinmonster extends Base_Cookiebot_Plugin_Addon { |
| 8 |
|
| 9 |
|
| 10 |
const ADDON_NAME = 'Optinmonster'; |
| 11 |
const DEFAULT_PLACEHOLDER_CONTENT = 'Please accept [renew_consent]%cookie_types[/renew_consent] cookies to enable tracking.'; |
| 12 |
const OPTION_NAME = 'optinmonster'; |
| 13 |
const PLUGIN_FILE_PATH = 'optinmonster/optin-monster-wp-api.php'; |
| 14 |
const DEFAULT_COOKIE_TYPES = array( 'marketing', 'statistics' ); |
| 15 |
const ENABLE_ADDON_BY_DEFAULT = false; |
| 16 |
const SVN_URL_BASE_PATH = 'https://plugins.svn.wordpress.org/optinmonster/trunk/'; |
| 17 |
const SVN_URL_DEFAULT_SUB_PATH = 'optin-monster-wp-api.php'; |
| 18 |
|
| 19 |
/** |
| 20 |
* Check for optinmonster action hooks |
| 21 |
* |
| 22 |
* @since 1.3.0 |
| 23 |
*/ |
| 24 |
public function load_addon_configuration() { |
| 25 |
$this->script_loader_tag->add_tag( 'optinmonster-api-script', $this->get_cookie_types() ); |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* @return array |
| 30 |
*/ |
| 31 |
public function get_extra_information() { |
| 32 |
return array( |
| 33 |
__( 'OptinMonster API plugin to connect your WordPress site to your OptinMonster account.', 'cookiebot' ), |
| 34 |
); |
| 35 |
} |
| 36 |
} |
| 37 |
|