62
62
63
63
ob_start ();
64
64
?>
65
- <div class="activitypub-dialog__section">
66
- <h4><?php echo esc_html__ ( 'Original Comment URL ' , 'activitypub ' ); ?> </h4>
67
- <div class="activitypub-dialog__description">
68
- <?php echo esc_html__ ( 'Copy and paste the Comment URL into the search field of your favorite fediverse app or server. ' , 'activitypub ' ); ?>
69
- </div>
70
- <div class="activitypub-dialog__button-group">
71
- <input
72
- type="text"
73
- id="profile-handle"
74
- value="<?php echo esc_attr ( $ selected_comment ); ?> "
75
- tabindex="-1"
76
- readonly
77
- aria-readonly="true"
78
- />
79
- <button
80
- type="button"
81
- class="wp-element-button wp-block-button__link"
82
- data-wp-on--click="actions.copyToClipboard"
83
- aria-label="<?php echo esc_attr__ ( 'Copy URL to clipboard ' , 'activitypub ' ); ?> "
84
- >
85
- <span data-wp-text="context.copyButtonText"></span>
86
- </button>
87
- </div>
65
+ <div class="activitypub-dialog__section">
66
+ <h4><?php esc_html_e ( 'Original Comment URL ' , 'activitypub ' ); ?> </h4>
67
+ <div class="activitypub-dialog__description">
68
+ <?php esc_html_e ( 'Copy and paste the Comment URL into the search field of your favorite fediverse app or server. ' , 'activitypub ' ); ?>
69
+ </div>
70
+ <div class="activitypub-dialog__button-group">
71
+ <input
72
+ aria-readonly="true"
73
+ id="profile-handle"
74
+ readonly
75
+ tabindex="-1"
76
+ type="text"
77
+ value="<?php echo esc_attr ( $ selected_comment ); ?> "
78
+ />
79
+ <button
80
+ aria-label="<?php esc_attr_e ( 'Copy URL to clipboard ' , 'activitypub ' ); ?> "
81
+ class="wp-element-button wp-block-button__link"
82
+ data-wp-on--click="actions.copyToClipboard"
83
+ type="button"
84
+ >
85
+ <span data-wp-text="context.copyButtonText"></span>
86
+ </button>
88
87
</div>
89
- <div class="activitypub-dialog__section">
90
- <h4><?php echo esc_html__ ( 'Your Profile ' , 'activitypub ' ); ?> </h4>
91
- <div class="activitypub-dialog__description">
92
- <?php echo esc_html__ ( 'Or, if you know your own profile, we can start things that way! ' , 'activitypub ' ); ?>
93
- </div>
94
- <div class="activitypub-dialog__button-group">
88
+ </div>
89
+ <div class="activitypub-dialog__section">
90
+ <h4><?php esc_html_e ( 'Your Profile ' , 'activitypub ' ); ?> </h4>
91
+ <div class="activitypub-dialog__description">
92
+ <?php esc_html_e ( 'Or, if you know your own profile, we can start things that way! ' , 'activitypub ' ); ?>
93
+ </div>
94
+ <div class="activitypub-dialog__button-group">
95
+ <input
96
+ data-wp-bind--aria-invalid="context.isError"
97
+ data-wp-bind--value="context.remoteProfile"
98
+ data-wp-on--input="actions.updateRemoteProfile"
99
+ data-wp-on--keydown="actions.onInputKeydown"
100
+ id="remote-profile"
101
+ placeholder="
<?php esc_attr_e (
'@[email protected] ' ,
'activitypub ' );
?> "
102
+ type="text"
103
+ />
104
+ <button
105
+ aria-label="<?php esc_attr_e ( 'Reply ' , 'activitypub ' ); ?> "
106
+ class="wp-element-button wp-block-button__link"
107
+ data-wp-bind--disabled="context.isLoading"
108
+ data-wp-on--click="actions.submitRemoteProfile"
109
+ type="button"
110
+ >
111
+ <span data-wp-bind--hidden="context.isLoading"><?php esc_html_e ( 'Reply ' , 'activitypub ' ); ?> </span>
112
+ <span data-wp-bind--hidden="!context.isLoading"><?php esc_html_e ( 'Loading… ' , 'activitypub ' ); ?> </span>
113
+ </button>
114
+ </div>
115
+ <div
116
+ class="activitypub-dialog__error"
117
+ data-wp-bind--hidden="!context.isError"
118
+ data-wp-text="context.errorMessage"
119
+ ></div>
120
+ <div class="activitypub-dialog__remember">
121
+ <label>
95
122
<input
96
- type="text"
97
- id="remote-profile"
98
- placeholder="
<?php echo esc_attr__ (
'@[email protected] ' ,
'activitypub ' );
?> "
99
- data-wp-bind--value="context.remoteProfile"
100
- data-wp-on--input="actions.updateRemoteProfile"
101
- data-wp-on--keydown="actions.onInputKeydown"
102
- data-wp-bind--aria-invalid="context.isError"
123
+ checked
124
+ data-wp-bind--checked="context.shouldSaveProfile"
125
+ data-wp-on--change="actions.toggleRememberProfile"
126
+ type="checkbox"
103
127
/>
104
- <button
105
- type="button"
106
- class="wp-element-button wp-block-button__link"
107
- data-wp-on--click="actions.submitRemoteProfile"
108
- aria-label="<?php echo esc_attr__ ( 'Reply ' , 'activitypub ' ); ?> "
109
- data-wp-bind--disabled="context.isLoading"
110
- >
111
- <span data-wp-bind--hidden="context.isLoading">
112
- <?php echo esc_html__ ( 'Reply ' , 'activitypub ' ); ?>
113
- </span>
114
- <span data-wp-bind--hidden="!context.isLoading">
115
- <?php echo esc_html__ ( 'Loading... ' , 'activitypub ' ); ?>
116
- </span>
117
- </button>
118
- </div>
119
- <div
120
- class="activitypub-dialog__error"
121
- data-wp-bind--hidden="!context.isError"
122
- data-wp-text="context.errorMessage"
123
- ></div>
124
- <div class="activitypub-dialog__remember">
125
- <label>
126
- <input
127
- type="checkbox"
128
- checked
129
- data-wp-bind--checked="context.shouldSaveProfile"
130
- data-wp-on--change="actions.toggleRememberProfile"
131
- />
132
- <?php echo esc_html__ ( 'Save my profile for future comments. ' , 'activitypub ' ); ?>
133
- </label>
134
- </div>
128
+ <?php esc_html_e ( 'Save my profile for future comments. ' , 'activitypub ' ); ?>
129
+ </label>
135
130
</div>
131
+ </div>
136
132
<?php
137
133
$ modal_content = ob_get_clean ();
138
134
@@ -160,7 +156,7 @@ class="comment-reply-link activitypub-remote-profile__link"
160
156
type="button"
161
157
class="activitypub-remote-profile__close wp-element-button wp-block-button__link"
162
158
data-wp-on--click="actions.deleteRemoteUser"
163
- title="<?php echo esc_attr__ ( 'Delete Remote Profile ' , 'activitypub ' ); ?> "
159
+ title="<?php esc_attr_e ( 'Delete Remote Profile ' , 'activitypub ' ); ?> "
164
160
>
165
161
<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="18" height="18" role="img" aria-hidden="true" focusable="false">
166
162
<path d="M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"></path>
@@ -174,14 +170,14 @@ class="comment-reply-link activitypub-remote-reply__link"
174
170
data-wp-on-async--keydown="actions.onReplyLinkKeydown"
175
171
data-wp-bind--hidden="context.hasRemoteUser"
176
172
data-wp-bind--aria-expanded="context.modal.isOpen"
177
- aria-label="<?php echo esc_attr__ ( 'Reply on the Fediverse ' , 'activitypub ' ); ?> "
173
+ aria-label="<?php esc_attr_e ( 'Reply on the Fediverse ' , 'activitypub ' ); ?> "
178
174
aria-haspopup="dialog"
179
175
aria-controls="modal-heading"
180
176
role="button"
181
177
tabindex="0"
182
178
hidden
183
179
>
184
- <?php echo esc_html__ ( 'Reply on the Fediverse ' , 'activitypub ' ); ?>
180
+ <?php esc_html_e ( 'Reply on the Fediverse ' , 'activitypub ' ); ?>
185
181
</a>
186
182
187
183
<?php
0 commit comments