From 61522ddcbe1a3019d6fa0fdeb15e969004da63ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Tue, 22 Oct 2024 18:43:42 +0200 Subject: [PATCH] make example url easier to copy --- activitypub-event-bridge.php | 2 +- assets/css/activitypub-event-bridge-admin.css | 11 +++++++++++ .../transformer/class-the-events-calendar.php | 2 +- includes/admin/class-settings-page.php | 10 +++++----- includes/class-settings.php | 2 +- templates/welcome.php | 18 +++++++++++++----- 6 files changed, 32 insertions(+), 13 deletions(-) diff --git a/activitypub-event-bridge.php b/activitypub-event-bridge.php index 357123d..88a772c 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.5 + * Version: 0.1.1.6 * Author: André Menrath * Author URI: https://graz.social/@linos * Text Domain: activitypub-event-bridge diff --git a/assets/css/activitypub-event-bridge-admin.css b/assets/css/activitypub-event-bridge-admin.css index 18bcf24..8c73add 100644 --- a/assets/css/activitypub-event-bridge-admin.css +++ b/assets/css/activitypub-event-bridge-admin.css @@ -166,3 +166,14 @@ vertical-align: middle; margin: 0 0.3em; } + +code.activitypub-event-bridge-settings-example-url { + display: block; + background: rgb(28, 29, 33); + padding: 8px; + margin: 10px 0px 10px 0; + border-radius: 7px; + color: #d5d5d6; + overflow-x: auto; + word-break: break-all; +} diff --git a/includes/activitypub/transformer/class-the-events-calendar.php b/includes/activitypub/transformer/class-the-events-calendar.php index 9d76aaa..2fe7274 100644 --- a/includes/activitypub/transformer/class-the-events-calendar.php +++ b/includes/activitypub/transformer/class-the-events-calendar.php @@ -173,7 +173,7 @@ final class The_Events_Calendar extends Event { } else { $location->set_address( $venue->post_title ); } - $location->set_id( $venue->permalink ); + $location->set_id( $venue->ID ); $location->set_name( $venue->post_title ); return $location; diff --git a/includes/admin/class-settings-page.php b/includes/admin/class-settings-page.php index df6143b..b2dbb3e 100644 --- a/includes/admin/class-settings-page.php +++ b/includes/admin/class-settings-page.php @@ -3,7 +3,7 @@ * General settings class. * * This file contains the General class definition, which handles the "General" settings - * page for the ActivityPub Event Extension Plugin, providing options for configuring various general settings. + * page for the Activitypub Event Bridge Plugin, providing options for configuring various general settings. * * @package ActivityPub_Event_Bridge * @since 1.0.0 @@ -18,9 +18,9 @@ use ActivityPub_Event_Bridge\Plugins\Event_Plugin; use ActivityPub_Event_Bridge\Setup; /** - * Class responsible for the ActivityPub Event Extension related Settings. + * Class responsible for the Activitypub Event Bridge related Settings. * - * Class which handles the "General" settings page for the ActivityPub Event Extension Plugin, + * Class which handles the "General" settings page for the Activitypub Event Bridge Plugin, * providing options for configuring various general settings. * * @since 1.0.0 @@ -36,11 +36,11 @@ class Settings_Page { */ public static function admin_menu(): void { \add_options_page( - 'Activitypub Event Extension', + 'Activitypub Event Bridge', __( 'ActivityPub Event Bridge', 'activitypub-event-bridge' ), 'manage_options', self::SETTINGS_SLUG, - array( self::STATIC, 'settings_page' ) + array( self::STATIC, 'settings_page' ), ); } diff --git a/includes/class-settings.php b/includes/class-settings.php index e5f69f0..3367dd1 100644 --- a/includes/class-settings.php +++ b/includes/class-settings.php @@ -3,7 +3,7 @@ * General settings class. * * This file contains the General class definition, which handles the "General" settings - * page for the ActivityPub Event Extension Plugin, providing options for configuring various general settings. + * page for the Activitypub Event Bridge Plugin, providing options for configuring various general settings. * * @package ActivityPub_Event_Bridge * @since 1.0.0 diff --git a/templates/welcome.php b/templates/welcome.php index 1a87055..7d72968 100644 --- a/templates/welcome.php +++ b/templates/welcome.php @@ -29,7 +29,7 @@ if ( empty( $example_event_post ) ) { $example_event_post = 'https://yoursite.com/events/event-name'; $example_event_post_is_dummy = true; } else { - $example_event_post = \get_permalink( $example_event_post[0]); + $example_event_post = \get_permalink( $example_event_post[0] ); $example_event_post_is_dummy = false; } @@ -133,8 +133,10 @@ WP_Filesystem(); @@ -151,7 +153,10 @@ WP_Filesystem(); @@ -169,7 +174,10 @@ WP_Filesystem();

  1. -
  2. +
  3. + + +