feat(admin): express timeline, coupon scope, plate/topic permission fields
Native shipping can query/show express timelines; coupons accept include/exclude/category product_scope; plate meta gains allow_view and add_limit; topic list shows visibility column.
This commit is contained in:
@@ -46,6 +46,7 @@ class AKSRT_Topic_Admin_List {
|
||||
$new['aksrt_locked'] = __('锁定', 'aksrt');
|
||||
$new['aksrt_review'] = __('审核', 'aksrt');
|
||||
$new['aksrt_bbs_type']= __('类型', 'aksrt');
|
||||
$new['aksrt_visibility'] = __('可见性', 'aksrt');
|
||||
$new['aksrt_views'] = __('阅读', 'aksrt');
|
||||
}
|
||||
}
|
||||
@@ -116,6 +117,20 @@ class AKSRT_Topic_Admin_List {
|
||||
echo esc_html($type === 'question' ? __('提问', 'aksrt') : __('标准', 'aksrt'));
|
||||
break;
|
||||
|
||||
case 'aksrt_visibility':
|
||||
$visibility = (string) (get_post_meta($post_id, '_aksrt_visibility', true) ?: 'public');
|
||||
$map = [
|
||||
'public' => __('公开', 'aksrt'),
|
||||
'login' => __('登录', 'aksrt'),
|
||||
'comment' => __('评论', 'aksrt'),
|
||||
'role' => __('角色', 'aksrt'),
|
||||
'credits' => __('积分', 'aksrt'),
|
||||
'pay' => __('付费', 'aksrt'),
|
||||
'moderator' => __('版主', 'aksrt'),
|
||||
];
|
||||
echo esc_html($map[$visibility] ?? $visibility);
|
||||
break;
|
||||
|
||||
case 'aksrt_views':
|
||||
echo esc_html((string) (int) get_post_meta($post_id, '_aksrt_views', true));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user