feat(users): govern profiles and access
Normalize fixed profile fields, profile actions, and the five-column capability matrix for comments, uploads, and downloads.
This commit is contained in:
1 parent
0b06b2c7df
commit
8241570ca2
67 files changed
+780
-1127
No files matched your search
@@ -117,9 +117,16 @@ $downloads = is_array($pay['downloads'] ?? null) ? $pay['downloads'] : [];
|
||||
<div class="aksrt-submit-pay-downloads" data-pay-downloads>
|
||||
<div class="aksrt-submit-pay__row">
|
||||
<strong><?php esc_html_e('付费下载', 'aksrt'); ?></strong>
|
||||
<button type="button" class="but hollow c-blue" data-pay-download-add>
|
||||
<i class="fas fa-plus"></i> <?php esc_html_e('添加资源', 'aksrt'); ?>
|
||||
</button>
|
||||
<span>
|
||||
<button type="button" class="but hollow c-blue" data-pay-download-add>
|
||||
<i class="fas fa-plus"></i> <?php esc_html_e('添加资源', 'aksrt'); ?>
|
||||
</button>
|
||||
<?php if (!empty($ctx['can_upload_file'])) : ?>
|
||||
<button type="button" class="but hollow" data-pay-download-upload>
|
||||
<i class="fas fa-upload"></i> <?php esc_html_e('上传附件', 'aksrt'); ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="aksrt-submit-pay-downloads__list" data-pay-download-list>
|
||||
<?php foreach ($downloads as $i => $row) :
|
||||
@@ -128,8 +135,8 @@ $downloads = is_array($pay['downloads'] ?? null) ? $pay['downloads'] : [];
|
||||
$code = (string) ($row['extract_code'] ?? '');
|
||||
?>
|
||||
<div class="aksrt-submit-pay-downloads__item" data-pay-download-item>
|
||||
<input type="url" class="aksrt-form-input" name="aksrt_pay[downloads][<?php echo (int) $i; ?>][url]" value="<?php echo esc_attr($url); ?>" placeholder="<?php esc_attr_e('资源链接', 'aksrt'); ?>">
|
||||
<input type="text" class="aksrt-form-input" name="aksrt_pay[downloads][<?php echo (int) $i; ?>][label]" value="<?php echo esc_attr($label); ?>" placeholder="<?php esc_attr_e('名称', 'aksrt'); ?>">
|
||||
<input type="url" class="aksrt-form-input" data-pay-download-url name="aksrt_pay[downloads][<?php echo (int) $i; ?>][url]" value="<?php echo esc_attr($url); ?>" placeholder="<?php esc_attr_e('资源链接', 'aksrt'); ?>">
|
||||
<input type="text" class="aksrt-form-input" data-pay-download-label name="aksrt_pay[downloads][<?php echo (int) $i; ?>][label]" value="<?php echo esc_attr($label); ?>" placeholder="<?php esc_attr_e('名称', 'aksrt'); ?>">
|
||||
<input type="text" class="aksrt-form-input" name="aksrt_pay[downloads][<?php echo (int) $i; ?>][extract_code]" value="<?php echo esc_attr($code); ?>" placeholder="<?php esc_attr_e('提取码/备注', 'aksrt'); ?>">
|
||||
<button type="button" class="but c-red cir" data-pay-download-remove title="<?php esc_attr_e('删除', 'aksrt'); ?>"><i class="fas fa-trash"></i></button>
|
||||
</div>
|
||||
@@ -137,8 +144,8 @@ $downloads = is_array($pay['downloads'] ?? null) ? $pay['downloads'] : [];
|
||||
</div>
|
||||
<template data-pay-download-tpl>
|
||||
<div class="aksrt-submit-pay-downloads__item" data-pay-download-item>
|
||||
<input type="url" class="aksrt-form-input" data-name="url" placeholder="<?php esc_attr_e('资源链接', 'aksrt'); ?>">
|
||||
<input type="text" class="aksrt-form-input" data-name="label" placeholder="<?php esc_attr_e('名称', 'aksrt'); ?>">
|
||||
<input type="url" class="aksrt-form-input" data-name="url" data-pay-download-url placeholder="<?php esc_attr_e('资源链接', 'aksrt'); ?>">
|
||||
<input type="text" class="aksrt-form-input" data-name="label" data-pay-download-label placeholder="<?php esc_attr_e('名称', 'aksrt'); ?>">
|
||||
<input type="text" class="aksrt-form-input" data-name="extract_code" placeholder="<?php esc_attr_e('提取码/备注', 'aksrt'); ?>">
|
||||
<button type="button" class="but c-red cir" data-pay-download-remove title="<?php esc_attr_e('删除', 'aksrt'); ?>"><i class="fas fa-trash"></i></button>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user