feat(widgets): marketing card empty states + feature intro media lazy

Admin null shells for feature/highlights/cover/icon/combo/tilt/buttons
and video player; feature intro lazy images + deferred inactive videos.
This commit is contained in:
kate522 committed 2026-07-21 11:22:49 +08:00
1 parent cf2eb5e6dc
commit c8f80806d8
9 files changed
+70 -5

No files matched your search

+3 -2
View File
@@ -36,8 +36,9 @@ class WidgetVideoPlayer extends \WP_Widget {
if ($video_url === '') {
if (current_user_can('manage_options')) {
echo $args['before_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo '<div class="c-red muted-box mb20"><b>' . esc_html__('视频播放器:', 'aksrt') . '</b>' .
esc_html__('请配置视频 URL 或移出该模块', 'aksrt') . '</div>';
echo function_exists('aksrt_get_widget_null')
? aksrt_get_widget_null(__('请配置视频 URL', 'aksrt')) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
: '<div class="c-red muted-box mb20"><b>' . esc_html__('视频播放器:', 'aksrt') . '</b>' . esc_html__('请配置视频 URL 或移出该模块', 'aksrt') . '</div>';
echo $args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
return;