feat(widgets): expand WidgetAjax routes and ajaxpager wraps

Register category-block/recommend, boards, tag-cloud, categories,
and term endpoints; wrap oneline/comments/users with ajaxpager shells.
This commit is contained in:
2026-07-20 22:57:11 +08:00
parent 5a900d7385
commit 5eb04f4bd2
4 changed files with 148 additions and 11 deletions
+3
View File
@@ -105,7 +105,10 @@ class WidgetOnelinePosts extends \WP_Widget {
if ($title !== '') {
echo $args['before_title'] . esc_html($title) . $args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
$rest = rest_url('aksrt/v1/widgets/oneline-posts');
echo '<div class="ajaxpager" data-aksrt-ajaxpager data-aksrt-ajax-url="' . esc_url($rest) . '">';
echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo '</div>';
echo $args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}