2024-10-02 21:54:03 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2024-12-05 16:02:36 +01:00
|
|
|
* Plugin Name: Event Bridge for ActivityPub
|
2024-10-02 21:54:03 +02:00
|
|
|
* Description: Integrating popular event plugins with the ActivityPub plugin.
|
|
|
|
* Plugin URI: https://event-federation.eu/
|
2024-11-16 19:38:28 +01:00
|
|
|
* Version: 0.2.1
|
2024-10-02 21:54:03 +02:00
|
|
|
* Author: André Menrath
|
|
|
|
* Author URI: https://graz.social/@linos
|
2024-12-05 16:02:36 +01:00
|
|
|
* Text Domain: event-bridge-for-activitypub
|
2024-10-02 21:54:03 +02:00
|
|
|
* License: AGPL-3.0-or-later
|
2024-10-29 21:12:59 +01:00
|
|
|
* License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
2024-10-31 16:40:26 +01:00
|
|
|
* Requires PHP: 7.4
|
2024-10-02 21:54:03 +02:00
|
|
|
*
|
2024-11-16 19:38:28 +01:00
|
|
|
* Requires at least ActivityPub plugin with version >= 3.2.2. ActivityPub plugin tested up to: 4.2.0.
|
2024-10-02 21:54:03 +02:00
|
|
|
*
|
2024-12-05 16:02:36 +01:00
|
|
|
* @package Event_Bridge_For_ActivityPub
|
2024-10-02 21:54:03 +02:00
|
|
|
* @license AGPL-3.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Exit if accessed directly.
|
|
|
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
|
|
|
|
2024-12-05 16:02:36 +01:00
|
|
|
define( 'EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
|
|
|
define( 'EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
|
|
|
define( 'EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_FILE', plugin_dir_path( __FILE__ ) . '/' . basename( __FILE__ ) );
|
|
|
|
define( 'EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
|
|
|
define( 'EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_VERSION', current( get_file_data( __FILE__, array( 'Version' ), 'plugin' ) ) );
|
|
|
|
define( 'EVENT_BRIDGE_FOR_ACTIVITYPUB_DOMAIN', 'event-bridge-for-activitypub' );
|
|
|
|
define( 'EVENT_BRIDGE_FOR_ACTIVITYPUB_ACTIVITYPUB_PLUGIN_MIN_VERSION', '3.2.2' );
|
2024-10-02 21:54:03 +02:00
|
|
|
|
|
|
|
// Include and register the autoloader class for automatic loading of plugin classes.
|
2024-12-05 16:02:36 +01:00
|
|
|
require_once EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_DIR . '/includes/class-autoloader.php';
|
|
|
|
Event_Bridge_For_ActivityPub\Autoloader::register();
|
2024-10-02 21:54:03 +02:00
|
|
|
|
|
|
|
// Initialize the plugin.
|
2024-12-05 16:02:36 +01:00
|
|
|
Event_Bridge_For_ActivityPub\Setup::get_instance();
|