diff --git a/.gitignore b/.gitignore index c9c0c3f..e9adf39 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ vendor/ composer.lock .phpunit.result.cache node_modules/ +package-lock.json diff --git a/.wordpress-org/banner-1544x500.jpg b/.wordpress-org/banner-1544x500.jpg index 0f1839b..ca4af3e 100644 Binary files a/.wordpress-org/banner-1544x500.jpg and b/.wordpress-org/banner-1544x500.jpg differ diff --git a/.wordpress-org/banner-772x250.jpg b/.wordpress-org/banner-772x250.jpg index 9f5a437..ca59aa2 100644 Binary files a/.wordpress-org/banner-772x250.jpg and b/.wordpress-org/banner-772x250.jpg differ diff --git a/.wordpress-org/event-activitypub-publishing.gif b/.wordpress-org/event-activitypub-publishing.gif index 8d57db0..e2ca178 100644 Binary files a/.wordpress-org/event-activitypub-publishing.gif and b/.wordpress-org/event-activitypub-publishing.gif differ diff --git a/.wordpress-org/icon-128x128.gif b/.wordpress-org/icon-128x128.gif index 25ebcc0..d9d905f 100644 Binary files a/.wordpress-org/icon-128x128.gif and b/.wordpress-org/icon-128x128.gif differ diff --git a/.wordpress-org/icon-256x256.gif b/.wordpress-org/icon-256x256.gif index 9385c37..68b90db 100644 Binary files a/.wordpress-org/icon-256x256.gif and b/.wordpress-org/icon-256x256.gif differ diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..df4eb26 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,59 @@ +module.exports = function (grunt) { + // Project configuration. + grunt.initConfig( + { + checktextdomain: { + options:{ + text_domain: 'activitypub-event-bridge', + keywords: [ + '__:1,2d', + '_e:1,2d', + '_x:1,2c,3d', + 'esc_html__:1,2d', + 'esc_html_e:1,2d', + 'esc_html_x:1,2c,3d', + 'esc_attr__:1,2d', + 'esc_attr_e:1,2d', + 'esc_attr_x:1,2c,3d', + '_ex:1,2c,3d', + '_n:1,2,4d', + '_nx:1,2,4c,5d', + '_n_noop:1,2,3d', + '_nx_noop:1,2,3c,4d' + ] + }, + files: { + src: [ + '**/*.php', // Include all files + '!sass/**', // Exclude sass/ + '!node_modules/**', // Exclude node_modules/ + '!tests/**', // Exclude tests/ + '!vendor/**', // Exclude vendor/ + '!build/**', // Exclude build/ + '!static/**', // Exclude static resources + ], + expand: true + } + }, + + wp_readme_to_markdown: { + target: { + files: { + 'README.md': 'readme.txt' + }, + }, + options: { + pre_convert: function ( readme ) { + return readme.replace( /\*\*Note\*\*:/g, "> [!NOTE]\n>" ); + } + } + } + } + ); + + grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' ); + grunt.loadNpmTasks( 'grunt-checktextdomain' ); + + // Default task(s). + grunt.registerTask( 'default', ['wp_readme_to_markdown', 'checktextdomain'] ); +}; \ No newline at end of file diff --git a/README.md b/README.md index 07aceea..e0f27c8 100644 --- a/README.md +++ b/README.md @@ -1,50 +1,48 @@ -# ActivityPub Event Bridge - -Contributors: andremenrath -Tags: events, fediverse, activitypub, calendar -Requires at least: 6.5 -Tested up to: 6.6 -Stable tag: 0.1.0 -Requires PHP: 8.1 -License: AGPL-3.0-or-later -License URI: https://www.gnu.org/licenses/agpl-3.0.html - +# ActivityPub Event Bridge # +**Contributors:** [andremenrath](https://profiles.wordpress.org/andremenrath/) +**Tags:** events, fediverse, activitypub, calendar +**Requires at least:** 6.5 +**Tested up to:** 6.6 +**Stable tag:** 0.2.0 +**Requires PHP:** 8.1 +**License:** AGPL-3.0-or-later +**License URI:** https://www.gnu.org/licenses/agpl-3.0.html Integrating popular event plugins with the ActivityPub plugin. -![](.wordpress-org/banner-1544x500.jpg) +![Federate your Events, Expand your Reach!](.wordpress-org/banner-1544x500.jpg) -## Description +## Description ## Make your events more discoverable, expand your reach effortlessly while being independent of other (commercial) platforms, and be a part of the growing decentralized web (the Fediverse). -With the ActivityPub Event Bridge plugin for WordPress, your events can be automatically followed, aggregated and displayed across decentralized platforms like [Mastodon](https://joinmastodon.org) or [Gancio](https://gancio.org), without any extra work. +With the ActivityPub Event Bridge Plugin for WordPress, your events can be automatically followed, aggregated and displayed across decentralized platforms like [Mastodon](https://joinmastodon.org) or [Gancio](https://gancio.org), without any extra work. Forget the hassle of managing multiple social media accounts just to keep your audience informed. This plugin is not an event managing plugin but an add-on to popular event plugins. It extends their functionality to fully support the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/). With the ActivityPub plugin people can follow your website directly and engage with your events just as they would on social media: liking, boosting and even commenting if you enable it. You retain full ownership of your content. By integrating into your existing setup, it ensures no extra work is needed while enhancing your events' visibility across the web. -### How It Works +### How It Works ### With the ActivityPub Event Bridge WordPress plugin, sharing your events is effortless and automatic! Once you create an event on your WordPress site, it is seamlessly shared across the decentralized web using the ActivityPub protocol.

- Logo + Logo

Your events can be automatically delivered to platforms that fully support events, such as [Mobilizon](https://joinmobilizon.org/), [Gancio](https://gancio.org), [Friendica](https://friendi.ca), [Hubzilla](https://hubzilla.org), and [Pleroma](https://pleroma.social/). These platforms create public event calendars by pulling in events from various sources, including your website. Any updates you make to your events are synced across these platforms—so you only need to manage your events on your own site, with no extra work required.

- Logo + Logo

Even platforms that don't yet fully support events, like [Mastodon](https://joinmastodon.org), will still receive a detailed, well-composed summary of your event. The Event Federation plugin ensures that users from those platforms are provided with all important information about an event. -### Features for Your WordPress Events and the Fediverse +### Features for Your WordPress Events and the Fediverse ### -**ActivityPub-Enabled Event Sharing:** Your WordPress events are not part of the Fediverse and +**ActivityPub-Enabled Event Sharing:** Your WordPress events are now compatible with the Fediverse, using the ActivityStreams format. This means your events can be easily discovered and followed by users on platforms like Mastodon and other ActivityPub-compatible services. **Automatic Event Summaries:** When your event is shared on the Fediverse, platforms like Mastodon that don't fully support events will display a brief HTML summary of key details — such as the event's title, start time, and location. This ensures that even if someone can't view the full event on their platform, they still get the important info at a glance, with a link to your WordPress event page. @@ -52,11 +50,11 @@ The Event Federation plugin ensures that users from those platforms are provided **Event Reminders for Your Followers:** Often, events are planned well in advance. To keep your followers informed right in time, you can set up reminders that are supposed to trigger the events showing up in their timelines right before the event starts. At the moment this reminder is implemented as a self-boost of your original event post. While this feature may behave differently across various platforms, we are working on a more robust solution that will let you schedule dedicated reminder notes that appear in all followers' timelines. -## Installation +## Installation ## -This plugin depends on the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/). Additionally, you need to use one of the supported event plugins. See below. +This plugin depends on the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/). Additionally, you need to use one of the supported event Plugins. -### Supported Event plugins +### Supported Event Plugins ### * [The Events Calendar](https://de.wordpress.org/plugins/the-events-calendar/) * [VS Event List](https://de.wordpress.org/plugins/very-simple-event-list/) @@ -66,41 +64,41 @@ This plugin depends on the [ActivityPub plugin](https://wordpress.org/plugins/ac * [Modern Events Calendar Lite](https://webnus.net/modern-events-calendar/) * [GatherPress](https://gatherpress.org/) -## Configuration +## Configuration ## -If you’re new to the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/), it’s recommended to spend a few minutes reading through its documentation to familiarize yourself with its setup and functionality. +If you're new to the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/), it’s recommended to spend a few minutes reading through its documentation to familiarize yourself with its setup and functionality. -## Frequently Asked Questions +## Frequently Asked Questions ## -### Do I need to install another event plugin to use the Event Federation plugin? +### Do I need to install another event plugin to use the Event Federation Plugin? ### Yes, this plugin works as an add-on and requires both the ActivityPub plugin and a supported event plugin such as The Events Calendar, VS Event List, or Events Manager to manage your events. It just fills the missing gap between event plugins and the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/). +### What platforms can follow my events? ### -### What platforms can follow my events? -Your events can be followed on platforms that support ActivityPub like [Mobilizon](https://joinmobilizon.org/), [Gancio](https://gancio.org), [Friendica](https://friendi.ca), [Hubzilla](https://hubzilla.org), and [Pleroma](https://pleroma.social/). Even other applications like [Mastodon](https://joinmastodon.org), which don’t fully support events yet, will display all important information about the events. +Your events can be followed on platforms that support ActivityPub like [Mobilizon](https://joinmobilizon.org/), [Gancio](https://gancio.org), [Friendica](https://friendi.ca), [Hubzilla](https://hubzilla.org), and [Pleroma](https://pleroma.social/). Even other applications like [Mastodon](https://joinmastodon.org), which don't fully support events yet, will display all important information about the events. -### How much extra work is required to maintain my events across the decentralized Web? +### How much extra work is required to maintain my events across the decentralized Web? ### None! Once the plugin is set up, your events are automatically sent to all connected platforms or account that follow you (your Website). Any updates you make to your events are synced without additional effort. -### Can I still use social media to promote my events? +### Can I still use social media to promote my events? ### Yes, you can still use traditional social media if you wish. However, this plugin helps reduce reliance on commercial platforms by connecting your events to the decentralized Fediverse. -### Will this plugin work if I don't use the ActivityPub plugin? +### Will this plugin work if I don't use the ActivityPub plugin? ### -No, the Event Federation plugin depends on the ActivityPub plugin to deliver your events across decentralized platforms, so it's essential to have it installed and configured. +No, the Event Federation Plugin depends on the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/) to deliver your events across decentralized platforms, so it's essential to have it installed and configured. -### My event plugin is not supported, what can I do? +### My event plugin is not supported, what can I do? ### If you know about coding have a look at the documentation of how to add your plugin or open an [issue](https://code.event-federation.eu/Event-Federation/wordpress-activitypub-event-bridge/issues), if we can spare some free hours we might add it. -### What if I experience problems? +### What if I experience problems? ### We're always interested in your feedback. Feel free to reach out to us via [E-Mail](https://event-federation.eu/contact/) or create an [issue](https://code.event-federation.eu/Event-Federation/wordpress-activitypub-event-bridge/issues). -## Changelog +## Changelog ## -### [0.1.0] 2024-10-01 +### [0.2.0] 2024-10-29 ### -* Initial alpha release on WordPress.org +* Initial release on https://wordpress.org/ diff --git a/activitypub-event-bridge.php b/activitypub-event-bridge.php index b1cb2ea..1893a17 100644 --- a/activitypub-event-bridge.php +++ b/activitypub-event-bridge.php @@ -3,7 +3,7 @@ * Plugin Name: ActivityPub Event Bridge * Description: Integrating popular event plugins with the ActivityPub plugin. * Plugin URI: https://event-federation.eu/ - * Version: 0.1.1 + * Version: 0.2.0 * Author: André Menrath * Author URI: https://graz.social/@linos * Text Domain: activitypub-event-bridge diff --git a/package.json b/package.json index 72106bc..4db7d96 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,9 @@ "@wordpress/env": "^10.10.0", "@wordpress/scripts": "^30.0.2", "classnames": "^2.3.2", + "grunt": "^1.1.0", + "grunt-checktextdomain": "^1.0.1", + "grunt-wp-i18n": "^1.0.3", "grunt-wp-readme-to-markdown": "^2.0.1" } } \ No newline at end of file diff --git a/phpcs.xml b/phpcs.xml index cf1bc1b..e1ef42c 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -29,6 +29,9 @@ *.min.js + + Gruntfile.js + diff --git a/readme.txt b/readme.txt index d0b9c7e..29f5479 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: andremenrath Tags: events, fediverse, activitypub, calendar Requires at least: 6.5 Tested up to: 6.6 -Stable tag: 0.1.0 +Stable tag: 0.2.0 Requires PHP: 8.1 License: AGPL-3.0-or-later License URI: https://www.gnu.org/licenses/agpl-3.0.html @@ -31,6 +31,8 @@ These platforms create public event calendars by pulling in events from various ![](./.wordpress-org/decentralized-event-calenders.gif) +Even platforms that don't yet fully support events, like [Mastodon](https://joinmastodon.org), will still receive a detailed, well-composed summary of your event. +The Event Federation plugin ensures that users from those platforms are provided with all important information about an event. = Features for Your WordPress Events and the Fediverse = @@ -58,17 +60,16 @@ This plugin depends on the [ActivityPub plugin](https://wordpress.org/plugins/ac == Configuration == -If you’re new to the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/), it’s recommended to spend a few minutes reading through its documentation to familiarize yourself with its setup and functionality. +If you're new to the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/), it’s recommended to spend a few minutes reading through its documentation to familiarize yourself with its setup and functionality. == Frequently Asked Questions == = Do I need to install another event plugin to use the Event Federation Plugin? = -Yes, this plugin works as an add-on and requires both the ActivityPub plugin and a supported event plugin such as The Events Calendar, VS Event List, or Events Manager to manage your events. - +Yes, this plugin works as an add-on and requires both the ActivityPub plugin and a supported event plugin such as The Events Calendar, VS Event List, or Events Manager to manage your events. It just fills the missing gap between event plugins and the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/). = What platforms can follow my events? = -Your events can be followed on platforms that support ActivityPub like [Mobilizon](https://joinmobilizon.org/), [Gancio](https://gancio.org), [Friendica](https://friendi.ca), [Hubzilla](https://hubzilla.org), and [Pleroma](https://pleroma.social/). Even other applications like [Mastodon](https://joinmastodon.org), which don’t fully support events yet, will display all important information about the events. +Your events can be followed on platforms that support ActivityPub like [Mobilizon](https://joinmobilizon.org/), [Gancio](https://gancio.org), [Friendica](https://friendi.ca), [Hubzilla](https://hubzilla.org), and [Pleroma](https://pleroma.social/). Even other applications like [Mastodon](https://joinmastodon.org), which don't fully support events yet, will display all important information about the events. = How much extra work is required to maintain my events across the decentralized Web? = @@ -92,6 +93,6 @@ We're always interested in your feedback. Feel free to reach out to us via [E-Ma == Changelog == -= [0.1.0] 2024-09-01 = += [0.2.0] 2024-10-29 = -* Initial alpha release on WordPress.org +* Initial release on https://wordpress.org/