'active', ) ); use Activitypub\Activity\Extended_Object\Event; use Event_Bridge_For_ActivityPub\Setup; $activitypub_plugin_is_active = Setup::get_instance()->is_activitypub_plugin_active(); if ( ! isset( $args ) || ! array_key_exists( 'event_terms', $args ) ) { return; } if ( ! current_user_can( 'manage_options' ) ) { return; } \get_option( 'event_bridge_for_activitypub_event_sources_active', false ); if ( ! isset( $args ) || ! array_key_exists( 'supports_event_sources', $args ) ) { return; } $event_plugins_supporting_event_sources = $args['supports_event_sources']; $selected_plugin = \get_option( 'event_bridge_for_activitypub_integration_used_for_event_sources_feature', '' ); $event_sources_active = \get_option( 'event_bridge_for_activitypub_event_sources_active', false ); $cache_retention_period = \get_option( 'event_bridge_for_activitypub_event_source_cache_retention', DAY_IN_SECONDS ); $event_terms = $args['event_terms']; require_once EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_DIR . '/includes/event-categories.php'; $selected_default_event_category = \get_option( 'event_bridge_for_activitypub_default_event_category', 'MEETING' ); $current_category_mapping = \get_option( 'event_bridge_for_activitypub_event_category_mappings', array() ); ?>

[ap_start_time]
[ap_end_time]
[ap_location]
[ap_hashtags]
[ap_excerpt]
[ap_content]

>

'; foreach ( $plugins_supporting_event_sources as $event_plugin ) { echo '
  • ' . esc_attr( $event_plugin->get_plugin_name() ) . '
  • '; } echo ''; return; } else { $activitypub_plugin_data = get_plugin_data( ACTIVITYPUB_PLUGIN_FILE ); $notice = sprintf( /* translators: 1: The name of the ActivityPub plugin. */ _x( 'In order to use this feature your have to enable the Blog-Actor in the the %2$s settings.', 'admin notice', 'event-bridge-for-activitypub' ), admin_url( 'options-general.php?page=activitypub&tab=settings' ), esc_html( $activitypub_plugin_data['Name'] ) ); $allowed_html = array( 'a' => array( 'href' => true, 'title' => true, ), ); echo '

    ' . \wp_kses( $notice, $allowed_html ) . '

    '; } ?>

    name ); ?>