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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user