进行了一些小修复
This commit is contained in:
@@ -66,13 +66,21 @@ if ($edit_post) {
|
||||
];
|
||||
} elseif (!empty($post_meta['featured_slide'])) {
|
||||
$slides = array_filter(array_map('trim', explode(',', (string) $post_meta['featured_slide'])));
|
||||
$featured_args['type'] = 'slide';
|
||||
$featured_args['data'] = array_map(static function ($u) {
|
||||
return ['url' => $u];
|
||||
}, $slides);
|
||||
$slide_data = [];
|
||||
foreach ($slides as $attachment_id) {
|
||||
$id = absint($attachment_id);
|
||||
$url = $id > 0 ? wp_get_attachment_image_url($id, 'full') : false;
|
||||
if ($url) {
|
||||
$slide_data[] = ['id' => $id, 'url' => $url];
|
||||
}
|
||||
}
|
||||
if ($slide_data) {
|
||||
$featured_args['type'] = 'slide';
|
||||
$featured_args['data'] = $slide_data;
|
||||
}
|
||||
} else {
|
||||
$thumb = get_the_post_thumbnail_url($edit_post, 'full')
|
||||
?: (string) ($post_meta['thumbnail_url'] ?? $post_meta['cover_images'] ?? '');
|
||||
?: (string) ($post_meta['thumbnail_url'] ?? $post_meta['cover_image'] ?? '');
|
||||
if ($thumb !== '') {
|
||||
$featured_args['type'] = 'image';
|
||||
$featured_args['data'] = ['url' => $thumb];
|
||||
|
||||
@@ -11,8 +11,7 @@ $settings = $ctx['settings'];
|
||||
$edit_post = $ctx['edit_post'];
|
||||
$is_can_new = !empty($ctx['is_can_new']);
|
||||
?>
|
||||
<div class="aksrt-submit-main">
|
||||
<div class="aksrt-submit-panel aksrt-submit-panel--editor">
|
||||
<div class="zib-widget full-widget-sm editor-main-box" style="min-height:60vh;">
|
||||
<?php
|
||||
$featured_path = get_template_directory() . '/templates/parts/submit/featured.php';
|
||||
if (file_exists($featured_path)) {
|
||||
@@ -20,27 +19,29 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="aksrt-submit-title-wrap">
|
||||
<div class="relative newposts-title">
|
||||
<textarea
|
||||
name="post_title"
|
||||
id="submit-title"
|
||||
class="aksrt-submit-title"
|
||||
class="line-form-input input-lg new-title"
|
||||
tabindex="1"
|
||||
rows="1"
|
||||
maxlength="<?php echo esc_attr((string) ((int) ($settings['title_max'] ?? 30) * 4)); ?>"
|
||||
placeholder="<?php echo esc_attr((string) ($settings['title_placeholder'] ?? __('请输入标题', 'aksrt'))); ?>"
|
||||
data-auto-height
|
||||
data-max-height="<?php echo wp_is_mobile() ? '110' : '78'; ?>"
|
||||
><?php echo esc_textarea((string) $ctx['current_title']); ?></textarea>
|
||||
<i class="line-form-line"></i>
|
||||
</div>
|
||||
|
||||
<?php if (!$is_can_new) : ?>
|
||||
<div class="aksrt-submit-nocan">
|
||||
<div class="aksrt-submit-nocan__icon"><i class="fa fas fa-lock"></i></div>
|
||||
<div class="flex jc newposts-nocan" style="min-height:50vh;">
|
||||
<div class="text-center"><div><i class="fa fas fa-lock"></i></div>
|
||||
<p><?php esc_html_e('无法发布', 'aksrt'); ?></p>
|
||||
<p class="muted"><?php esc_html_e('你当前没有前台投稿权限,请联系管理员开通。', 'aksrt'); ?></p>
|
||||
<p class="muted-color"><?php esc_html_e('你当前没有前台投稿权限,请联系管理员开通。', 'aksrt'); ?></p></div>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="aksrt-submit-editor-wrap">
|
||||
<div class="newposts-editor">
|
||||
<?php
|
||||
$toolbar1 = 'formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,blockquote,code,fullscreen';
|
||||
$plugins = 'paste,link,lists,fullscreen,wordpress,wplink,charmap';
|
||||
@@ -64,7 +65,7 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
</div>
|
||||
|
||||
<?php if (!empty($ctx['can_hide']) || !empty($ctx['can_pay']) || !empty($ctx['can_upload_img'])) : ?>
|
||||
<div class="aksrt-submit-shortcode-tools">
|
||||
<div class="newposts-editor-tools">
|
||||
<?php if (!empty($ctx['can_upload_img'])) : ?>
|
||||
<button type="button" class="but" data-insert-upload-image>
|
||||
<i class="fa fas fa-image"></i> <?php esc_html_e('上传图片', 'aksrt'); ?>
|
||||
@@ -90,8 +91,8 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="aksrt-submit-status-row">
|
||||
<span class="aksrt-submit-view-btn">
|
||||
<div class="flex ac jsb mt10">
|
||||
<span class="view-btn aksrt-submit-view-btn">
|
||||
<?php if ($edit_post) : ?>
|
||||
<a class="but c-blue" target="_blank" href="<?php echo esc_url(get_permalink($edit_post)); ?>">
|
||||
<i class="fa fas fa-file-alt"></i> <?php esc_html_e('预览文章', 'aksrt'); ?>
|
||||
@@ -121,11 +122,10 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<span class="aksrt-submit-modified-time">
|
||||
<span class="modified-time aksrt-submit-modified-time">
|
||||
<?php if (!empty($ctx['post_modified'])) : ?>
|
||||
<span class="badg"><?php echo esc_html(sprintf(__('最后保存:%s', 'aksrt'), $ctx['post_modified'])); ?></span>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -21,51 +21,50 @@ $can_image = !empty($ctx['can_cover_image']);
|
||||
$can_slide = !empty($ctx['can_cover_slide']);
|
||||
$can_video = !empty($ctx['can_cover_video']);
|
||||
?>
|
||||
<div class="aksrt-submit-featured featured-edit"
|
||||
<div class="featured-edit<?php echo $type !== '' ? ' featured-loaded ' . esc_attr($type) : ''; ?>"
|
||||
data-featured-args="<?php echo esc_attr(wp_json_encode($args)); ?>"
|
||||
data-can-image="<?php echo $can_image ? '1' : '0'; ?>"
|
||||
data-can-slide="<?php echo $can_slide ? '1' : '0'; ?>"
|
||||
data-can-video="<?php echo $can_video ? '1' : '0'; ?>">
|
||||
<div class="aksrt-submit-featured__preview" data-featured-preview>
|
||||
<div class="featured-preview" data-featured-preview>
|
||||
<?php if ($type === 'image' && !empty($data['url'])) : ?>
|
||||
<img src="<?php echo esc_url((string) $data['url']); ?>" alt="">
|
||||
<?php elseif ($type === 'slide' && is_array($data) && !empty($data[0]['url'])) : ?>
|
||||
<img src="<?php echo esc_url((string) $data[0]['url']); ?>" alt="">
|
||||
<span class="aksrt-submit-featured__badge"><i class="fa fas fa-image"></i></span>
|
||||
<span class="featured-type-badge"><i class="fa fas fa-image"></i></span>
|
||||
<?php elseif ($type === 'video') : ?>
|
||||
<?php if (!empty($data['pic'])) : ?>
|
||||
<img src="<?php echo esc_url((string) $data['pic']); ?>" alt="">
|
||||
<?php else : ?>
|
||||
<div class="aksrt-submit-featured__video-placeholder"><i class="fa fas fa-play"></i></div>
|
||||
<div class="featured-video-placeholder"><i class="fa fas fa-play"></i></div>
|
||||
<?php endif; ?>
|
||||
<span class="aksrt-submit-featured__badge"><i class="fa fas fa-video"></i></span>
|
||||
<span class="featured-type-badge"><i class="fa fas fa-video"></i></span>
|
||||
<?php else : ?>
|
||||
<div class="aksrt-submit-featured__empty">
|
||||
<div class="featured-empty">
|
||||
<i class="fa fas fa-image"></i>
|
||||
<span><?php esc_html_e('设置文章封面', 'aksrt'); ?></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="aksrt-submit-featured__actions">
|
||||
<div class="btns-full flex ac jc">
|
||||
<?php if ($can_image) : ?>
|
||||
<button type="button" class="but" data-featured-action="image">
|
||||
<button type="button" class="but btn-image" data-featured-action="image">
|
||||
<i class="fa fas fa-image"></i> <?php esc_html_e('图片', 'aksrt'); ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<?php if ($can_slide) : ?>
|
||||
<button type="button" class="but" data-featured-action="slide">
|
||||
<button type="button" class="but btn-slide" data-featured-action="slide">
|
||||
<i class="fa fas fa-image"></i> <?php esc_html_e('幻灯片', 'aksrt'); ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<?php if ($can_video) : ?>
|
||||
<button type="button" class="but" data-featured-action="video">
|
||||
<button type="button" class="but btn-video" data-featured-action="video">
|
||||
<i class="fa fas fa-video"></i> <?php esc_html_e('视频', 'aksrt'); ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<button type="button" class="but c-red" data-featured-action="close" <?php echo $type === '' ? 'hidden' : ''; ?>>
|
||||
<button type="button" class="but c-red btn-delete" data-featured-action="close" <?php echo $type === '' ? 'hidden' : ''; ?>>
|
||||
<i class="fa fas fa-trash-alt"></i> <?php esc_html_e('清除', 'aksrt'); ?>
|
||||
</button>
|
||||
</div>
|
||||
<input type="hidden" name="featured_type" value="<?php echo esc_attr($type); ?>" data-featured-type>
|
||||
<input type="hidden" name="featured_data" value="<?php echo esc_attr(wp_json_encode(['type' => $type, 'data' => $data])); ?>" data-featured-json>
|
||||
</div>
|
||||
|
||||
@@ -1,163 +1,87 @@
|
||||
<?php
|
||||
/**
|
||||
* Pay content sidebar card.
|
||||
*
|
||||
* @var array $ctx
|
||||
* @package AKSRT
|
||||
*/
|
||||
/** @var array $ctx */
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
if (empty($ctx['can_pay'])) {
|
||||
return;
|
||||
}
|
||||
if (empty($ctx['can_pay'])) return;
|
||||
|
||||
$settings = $ctx['settings'];
|
||||
$pay = is_array($ctx['pay_meta'] ?? null) ? $ctx['pay_meta'] : [];
|
||||
$enabled = !empty($pay['pay_type']) && ($pay['pay_type'] !== 'no');
|
||||
$modo = (($pay['pay_modo'] ?? '0') === 'points') ? 'points' : '0';
|
||||
$settings = $ctx['settings'];
|
||||
$pay = is_array($ctx['pay_meta'] ?? null) ? $ctx['pay_meta'] : [];
|
||||
$enabled = !empty($pay['pay_type']) && $pay['pay_type'] !== 'no';
|
||||
$modo = ($pay['pay_modo'] ?? '0') === 'points' ? 'points' : '0';
|
||||
$points_on = !empty($ctx['points_enabled']);
|
||||
$vip_manual = !empty($settings['pay_vip_price_s']);
|
||||
$vip1_on = !empty($ctx['vip']['vip1_enabled']);
|
||||
$vip2_on = !empty($ctx['vip']['vip2_enabled']);
|
||||
$manual = !empty($settings['pay_vip_price_s']);
|
||||
$vip1_on = !empty($ctx['vip']['vip1_enabled']);
|
||||
$vip2_on = !empty($ctx['vip']['vip2_enabled']);
|
||||
$vip1_name = (string) ($ctx['vip']['vip1_name'] ?? 'VIP1');
|
||||
$vip2_name = (string) ($ctx['vip']['vip2_name'] ?? 'VIP2');
|
||||
$downloads = is_array($pay['downloads'] ?? null) ? $pay['downloads'] : [];
|
||||
|
||||
if (!function_exists('aksrt_submit_pay_line')) {
|
||||
function aksrt_submit_pay_line(string $label, string $name, string $value, string $step): void {
|
||||
?>
|
||||
<div class="relative mt6"><div class="flex ab"><div class="muted-color mb6 flex0"><?php echo esc_html($label); ?></div><input type="number" min="0" step="<?php echo esc_attr($step); ?>" name="<?php echo esc_attr($name); ?>" value="<?php echo esc_attr($value); ?>" class="line-form-input em2x key-color text-right"><i class="line-form-line"></i></div></div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="aksrt-submit-panel aksrt-submit-pay dependency-box" data-pay-box>
|
||||
<div class="aksrt-submit-panel__title"><?php esc_html_e('付费内容', 'aksrt'); ?></div>
|
||||
<div class="aksrt-submit-panel__body">
|
||||
<div class="aksrt-submit-pay__row">
|
||||
<span><?php esc_html_e('内容付费', 'aksrt'); ?></span>
|
||||
<label class="aksrt-switch">
|
||||
<input type="checkbox" name="pay_enabled" value="1" <?php checked($enabled); ?> data-pay-toggle>
|
||||
<span class="aksrt-switch__ui"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="aksrt-submit-pay__body" data-pay-fields <?php echo $enabled ? '' : 'hidden'; ?>>
|
||||
<?php if ($points_on) : ?>
|
||||
<div class="aksrt-submit-pay__row">
|
||||
<span><?php esc_html_e('支付类型', 'aksrt'); ?></span>
|
||||
<div class="aksrt-submit-segmented">
|
||||
<button type="button" class="but <?php echo $modo !== 'points' ? 'active' : ''; ?>" data-pay-modo="0"><?php esc_html_e('现金', 'aksrt'); ?></button>
|
||||
<button type="button" class="but <?php echo $modo === 'points' ? 'active' : ''; ?>" data-pay-modo="points"><?php esc_html_e('积分', 'aksrt'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="aksrt_pay[pay_modo]" value="<?php echo esc_attr($modo); ?>" data-pay-modo-input>
|
||||
<input type="hidden" name="aksrt_pay[pay_type]" value="<?php echo esc_attr((string) ($pay['pay_type'] ?? 'reading')); ?>" data-pay-type-input>
|
||||
|
||||
<div data-pay-cash <?php echo $modo === 'points' ? 'hidden' : ''; ?>>
|
||||
<label class="aksrt-submit-field">
|
||||
<span><?php esc_html_e('设置价格', 'aksrt'); ?></span>
|
||||
<input type="number" step="0.01" min="0" name="aksrt_pay[price]" class="aksrt-form-input" value="<?php echo esc_attr((string) ($pay['price'] ?? '')); ?>">
|
||||
</label>
|
||||
<?php if ($vip_manual && $vip1_on) : ?>
|
||||
<label class="aksrt-submit-field">
|
||||
<span><?php echo esc_html(sprintf(__('%s 价格', 'aksrt'), $vip1_name)); ?></span>
|
||||
<input type="number" step="0.01" min="0" name="aksrt_pay[vip1_price]" class="aksrt-form-input" value="<?php echo esc_attr((string) ($pay['vip1_price'] ?? '')); ?>">
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
<?php if ($vip_manual && $vip2_on) : ?>
|
||||
<label class="aksrt-submit-field">
|
||||
<span><?php echo esc_html(sprintf(__('%s 价格', 'aksrt'), $vip2_name)); ?></span>
|
||||
<input type="number" step="0.01" min="0" name="aksrt_pay[vip2_price]" class="aksrt-form-input" value="<?php echo esc_attr((string) ($pay['vip2_price'] ?? '')); ?>">
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div data-pay-points <?php echo $modo !== 'points' ? 'hidden' : ''; ?>>
|
||||
<label class="aksrt-submit-field">
|
||||
<span><?php esc_html_e('设置积分', 'aksrt'); ?></span>
|
||||
<input type="number" step="1" min="0" name="aksrt_pay[points_price]" class="aksrt-form-input" value="<?php echo esc_attr((string) ($pay['points_price'] ?? '')); ?>">
|
||||
</label>
|
||||
<?php if ($vip_manual && $vip1_on) : ?>
|
||||
<label class="aksrt-submit-field">
|
||||
<span><?php echo esc_html(sprintf(__('%s 积分', 'aksrt'), $vip1_name)); ?></span>
|
||||
<input type="number" step="1" min="0" name="aksrt_pay[vip1_points]" class="aksrt-form-input" value="<?php echo esc_attr((string) ($pay['vip1_points'] ?? '')); ?>">
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
<?php if ($vip_manual && $vip2_on) : ?>
|
||||
<label class="aksrt-submit-field">
|
||||
<span><?php echo esc_html(sprintf(__('%s 积分', 'aksrt'), $vip2_name)); ?></span>
|
||||
<input type="number" step="1" min="0" name="aksrt_pay[vip2_points]" class="aksrt-form-input" value="<?php echo esc_attr((string) ($pay['vip2_points'] ?? '')); ?>">
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="aksrt-submit-pay__row">
|
||||
<span><?php esc_html_e('购买限制', 'aksrt'); ?></span>
|
||||
<select name="aksrt_pay[pay_limit]" class="form-control">
|
||||
<?php $pl = (int) ($pay['pay_limit'] ?? 0); ?>
|
||||
<option value="0" <?php selected($pl, 0); ?>><?php esc_html_e('所有人可购', 'aksrt'); ?></option>
|
||||
<option value="1" <?php selected($pl, 1); ?>><?php esc_html_e('仅 VIP1 及以上', 'aksrt'); ?></option>
|
||||
<option value="2" <?php selected($pl, 2); ?>><?php esc_html_e('仅 VIP2', 'aksrt'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="aksrt-submit-pay__row">
|
||||
<span><?php esc_html_e('登录后可购', 'aksrt'); ?></span>
|
||||
<label class="aksrt-switch">
|
||||
<input type="checkbox" name="aksrt_pay[require_login]" value="1" <?php checked(!empty($pay['require_login'])); ?>>
|
||||
<span class="aksrt-switch__ui"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="aksrt-submit-pay__row">
|
||||
<span><?php esc_html_e('允许优惠码', 'aksrt'); ?></span>
|
||||
<label class="aksrt-switch">
|
||||
<input type="checkbox" name="aksrt_pay[coupon_s]" value="1" <?php checked(!empty($pay['coupon_s'])); ?>>
|
||||
<span class="aksrt-switch__ui"></span>
|
||||
</label>
|
||||
</div>
|
||||
<label class="aksrt-submit-field">
|
||||
<span><?php esc_html_e('优惠说明', 'aksrt'); ?></span>
|
||||
<input type="text" class="aksrt-form-input" name="aksrt_pay[coupon_desc]" value="<?php echo esc_attr((string) ($pay['coupon_desc'] ?? '')); ?>" placeholder="<?php esc_attr_e('收银台展示的优惠提示', 'aksrt'); ?>">
|
||||
</label>
|
||||
|
||||
<?php if (!empty($ctx['can_pay_download'])) : ?>
|
||||
<div class="aksrt-submit-pay-downloads" data-pay-downloads>
|
||||
<div class="aksrt-submit-pay__row">
|
||||
<strong><?php esc_html_e('付费下载', 'aksrt'); ?></strong>
|
||||
<span>
|
||||
<button type="button" class="but hollow c-blue" data-pay-download-add>
|
||||
<i class="fa 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="fa 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) :
|
||||
$url = (string) ($row['url'] ?? '');
|
||||
$label = (string) ($row['label'] ?? '');
|
||||
$code = (string) ($row['extract_code'] ?? '');
|
||||
?>
|
||||
<div class="aksrt-submit-pay-downloads__item" data-pay-download-item>
|
||||
<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="fa fas fa-trash-alt"></i></button>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</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" 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="fa fas fa-trash-alt"></i></button>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<p class="aksrt-submit-hint"><?php esc_html_e('请确保已经在文中添加了付费可见的隐藏内容', 'aksrt'); ?></p>
|
||||
</div>
|
||||
|
||||
<p class="aksrt-submit-hint" data-pay-off-hint <?php echo $enabled ? 'hidden' : ''; ?>>
|
||||
<?php esc_html_e('如果您在文章中添加了付费可见的隐藏内容,请在此设置付费功能', 'aksrt'); ?>
|
||||
</p>
|
||||
<div class="zib-widget dependency-box mb10-sm newpost-pay-box" data-pay-box>
|
||||
<div class="title-theme mb10"><?php esc_html_e('付费内容', 'aksrt'); ?></div>
|
||||
<div class="flex ac jsb padding-h10 border-bottom">
|
||||
<div class="flex ac"><?php esc_html_e('内容付费', 'aksrt'); ?></div>
|
||||
<label class="form-switch-label"><input class="hide" type="checkbox" name="pay_enabled" value="1" <?php checked($enabled); ?> data-pay-toggle><span class="form-switch flex0"></span></label>
|
||||
</div>
|
||||
|
||||
<div data-pay-fields <?php echo $enabled ? '' : 'hidden'; ?>>
|
||||
<?php if ($points_on) : ?>
|
||||
<div class="flex ac jsb padding-h10">
|
||||
<div class="flex ac"><?php esc_html_e('支付类型', 'aksrt'); ?></div>
|
||||
<div class="but-average radius em09">
|
||||
<button type="button" class="but p2-10 pointer<?php echo $modo !== 'points' ? ' active' : ''; ?>" data-pay-modo="0"><?php esc_html_e('现金支付', 'aksrt'); ?></button>
|
||||
<button type="button" class="but p2-10 pointer<?php echo $modo === 'points' ? ' active' : ''; ?>" data-pay-modo="points"><?php esc_html_e('积分支付', 'aksrt'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="aksrt_pay[pay_modo]" value="<?php echo esc_attr($modo); ?>" data-pay-modo-input>
|
||||
<input type="hidden" name="aksrt_pay[pay_type]" value="<?php echo esc_attr((string) ($pay['pay_type'] ?? 'reading')); ?>" data-pay-type-input>
|
||||
|
||||
<div class="mt10 newpost-pay-price" data-pay-cash <?php echo $modo === 'points' ? 'hidden' : ''; ?>>
|
||||
<?php aksrt_submit_pay_line(__('设置价格', 'aksrt'), 'aksrt_pay[price]', (string) ($pay['price'] ?? ''), '0.01'); ?>
|
||||
<?php if ($manual && $vip1_on) aksrt_submit_pay_line(sprintf(__('%s价格', 'aksrt'), $vip1_name), 'aksrt_pay[vip1_price]', (string) ($pay['vip1_price'] ?? ''), '0.01'); ?>
|
||||
<?php if ($manual && $vip2_on) aksrt_submit_pay_line(sprintf(__('%s价格', 'aksrt'), $vip2_name), 'aksrt_pay[vip2_price]', (string) ($pay['vip2_price'] ?? ''), '0.01'); ?>
|
||||
<?php if ($manual && ($vip1_on || $vip2_on)) : ?><div class="px12 mt6 muted-color"><?php esc_html_e('会员价不能高于普通价,为0则为会员免费', 'aksrt'); ?></div><?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="mt10 newpost-pay-price" data-pay-points <?php echo $modo !== 'points' ? 'hidden' : ''; ?>>
|
||||
<?php aksrt_submit_pay_line(__('设置积分', 'aksrt'), 'aksrt_pay[points_price]', (string) ($pay['points_price'] ?? ''), '1'); ?>
|
||||
<?php if ($manual && $vip1_on) aksrt_submit_pay_line(sprintf(__('%s积分', 'aksrt'), $vip1_name), 'aksrt_pay[vip1_points]', (string) ($pay['vip1_points'] ?? ''), '1'); ?>
|
||||
<?php if ($manual && $vip2_on) aksrt_submit_pay_line(sprintf(__('%s积分', 'aksrt'), $vip2_name), 'aksrt_pay[vip2_points]', (string) ($pay['vip2_points'] ?? ''), '1'); ?>
|
||||
<?php if ($manual && ($vip1_on || $vip2_on)) : ?><div class="px12 mt6 muted-color"><?php esc_html_e('会员价不能高于普通价,为0则为会员免费', 'aksrt'); ?></div><?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($ctx['can_pay_download'])) : ?>
|
||||
<div class="mt10 pay-dawnload-edit" data-pay-downloads>
|
||||
<div class="flex ac jsb padding-h10">
|
||||
<b><?php esc_html_e('付费下载', 'aksrt'); ?></b>
|
||||
<div>
|
||||
<button type="button" class="pay-dawnload-add but hollow p2-10 px12 c-blue" data-pay-download-add><i class="fa fas fa-plus mr3"></i><?php esc_html_e('添加资源', 'aksrt'); ?></button>
|
||||
<?php if (!empty($ctx['can_upload_file'])) : ?><button type="button" class="but hollow p2-10 px12" data-pay-download-upload><i class="fa fas fa-upload mr3"></i><?php esc_html_e('上传附件', 'aksrt'); ?></button><?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt10 px12 lists-box" data-pay-download-list>
|
||||
<?php foreach ($downloads as $index => $row) : ?>
|
||||
<div class="flex ac jsb lists-item" data-pay-download-item>
|
||||
<input class="form-control flex1" type="url" data-pay-download-url name="aksrt_pay[downloads][<?php echo (int) $index; ?>][url]" value="<?php echo esc_attr((string) ($row['url'] ?? '')); ?>" placeholder="<?php esc_attr_e('资源链接', 'aksrt'); ?>">
|
||||
<input class="form-control" type="text" data-pay-download-label name="aksrt_pay[downloads][<?php echo (int) $index; ?>][label]" value="<?php echo esc_attr((string) ($row['label'] ?? '')); ?>" placeholder="<?php esc_attr_e('名称', 'aksrt'); ?>">
|
||||
<input class="form-control" type="text" name="aksrt_pay[downloads][<?php echo (int) $index; ?>][extract_code]" value="<?php echo esc_attr((string) ($row['extract_code'] ?? '')); ?>" placeholder="<?php esc_attr_e('提取码/备注', 'aksrt'); ?>">
|
||||
<button type="button" class="but cir c-red" data-pay-download-remove><i class="fa fas fa-trash"></i></button>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<template data-pay-download-tpl><div class="flex ac jsb lists-item" data-pay-download-item><input class="form-control flex1" type="url" data-name="url" data-pay-download-url placeholder="<?php esc_attr_e('资源链接', 'aksrt'); ?>"><input class="form-control" type="text" data-name="label" data-pay-download-label placeholder="<?php esc_attr_e('名称', 'aksrt'); ?>"><input class="form-control" type="text" data-name="extract_code" placeholder="<?php esc_attr_e('提取码/备注', 'aksrt'); ?>"><button type="button" class="but cir c-red" data-pay-download-remove><i class="fa fas fa-trash"></i></button></div></template>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="em09 mt10 muted-2-color"><?php esc_html_e('请确保已经在文中添加了付费可见的隐藏内容或已添加付费下载内容', 'aksrt'); ?></div>
|
||||
</div>
|
||||
<div class="em09 mt10 muted-2-color" data-pay-off-hint <?php echo $enabled ? 'hidden' : ''; ?>><?php esc_html_e('如果您在文章中添加了付费可见的隐藏内容或需要设置付费下载资源,请在此设置付费功能', 'aksrt'); ?></div>
|
||||
</div>
|
||||
|
||||
@@ -1,85 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Submit actions + drafts list.
|
||||
*
|
||||
* @var array $ctx
|
||||
* @package AKSRT
|
||||
*/
|
||||
/** @var array $ctx */
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
$settings = $ctx['settings'];
|
||||
$settings = $ctx['settings'];
|
||||
$is_can_new = !empty($ctx['is_can_new']);
|
||||
$edit_post = $ctx['edit_post'];
|
||||
$status = (string) $ctx['post_status'];
|
||||
$can_draft = !empty($ctx['user_id']) && empty($ctx['is_guest']) && !empty($settings['draft_save']);
|
||||
if ($edit_post && in_array($status, ['publish', 'pending'], true)) {
|
||||
// Still allow draft button? legacy hides draft for publish/pending.
|
||||
$can_draft = false;
|
||||
}
|
||||
$status = (string) $ctx['post_status'];
|
||||
$can_draft = !empty($ctx['user_id'])
|
||||
&& empty($ctx['is_guest'])
|
||||
&& !empty($settings['draft_save'])
|
||||
&& !in_array($status, ['publish', 'pending'], true);
|
||||
?>
|
||||
<div class="aksrt-submit-panel">
|
||||
<div class="aksrt-submit-panel__body aksrt-submit-actions">
|
||||
<p class="aksrt-submit-ready"><?php esc_html_e('Are you ready', 'aksrt'); ?></p>
|
||||
|
||||
<div class="zib-widget">
|
||||
<div class="text-center">
|
||||
<p class="separator muted-3-color theme-box"><?php esc_html_e('Are you ready', 'aksrt'); ?></p>
|
||||
<input type="hidden" name="posts_id" value="<?php echo esc_attr((string) (int) $ctx['edit_id']); ?>">
|
||||
<input type="hidden" name="status" id="submit-status" value="pending">
|
||||
<input type="hidden" name="_nonce" value="<?php echo esc_attr(wp_create_nonce('aksrt_submit')); ?>">
|
||||
|
||||
<?php if (!$is_can_new) : ?>
|
||||
<p class="aksrt-submit-hint"><?php esc_html_e('暂无发布权限', 'aksrt'); ?></p>
|
||||
<p class="em09 muted-3-color theme-box"><?php esc_html_e('暂无发布权限', 'aksrt'); ?></p>
|
||||
<?php else : ?>
|
||||
<?php if (!empty($ctx['is_guest'])) : ?>
|
||||
<p class="aksrt-submit-hint"><?php esc_html_e('您当前未登录,不能保存草稿,文章提交后不可再修改!', 'aksrt'); ?></p>
|
||||
<p class="em09 muted-3-color theme-box"><?php esc_html_e('您当前未登录,不能保存草稿,文章提交后不可再修改!', 'aksrt'); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (function_exists('aksrt_is_captcha_enabled_for') && function_exists('aksrt_render_captcha') && aksrt_is_captcha_enabled_for('front_submit')) : ?>
|
||||
<div class="aksrt-submit-captcha">
|
||||
<?php aksrt_render_captcha('front_submit'); ?>
|
||||
</div>
|
||||
<div class="mb10"><?php aksrt_render_captcha('front_submit'); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="aksrt-submit-actions__btns">
|
||||
<div class="but-average">
|
||||
<?php if ($can_draft) : ?>
|
||||
<button type="button" class="but jb-green aksrt-submit-btn" data-action="posts_draft">
|
||||
<i class="fa fas fa-dot-circle"></i> <?php esc_html_e('保存草稿', 'aksrt'); ?>
|
||||
</button>
|
||||
<button type="button" class="but jb-green new-posts-submit aksrt-submit-btn padding-lg" data-action="posts_draft"><i class="fa fas fa-dot-circle mr6"></i><?php esc_html_e('保存草稿', 'aksrt'); ?></button>
|
||||
<?php endif; ?>
|
||||
<button type="button" class="but jb-blue aksrt-submit-btn" data-action="posts_save" id="aksrt-submit-btn">
|
||||
<i class="fa fas fa-check-square"></i>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: 发布|审核|保存 */
|
||||
esc_html__('提交%s', 'aksrt'),
|
||||
esc_html((string) $ctx['submit_label'])
|
||||
);
|
||||
?>
|
||||
</button>
|
||||
<button type="button" class="but jb-blue new-posts-submit aksrt-submit-btn padding-lg" data-action="posts_save" id="aksrt-submit-btn"><i class="fa fas fa-check-square mr6"></i><?php printf(esc_html__('提交%s', 'aksrt'), esc_html((string) $ctx['submit_label'])); ?></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($ctx['user_drafts'])) : ?>
|
||||
<div class="aksrt-submit-panel aksrt-submit-drafts">
|
||||
<div class="aksrt-submit-panel__title">
|
||||
<i class="fa fas fa-file-alt"></i> <?php esc_html_e('我的草稿', 'aksrt'); ?>
|
||||
</div>
|
||||
<div class="aksrt-submit-panel__body">
|
||||
<?php foreach ($ctx['user_drafts'] as $draft) :
|
||||
$edit_url = function_exists('aksrt_get_new_post_url')
|
||||
? aksrt_get_new_post_url((int) $draft->ID)
|
||||
: add_query_arg('edit', $draft->ID, get_permalink());
|
||||
?>
|
||||
<div class="aksrt-submit-drafts__item" data-draft-id="<?php echo esc_attr((string) $draft->ID); ?>">
|
||||
<a href="<?php echo esc_url($edit_url); ?>" class="aksrt-submit-drafts__link">
|
||||
<span class="aksrt-submit-drafts__name"><?php echo esc_html($draft->post_title ?: __('无标题', 'aksrt')); ?></span>
|
||||
<time><?php echo esc_html(get_the_modified_date('Y-m-d H:i', $draft)); ?></time>
|
||||
</a>
|
||||
<button type="button" class="aksrt-submit-drafts__delete" data-draft-id="<?php echo esc_attr((string) $draft->ID); ?>" title="<?php esc_attr_e('删除草稿', 'aksrt'); ?>">
|
||||
<i class="fa fas fa-trash-alt"></i>
|
||||
</button>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -1,114 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* Sidebar: guest + terms + tags.
|
||||
* Reference-theme article parameters sidebar.
|
||||
*
|
||||
* @var array $ctx
|
||||
* @package AKSRT
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
$settings = $ctx['settings'];
|
||||
$term_helper = get_template_directory() . '/templates/parts/submit/term-checks.php';
|
||||
if (file_exists($term_helper)) {
|
||||
require_once $term_helper;
|
||||
}
|
||||
require_once get_template_directory() . '/templates/parts/submit/term-checks.php';
|
||||
?>
|
||||
|
||||
<?php if (!empty($ctx['is_guest'])) : ?>
|
||||
<div class="aksrt-submit-panel">
|
||||
<div class="aksrt-submit-panel__title"><?php esc_html_e('用户信息', 'aksrt'); ?></div>
|
||||
<div class="aksrt-submit-panel__body">
|
||||
<p class="aksrt-submit-hint"><?php esc_html_e('请输入昵称', 'aksrt'); ?></p>
|
||||
<input class="aksrt-form-input" type="text" name="user_name" placeholder="<?php esc_attr_e('请输入昵称', 'aksrt'); ?>" required>
|
||||
<p class="aksrt-submit-hint"><?php esc_html_e('请输入您的联系方式', 'aksrt'); ?></p>
|
||||
<input class="aksrt-form-input" type="text" name="contact_details" placeholder="<?php esc_attr_e('输入联系方式', 'aksrt'); ?>">
|
||||
</div>
|
||||
<div class="zib-widget mb10-sm newpost-user-inputs">
|
||||
<div class="title-theme mb10"><?php esc_html_e('用户信息', 'aksrt'); ?></div>
|
||||
<p class="muted-3-color em09"><?php esc_html_e('请输入昵称', 'aksrt'); ?></p>
|
||||
<div class="mb20"><input class="form-control" type="text" name="user_name" placeholder="<?php esc_attr_e('请输入昵称', 'aksrt'); ?>" required></div>
|
||||
<p class="muted-3-color em09"><?php esc_html_e('请输入您的联系方式', 'aksrt'); ?></p>
|
||||
<input class="form-control" type="text" name="contact_details" placeholder="<?php esc_attr_e('输入联系方式', 'aksrt'); ?>">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="aksrt-submit-panel">
|
||||
<div class="aksrt-submit-panel__title"><?php esc_html_e('文章参数', 'aksrt'); ?></div>
|
||||
<div class="aksrt-submit-panel__body term-select-box">
|
||||
|
||||
<div class="zib-widget mb10-sm">
|
||||
<div class="title-theme mb10"><?php esc_html_e('文章参数', 'aksrt'); ?></div>
|
||||
<div class="term-select-box">
|
||||
<?php if (!empty($settings['allow_category'])) : ?>
|
||||
<details class="aksrt-submit-drop" open>
|
||||
<summary>
|
||||
<span><i class="fa fas fa-folder-open"></i> <?php esc_html_e('分类', 'aksrt'); ?></span>
|
||||
<i class="fa fas fa-angle-right"></i>
|
||||
</summary>
|
||||
<div class="aksrt-submit-drop__body">
|
||||
<?php
|
||||
if (!empty($ctx['categories'])) {
|
||||
aksrt_submit_render_term_checks($ctx['categories'], array_map('intval', $ctx['current_cats']), 'category');
|
||||
} else {
|
||||
echo '<p class="aksrt-submit-hint">' . esc_html__('暂无可选择的分类', 'aksrt') . '</p>';
|
||||
}
|
||||
?>
|
||||
<div class="newpost-cat-drop drop-select dropdown dependency-box">
|
||||
<button type="button" data-toggle-class="open" data-target=".newpost-cat-drop" class="flex ac jsb drop-btn form-control mb6" aria-expanded="false">
|
||||
<span class="title-theme222"><i class="fa fas fa-folder-open mr6" aria-hidden="true"></i><?php esc_html_e('分类', 'aksrt'); ?></span><i class="ml6 fa fas fa-angle-right em12"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu fluid">
|
||||
<div class="mini-scrollbar padding-w10 select-drop-box">
|
||||
<?php
|
||||
if (!empty($ctx['categories'])) {
|
||||
aksrt_submit_render_term_checks($ctx['categories'], array_map('intval', $ctx['current_cats']), 'category');
|
||||
} else {
|
||||
echo esc_html__('暂无可选择的分类', 'aksrt');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($settings['custom_filter_s']) && !empty($ctx['custom_dimensions'])) : ?>
|
||||
<?php foreach ($ctx['custom_dimensions'] as $dim) :
|
||||
$key = sanitize_key((string) ($dim['key'] ?? ''));
|
||||
if ($key === '') {
|
||||
continue;
|
||||
}
|
||||
$name = (string) ($dim['name'] ?? $key);
|
||||
$vals = is_array($dim['vals'] ?? null) ? $dim['vals'] : [];
|
||||
$cur = $ctx['current_cf'][$key] ?? [];
|
||||
if (!is_array($cur)) {
|
||||
$cur = $cur === '' || $cur === null ? [] : [$cur];
|
||||
}
|
||||
$cur = array_map('strval', $cur);
|
||||
<?php foreach ($ctx['custom_dimensions'] as $dimension) :
|
||||
$key = sanitize_key((string) ($dimension['key'] ?? ''));
|
||||
if ($key === '') continue;
|
||||
$name = (string) ($dimension['name'] ?? $key);
|
||||
$vals = is_array($dimension['vals'] ?? null) ? $dimension['vals'] : [];
|
||||
$current = (array) ($ctx['current_cf'][$key] ?? []);
|
||||
?>
|
||||
<details class="aksrt-submit-drop">
|
||||
<summary>
|
||||
<span><i class="fa fas fa-filter"></i> <?php echo esc_html($name); ?></span>
|
||||
<i class="fa fas fa-angle-right"></i>
|
||||
</summary>
|
||||
<div class="aksrt-submit-drop__body aksrt-submit-tags">
|
||||
<?php foreach ($vals as $val) :
|
||||
$vk = is_array($val) ? (string) ($val['key'] ?? '') : (string) $val;
|
||||
$vn = is_array($val) ? (string) ($val['name'] ?? $vk) : (string) $val;
|
||||
if ($vk === '') {
|
||||
continue;
|
||||
}
|
||||
$active = in_array($vk, $cur, true);
|
||||
<div class="newpost-custom-filter-<?php echo esc_attr($key); ?> drop-select dropdown dependency-box">
|
||||
<button type="button" data-toggle-class="open" data-target=".newpost-custom-filter-<?php echo esc_attr($key); ?>" class="flex ac jsb drop-btn form-control mb6" aria-expanded="false">
|
||||
<span class="title-theme222"><i class="fa fas fa-filter mr6" aria-hidden="true"></i><?php echo esc_html($name); ?></span><i class="ml6 fa fas fa-angle-right em12"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu fluid"><div class="padding-10 select-drop-box newpost-filter-tags">
|
||||
<?php foreach ($vals as $value) :
|
||||
$value_key = (string) ($value['key'] ?? '');
|
||||
$value_name = (string) ($value['name'] ?? $value_key);
|
||||
if ($value_key === '') continue;
|
||||
$active = in_array($value_key, array_map('strval', $current), true);
|
||||
?>
|
||||
<label class="aksrt-submit-tag <?php echo $active ? 'is-active' : ''; ?>">
|
||||
<input type="checkbox" name="cf_<?php echo esc_attr($key); ?>[]" value="<?php echo esc_attr($vk); ?>" <?php checked($active); ?>>
|
||||
<span><?php echo esc_html($vn); ?></span>
|
||||
</label>
|
||||
<label class="tag-list pointer<?php echo $active ? ' active' : ''; ?>"><input type="checkbox" name="cf_<?php echo esc_attr($key); ?>[]" value="<?php echo esc_attr($value_key); ?>" <?php checked($active); ?>><span class="badg mm3"><?php echo esc_html($value_name); ?></span></label>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</details>
|
||||
</div></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($settings['allow_tags'])) : ?>
|
||||
<div class="aksrt-submit-field">
|
||||
<div class="aksrt-submit-field__label">
|
||||
<?php esc_html_e('标签', 'aksrt'); ?>
|
||||
<?php if (!empty($ctx['ai_available'])) : ?>
|
||||
<button type="button" class="aksrt-ai-assist-btn" data-ai-action="tags" hidden><?php esc_html_e('AI 建议标签', 'aksrt'); ?></button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<p class="aksrt-submit-hint"><?php esc_html_e('填写文章的标签,每个标签用逗号隔开', 'aksrt'); ?></p>
|
||||
<textarea class="aksrt-form-input" rows="3" name="tags" placeholder="<?php esc_attr_e('输入文章标签', 'aksrt'); ?>"><?php echo esc_textarea((string) $ctx['current_tags']); ?></textarea>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($settings['allow_excerpt'])) : ?>
|
||||
<div class="aksrt-submit-field">
|
||||
<div class="aksrt-submit-field__label">
|
||||
<?php esc_html_e('摘要', 'aksrt'); ?>
|
||||
<?php if (!empty($ctx['ai_available'])) : ?>
|
||||
<button type="button" class="aksrt-ai-assist-btn" data-ai-action="summary" hidden><?php esc_html_e('AI 生成摘要', 'aksrt'); ?></button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<textarea class="aksrt-form-input" rows="3" name="excerpt" maxlength="300" placeholder="<?php esc_attr_e('可选:文章摘要', 'aksrt'); ?>"><?php echo esc_textarea((string) $ctx['current_excerpt']); ?></textarea>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($settings['allow_tags'])) : ?>
|
||||
<div class="title-theme mb10 mt20"><?php esc_html_e('标签', 'aksrt'); ?></div>
|
||||
<p class="muted-3-color em09"><?php esc_html_e('填写文章的标签,每个标签用逗号隔开', 'aksrt'); ?></p>
|
||||
<textarea class="form-control" rows="3" name="tags" placeholder="<?php esc_attr_e('输入文章标签', 'aksrt'); ?>" tabindex="6"><?php echo esc_textarea((string) $ctx['current_tags']); ?></textarea>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user