feat(frontend): single pay-box positions + Zibll cover episodes/slides
Wire pay_box_position to box_top/top/bottom/box_bottom, render download or paywall modules at those slots, and resolve featured_slide/attachment IDs plus video episode chrome for single covers.
This commit is contained in:
1 parent
9c443c808b
commit
619d2bc170
7 files changed
+221
-75
No files matched your search
@@ -35,8 +35,10 @@ class AKSRT_Admin_Schema_Payment {
|
||||
['key' => 'pay_show_user', 'label' => '显示购买用户', 'type' => 'switch', 'default' => true],
|
||||
['key' => 'pay_show_paycount', 'label' => '显示购买次数', 'type' => 'switch', 'default' => true],
|
||||
['key' => 'pay_box_position', 'label' => '付费框位置', 'type' => 'radio', 'default' => 'top', 'options' => [
|
||||
['label' => '内容顶部(正文前)', 'value' => 'top'],
|
||||
['label' => '内容底部(正文后)', 'value' => 'bottom'],
|
||||
['label' => '文章框顶部', 'value' => 'box_top'],
|
||||
['label' => '正文顶部', 'value' => 'top'],
|
||||
['label' => '正文底部', 'value' => 'bottom'],
|
||||
['label' => '文章框底部', 'value' => 'box_bottom'],
|
||||
]],
|
||||
]],
|
||||
['key' => 'download', 'title' => '下载能力', 'fields' => [
|
||||
@@ -282,8 +284,10 @@ class AKSRT_Admin_Schema_Payment {
|
||||
['key' => 'display', 'title' => '展示设置', 'fields' => [
|
||||
['key' => 'pay_mark', 'label' => '付费标记', 'type' => 'input', 'default' => '付费'],
|
||||
['key' => 'pay_box_position', 'label' => '付费框位置', 'type' => 'radio', 'default' => 'top', 'options' => [
|
||||
['label' => '内容顶部(正文前)', 'value' => 'top'],
|
||||
['label' => '内容底部(正文后)', 'value' => 'bottom'],
|
||||
['label' => '文章框顶部', 'value' => 'box_top'],
|
||||
['label' => '正文顶部', 'value' => 'top'],
|
||||
['label' => '正文底部', 'value' => 'bottom'],
|
||||
['label' => '文章框底部', 'value' => 'box_bottom'],
|
||||
]],
|
||||
['key' => 'pay_free_logged_show', 'label' => '登录用户显示免费', 'type' => 'switch', 'default' => false],
|
||||
['key' => 'payment_show_ip', 'label' => '显示用户IP', 'type' => 'switch', 'default' => false],
|
||||
|
||||
Reference in new issue
Block a user