make example url easier to copy
Some checks failed
Some checks failed
This commit is contained in:
parent
a0a4edb72b
commit
61522ddcbe
6 changed files with 32 additions and 13 deletions
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: ActivityPub Event Bridge
|
* Plugin Name: ActivityPub Event Bridge
|
||||||
* Description: Integrating popular event plugins with the ActivityPub plugin.
|
* Description: Integrating popular event plugins with the ActivityPub plugin.
|
||||||
* Plugin URI: https://event-federation.eu/
|
* Plugin URI: https://event-federation.eu/
|
||||||
* Version: 0.1.1.5
|
* Version: 0.1.1.6
|
||||||
* Author: André Menrath
|
* Author: André Menrath
|
||||||
* Author URI: https://graz.social/@linos
|
* Author URI: https://graz.social/@linos
|
||||||
* Text Domain: activitypub-event-bridge
|
* Text Domain: activitypub-event-bridge
|
||||||
|
|
|
@ -166,3 +166,14 @@
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin: 0 0.3em;
|
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;
|
||||||
|
}
|
||||||
|
|
|
@ -173,7 +173,7 @@ final class The_Events_Calendar extends Event {
|
||||||
} else {
|
} else {
|
||||||
$location->set_address( $venue->post_title );
|
$location->set_address( $venue->post_title );
|
||||||
}
|
}
|
||||||
$location->set_id( $venue->permalink );
|
$location->set_id( $venue->ID );
|
||||||
$location->set_name( $venue->post_title );
|
$location->set_name( $venue->post_title );
|
||||||
|
|
||||||
return $location;
|
return $location;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* General settings class.
|
* General settings class.
|
||||||
*
|
*
|
||||||
* This file contains the General class definition, which handles the "General" settings
|
* 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
|
* @package ActivityPub_Event_Bridge
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
@ -18,9 +18,9 @@ use ActivityPub_Event_Bridge\Plugins\Event_Plugin;
|
||||||
use ActivityPub_Event_Bridge\Setup;
|
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.
|
* providing options for configuring various general settings.
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
@ -36,11 +36,11 @@ class Settings_Page {
|
||||||
*/
|
*/
|
||||||
public static function admin_menu(): void {
|
public static function admin_menu(): void {
|
||||||
\add_options_page(
|
\add_options_page(
|
||||||
'Activitypub Event Extension',
|
'Activitypub Event Bridge',
|
||||||
__( 'ActivityPub Event Bridge', 'activitypub-event-bridge' ),
|
__( 'ActivityPub Event Bridge', 'activitypub-event-bridge' ),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
self::SETTINGS_SLUG,
|
self::SETTINGS_SLUG,
|
||||||
array( self::STATIC, 'settings_page' )
|
array( self::STATIC, 'settings_page' ),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* General settings class.
|
* General settings class.
|
||||||
*
|
*
|
||||||
* This file contains the General class definition, which handles the "General" settings
|
* 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
|
* @package ActivityPub_Event_Bridge
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
@ -29,7 +29,7 @@ if ( empty( $example_event_post ) ) {
|
||||||
$example_event_post = 'https://yoursite.com/events/event-name';
|
$example_event_post = 'https://yoursite.com/events/event-name';
|
||||||
$example_event_post_is_dummy = true;
|
$example_event_post_is_dummy = true;
|
||||||
} else {
|
} 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;
|
$example_event_post_is_dummy = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,8 +133,10 @@ WP_Filesystem();
|
||||||
<div id="activitypub-event-bridge-help-accordion-mastodon" class="activitypub-event-bridge-settings-accordion-panel" hidden="hidden">
|
<div id="activitypub-event-bridge-help-accordion-mastodon" class="activitypub-event-bridge-settings-accordion-panel" hidden="hidden">
|
||||||
<ol class="activitypub-event-bridge-settings-numbered-list">
|
<ol class="activitypub-event-bridge-settings-numbered-list">
|
||||||
<li><?php \esc_html_e( 'Log into your Mastodon account.', 'activitypub-event-bridge' ); ?></li>
|
<li><?php \esc_html_e( 'Log into your Mastodon account.', 'activitypub-event-bridge' ); ?></li>
|
||||||
|
<li>
|
||||||
<li><?php \esc_html_e( 'In the search bar, type or copy the full URL of one of your event pages (e.g., https://yoursite.com/events/event-name).', 'activitypub-event-bridge' ); ?></li>
|
<?php \esc_html_e( 'In the search bar, type or copy the full URL of one of your event pages. For example:', 'activitypub-event-bridge' ); ?>
|
||||||
|
<code class="activitypub-event-bridge-settings-example-url"><?php echo \esc_url( $example_event_post ); ?></code>
|
||||||
|
</li>
|
||||||
<li><?php \esc_html_e( 'If everything is set up correctly, you\'ll see a post representing your event. It should include the event\'s image, title, and a brief description.', 'activitypub-event-bridge' ); ?></li>
|
<li><?php \esc_html_e( 'If everything is set up correctly, you\'ll see a post representing your event. It should include the event\'s image, title, and a brief description.', 'activitypub-event-bridge' ); ?></li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
@ -151,7 +153,10 @@ WP_Filesystem();
|
||||||
<div id="activitypub-event-bridge-help-accordion-mobilizon" class="activitypub-event-bridge-settings-accordion-panel" hidden="hidden">
|
<div id="activitypub-event-bridge-help-accordion-mobilizon" class="activitypub-event-bridge-settings-accordion-panel" hidden="hidden">
|
||||||
<ol class="activitypub-event-bridge-settings-numbered-list">
|
<ol class="activitypub-event-bridge-settings-numbered-list">
|
||||||
<li><?php \esc_html_e( 'Log into your Mobilizon account.', 'activitypub-event-bridge' ); ?></li>
|
<li><?php \esc_html_e( 'Log into your Mobilizon account.', 'activitypub-event-bridge' ); ?></li>
|
||||||
<li><?php \esc_html_e( 'In the search bar, type or copy the full URL of one of your event pages.', 'activitypub-event-bridge' ); ?></li>
|
<li>
|
||||||
|
<?php \esc_html_e( 'In the search bar, type or copy the full URL of one of your event pages. For example:', 'activitypub-event-bridge' ); ?>
|
||||||
|
<code class="activitypub-event-bridge-settings-example-url"><?php echo \esc_url( $example_event_post ); ?></code>
|
||||||
|
</li>
|
||||||
<li><?php \esc_html_e( 'If everything is set up correctly, you\'ll see a full representation of your WordPress event. This will include the event\'s banner image, title, complete description, start and end times, categories, tags, and whether it\'s an online event.', 'activitypub-event-bridge' ); ?></li>
|
<li><?php \esc_html_e( 'If everything is set up correctly, you\'ll see a full representation of your WordPress event. This will include the event\'s banner image, title, complete description, start and end times, categories, tags, and whether it\'s an online event.', 'activitypub-event-bridge' ); ?></li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
@ -169,7 +174,10 @@ WP_Filesystem();
|
||||||
<p><?php \esc_html_e( 'Of course any other application in the Fediverse should work as well. Most applications support importing external content via searching for the contents full URL.', 'activitypub-event-bridge' ); ?></p>
|
<p><?php \esc_html_e( 'Of course any other application in the Fediverse should work as well. Most applications support importing external content via searching for the contents full URL.', 'activitypub-event-bridge' ); ?></p>
|
||||||
<ol class="activitypub-event-bridge-settings-numbered-list">
|
<ol class="activitypub-event-bridge-settings-numbered-list">
|
||||||
<li><?php \esc_html_e( 'Log into your account on any Fediverse app.', 'activitypub-event-bridge' ); ?></li>
|
<li><?php \esc_html_e( 'Log into your account on any Fediverse app.', 'activitypub-event-bridge' ); ?></li>
|
||||||
<li><?php \esc_html_e( 'In the search bar, type or copy the full URL of one of your event pages (e.g., https://yoursite.com/events/event-name).', 'activitypub-event-bridge' ); ?></li>
|
<li>
|
||||||
|
<?php \esc_html_e( 'In the search bar, type or copy the full URL of one of your event pages. For example:', 'activitypub-event-bridge' ); ?>
|
||||||
|
<code class="activitypub-event-bridge-settings-example-url"><?php echo \esc_url( $example_event_post ); ?></code>
|
||||||
|
</li>
|
||||||
<li><?php \esc_html_e( 'If the application which your are using natively supports ActivityPub events, you should see a representation of your WordPress event. If your application is supports receiving ActivityPub events you will get a post which summarizes the event. Keep in mind that some apps may not support events at all.', 'activitypub-event-bridge' ); ?></li>
|
<li><?php \esc_html_e( 'If the application which your are using natively supports ActivityPub events, you should see a representation of your WordPress event. If your application is supports receiving ActivityPub events you will get a post which summarizes the event. Keep in mind that some apps may not support events at all.', 'activitypub-event-bridge' ); ?></li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue