feat(forum,admin): plate follow-pay MVP, sales column, order type tabs
Wire paid plate follow (admin meta + points/balance purchase + AJAX), re-check plate gate on topics, post list sales column, and order type subtabs; update gap matrix and admin IA map.
This commit is contained in:
@@ -77,6 +77,29 @@ class AKSRT_Admin_Pay_Orders {
|
||||
? AKSRT_Domain_Model::order_status_labels()
|
||||
: [];
|
||||
|
||||
// Type tabs (zibll order subsubsub parity).
|
||||
$type_tabs = [
|
||||
'' => __('全部类型', 'aksrt'),
|
||||
'resource' => __('内容付费', 'aksrt'),
|
||||
'vip' => __('VIP', 'aksrt'),
|
||||
'recharge' => __('充值', 'aksrt'),
|
||||
'shop_product' => __('商城商品', 'aksrt'),
|
||||
'plate_follow' => __('版块关注', 'aksrt'),
|
||||
];
|
||||
echo '<ul class="subsubsub" style="float:none;margin:8px 0 12px;">';
|
||||
$tab_bits = [];
|
||||
foreach ($type_tabs as $tkey => $tlabel) {
|
||||
$url = $this->page_url('aksrt_orders', array_filter([
|
||||
'product_type' => $tkey !== '' ? $tkey : null,
|
||||
'product_id' => $product_id > 0 ? $product_id : null,
|
||||
'status' => ($status !== '' && $status !== 'all') ? $status : null,
|
||||
]));
|
||||
$cls = ($product_type === $tkey) ? 'current' : '';
|
||||
$tab_bits[] = '<li><a class="' . esc_attr($cls) . '" href="' . esc_url($url) . '">' . esc_html($tlabel) . '</a></li>';
|
||||
}
|
||||
echo implode(' | ', $tab_bits);
|
||||
echo '</ul><div style="clear:both;"></div>';
|
||||
|
||||
echo '<form method="get" style="margin:12px 0;">';
|
||||
echo '<input type="hidden" name="page" value="aksrt_orders" />';
|
||||
if ($product_type !== '') {
|
||||
|
||||
Reference in New Issue
Block a user