ACTIVITYPUB_REST_NAMESPACE, 'i18n' => array( 'copied' => __( 'Copied!', 'activitypub' ), 'copy' => __( 'Copy', 'activitypub' ), 'emptyProfileError' => __( 'Please enter a profile URL or handle.', 'activitypub' ), 'genericError' => __( 'An error occurred. Please try again.', 'activitypub' ), 'invalidProfileError' => __( 'Please enter a valid profile URL or handle.', 'activitypub' ), ), ) ); // Add the block wrapper attributes. $wrapper_attributes = get_block_wrapper_attributes( array( 'id' => $block_id, 'class' => 'activitypub-remote-reply reply', 'data-wp-interactive' => 'activitypub/remote-reply', 'data-wp-init' => 'callbacks.init', ) ); $wrapper_context = wp_interactivity_data_wp_context( array( 'blockId' => $block_id, 'commentId' => $comment_id, 'commentURL' => $selected_comment, 'copyButtonText' => __( 'Copy', 'activitypub' ), 'errorMessage' => '', 'isError' => false, 'isLoading' => false, 'modal' => array( 'isOpen' => false ), 'remoteProfile' => '', 'shouldSaveProfile' => true, ) ); wp_interactivity_state( 'activitypub/remote-reply', array( 'hasRemoteUser' => false, 'profileURL' => '', 'template' => '', ) ); ob_start(); ?>

> $block_id . '-modal', 'title' => __( 'Remote Reply', 'activitypub' ), 'content' => $modal_content, ) ); ?>