feat(widgets): lang switch UX, product oneline shell, forum polish

Lang switch adds inline/hide-current + admin empty; product oneline
classname/defaults; forum hot empty helper + recent plate option + CSS.
This commit is contained in:
2026-07-21 10:20:08 +08:00
parent 9e9f3d00e9
commit 711cbbbd2b
5 changed files with 198 additions and 49 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ class WidgetForumHotTopics extends \WP_Widget {
$items = self::render_items_html($q, ($page - 1) * $count);
$html = $items !== '' ? '<ul class="aksrt-forum-widget__list">' . $items . '</ul>' : '';
if ($html === '' && $page === 1) {
$html = '<p class="aksrt-forum-widget__empty ajax-item">' . esc_html__('暂无话题', 'aksrt') . '</p>';
$html = function_exists('aksrt_get_ajax_null') ? aksrt_get_ajax_null(__('暂无话题', 'aksrt')) : '<p class="aksrt-forum-widget__empty ajax-item">' . esc_html__('暂无话题', 'aksrt') . '</p>';
}
$max_pages = max(1, (int) $q->max_num_pages);
$total = (int) $q->found_posts;