$length ? mb_substr($text, 0, $length) . '...' : $text; } endif; if (!function_exists('aksrt_widget_ajax_null')) : /** * Empty state for ajax-paged lists (hidden pager stub included). */ function aksrt_widget_ajax_null(string $text = ''): string { if ($text === '') { $text = __('暂无内容', 'aksrt'); } $html = '
' . $user_name . '' . esc_html($time) . '' . $like . '
'; $output .= (string) $args['style'] === 'style_2' ? '' : '' . $content . ''; $output .= '