2023-07-02 01:26:59 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Partial: Comment Edit Template
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Fictioneer
|
|
|
|
* @since 5.4.5
|
2024-12-06 17:38:32 +01:00
|
|
|
* @since 5.27.0 - Updated for Stimulus Controller.
|
2023-07-02 01:26:59 +02:00
|
|
|
*/
|
|
|
|
|
2023-08-20 20:21:48 +02:00
|
|
|
|
|
|
|
// No direct access!
|
|
|
|
defined( 'ABSPATH' ) OR exit;
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2024-12-06 17:38:32 +01:00
|
|
|
<template id="template-comment-inline-edit-form">
|
|
|
|
<div class="fictioneer-comment__edit-actions" data-fictioneer-comment-target="inlineEditButtons">
|
2023-07-02 01:26:59 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="comment-inline-edit-submit button"
|
|
|
|
data-enabled="<?php echo esc_attr_x( 'Submit Changes', 'Comment inline edit submit button.', 'fictioneer' ); ?>"
|
|
|
|
data-disabled="<?php esc_attr_e( 'Updating…', 'fictioneer' ); ?>"
|
2024-12-06 17:38:32 +01:00
|
|
|
data-fictioneer-comment-target="inlineEditSubmit"
|
|
|
|
data-action="click->fictioneer-comment#submitEditInline"
|
2023-07-02 01:26:59 +02:00
|
|
|
><?php _ex( 'Submit Changes', 'Comment inline edit submit button.', 'fictioneer' ); ?></button>
|
2024-12-06 17:38:32 +01:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="comment-inline-edit-cancel button _secondary"
|
|
|
|
data-action="click->fictioneer-comment#cancelEditInline"
|
|
|
|
><?php _ex( 'Cancel', 'Comment inline edit cancel button.', 'fictioneer' ); ?></button>
|
2023-07-02 01:26:59 +02:00
|
|
|
</div>
|
|
|
|
</template>
|