File: /var/www/vhosts/inglory.de/kunden/Jockers-v2/wp-content/plugins/erecht24/erecht24.php
<?php
/**
* @link https://www.e-recht24.de/
* @since 2.0.0
* @package eRecht24
*
* @wordpress-plugin
* Plugin Name: eRecht24 legal texts for WordPress
* Plugin URI: https://www.e-recht24.de/
* Description: This plugin allows the easy integration of imprint and privacy policy of eRecht24.
* Version: 3.4.3
* Author: eRecht24, Weslink GmbH
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: erecht24
* Domain Path: /languages
* Requires PHP: 7.1
*/
namespace eRecht24\LegalTexts;
use eRecht24\LegalTexts\App\Helper;
use eRecht24\LegalTexts\Inc\Core\Activator;
use eRecht24\LegalTexts\Inc\Core\Deactivator;
use eRecht24\LegalTexts\Inc\Core\Init;
use eRecht24\LegalTexts\Inc\Core\Updater;
use eRecht24\LegalTexts\Inc\Core\PluginUpdateGit;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Define Constants
*/
define( __NAMESPACE__ . '\NS', __NAMESPACE__ . '\\' );
define( __NAMESPACE__ . '\PLUGIN_NAME_DIR', plugin_dir_path( __FILE__ ) );
define( __NAMESPACE__ . '\PLUGIN_NAME_URL', plugin_dir_url( __FILE__ ) );
define( __NAMESPACE__ . '\PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
/**
* Autoload Classes
*/
require_once( PLUGIN_NAME_DIR . 'vendor/autoload.php' );
// Constants for configuration
require_once(PLUGIN_NAME_DIR . 'Inc/Core/PluginUpdateGit.php');
/**
* Add meta link function
*/
/**
* Register Activation and Deactivation Hooks
* This action is documented in inc/core/class-activator.php
*/
$activator = new Activator();
register_activation_hook(__FILE__, [$activator, 'execute']);
/**
* Register Update Hooks
*/
/**
* Register a Hook if new sub page is created & initialized
*/
add_action('wp_initialize_site', [$activator, 'handleSiteCreation']);
/**
* The code that runs during plugin deactivation.
* This action is documented inc/core/class-deactivator.php
*/
$deactivator = new Deactivator();
register_deactivation_hook(__FILE__, [$deactivator, 'execute']);
/**
* The code that runs during plugin uninstallation.
* This action is documented inc/core/class-uninstall.php
*/
register_uninstall_hook( __FILE__, array( NS . 'Inc\Core\Uninstall', 'uninstall' ) );
/**
* Plugin Singleton Container
*
* Maintains a single copy of the plugin app object
*
* @since 1.0.0
*/
class eRecht24 {
/**
* The instance of the plugin.
*
* @since 1.0.0
* @var Init $init Instance of the plugin.
*/
private static $init;
/**
* Loads the plugin
*
* @access public
*/
public static function init() {
if ( null === self::$init ) {
self::$init = new Init();
self::$init->run();
}
return self::$init;
}
}
$min_php = '7.1.0';
// Check the minimum required PHP version and run the plugin.
if ( version_compare( PHP_VERSION, $min_php, '>=' ) ) {
eRecht24::init();
}
$version = '3.4.3';
// Initiate the plugin update checker
$pluginupdategit = new PluginUpdateGit(
'erecht24-legal-texts',
"erecht24",
'https://gitlab.cool-tree-8714.gl.apps.muc1.de.bnerd.io/api/v4/projects/30/repository/files/plugin.json?ref=main',
$version,
plugin_basename(__FILE__),
__FILE__,
__NAMESPACE__
);