| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package Lawwwing |
| 4 |
*/ |
| 5 |
/* |
| 6 |
Plugin Name: Lawwwing |
| 7 |
Plugin URI: https://lawwwing.com/ |
| 8 |
Description: Plugin todo en uno desarrollado por Lawwwing.com. Incluye las funcionalidades para ayudar a tu web a cumplir con las normativas RGPD, LOPDGDD, LSSI, LGDCU. |
| 9 |
Version: 1.5.3 |
| 10 |
Author: ibamu |
| 11 |
Author URI: https://lawwwing.com/ |
| 12 |
Tags: cookie banner, cookie consent, GDPR, Privacy Policy, Legal Documents |
| 13 |
License: GPLv2 or later |
| 14 |
Text Domain: Lawwwing |
| 15 |
*/ |
| 16 |
if (! defined('ABSPATH')) { |
| 17 |
die; |
| 18 |
} |
| 19 |
|
| 20 |
// Define plugin constants |
| 21 |
define('LW_PLUGIN_NAME', 'Lawwwing'); |
| 22 |
define('LW_PLUGIN_REFERENCE', 'lawwwing'); |
| 23 |
define('LW_PLUGIN_VERSION', '1.5.3'); |
| 24 |
|
| 25 |
// Environment-specific hosts. Override these in wp-config.php for test environments. |
| 26 |
if (!defined('LW_API_HOST')) { |
| 27 |
define('LW_API_HOST', 'https://api.lawwwing.com'); |
| 28 |
} |
| 29 |
|
| 30 |
if (!defined('LW_DOCUMENTS_BASE_HOST')) { |
| 31 |
define('LW_DOCUMENTS_BASE_HOST', 'https://app.lawwwing.com'); |
| 32 |
} |
| 33 |
|
| 34 |
// First, I define a constant to see if site is network activated |
| 35 |
if ( ! function_exists( 'is_plugin_active_for_network' ) ) { |
| 36 |
require_once(ABSPATH . '/wp-admin/includes/plugin.php' ); |
| 37 |
} |
| 38 |
|
| 39 |
if (is_plugin_active_for_network('ibamu/ibamu.php')) { |
| 40 |
define("LW_NETWORK_MODE", true); |
| 41 |
} |
| 42 |
else { |
| 43 |
define("LW_NETWORK_MODE", false); |
| 44 |
} |
| 45 |
|
| 46 |
// Include the options page logic. |
| 47 |
require_once( plugin_dir_path( __FILE__ ) . 'options/options.php' ); |
| 48 |
|
| 49 |
// Include installation logic. |
| 50 |
require_once( plugin_dir_path( __FILE__ ) . 'installation/install.php' ); |
| 51 |
|
| 52 |
// Include legal documents shortcodes. |
| 53 |
require_once( plugin_dir_path( __FILE__ ) . 'shortcodes/shortcodes.php' ); |
| 54 |
|
| 55 |
// Include integrations |
| 56 |
require_once( plugin_dir_path( __FILE__ ) . 'integrations/wp_rocket.php' ); |
| 57 |
require_once( plugin_dir_path( __FILE__ ) . 'integrations/wp_siteground.php' ); |
| 58 |
|
| 59 |
if (is_plugin_active('wp-consent-api/wp-consent-api.php')) { |
| 60 |
require_once( plugin_dir_path( __FILE__ ) . 'integrations/wp_consent_api.php' ); |
| 61 |
} |
| 62 |
|
| 63 |
?> |
| 64 |
|