'active',
)
);
$active_event_plugins = Setup::get_instance()->get_active_event_plugins();
$activitypub_plugin_is_active = Setup::get_instance()->is_activitypub_plugin_active();
$event_bridge_for_activitypub_status_ok = true;
$example_event_post = Health_Check::get_most_recent_event_posts();
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_is_dummy = false;
}
global $wp_filesystem;
WP_Filesystem();
?>
⚠' . \wp_kses( $notice, General_Admin_Notices::ALLOWED_HTML ) . '';
} elseif ( empty( $active_event_plugins ) ) {
$notice = General_Admin_Notices::get_admin_notice_no_supported_event_plugin_active();
echo '
⚠' . \wp_kses( $notice, General_Admin_Notices::ALLOWED_HTML ) . '
';
}
?>
get_plugin_name() ); ?>:
-
%2$s is enabled in the %1$s settings.',
'admin notice',
'event-bridge-for-activitypub'
),
esc_html( get_plugin_data( ACTIVITYPUB_PLUGIN_FILE )['Name'] ),
esc_html( $active_event_plugin->get_plugin_name() ),
admin_url( 'options-general.php?page=activitypub&tab=settings' )
);
} else {
$event_bridge_for_activitypub_status_ok = false;
echo '❌ ';
$status_message_post_type_enabled = sprintf(
/* translators: 1: the name of the event plugin a admin notice is shown. 2: The name of the ActivityPub plugin. */
_x(
'The post type for events of the plugin %2$s is not enabled in the %1$s settings.',
'admin notice',
'event-bridge-for-activitypub'
),
esc_html( get_plugin_data( ACTIVITYPUB_PLUGIN_FILE )['Name'] ),
esc_html( $active_event_plugin->get_plugin_name() ),
admin_url( 'options-general.php?page=activitypub&tab=settings' )
);
}
$allowed_html = array(
'a' => array(
'href' => true,
'title' => true,
),
'b' => array(),
'i' => array(),
);
echo \wp_kses( $status_message_post_type_enabled, $allowed_html );
?>
-
' . \esc_html__( 'Please fix the status issues above first.', 'event-bridge-for-activitypub' ) . '
';
}
?>
element.
$activitypub_query = '' . esc_html( '?activitypub' ) . '
';
$activitypub_url_html = '' . esc_html( $activitypub_url ) . '';
// Translator comment to explain the placeholder.
/* translators: %1$s is the ?activitypub
string, and %2$s is the full URL of an example event */
$raw_string = sprintf( __( 'For more technical users, you can inspect how your event is converted into an ActivityPub object. Simply append %1$s to the end of any single event pages URL to view the raw ActivityStreams JSON data (e.g., %2$s).', 'event-bridge-for-activitypub' ), $activitypub_query, $activitypub_url_html );
// Allowed HTML tags in the string (only and ).
$allowed_html = array(
'a' => array(
'href' => array(),
'target' => array(),
),
'nobr' => array(),
'code' => array(),
);
// Output the formatted string with the allowed HTML elements.
echo wp_kses( $raw_string, $allowed_html );
?>
get_contents( EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_DIR . '/CHANGELOG.md' );
echo esc_html( substr( $changelog, strpos( $changelog, "\n", 180 ) + 1 ) );
?>