进行了一些小修复

This commit is contained in:
kate522 committed 2026-08-26 16:32:18 +08:00
1 parent 992af2119d
commit 2cb78edabb
26 files changed
+2091 -2383

No files matched your search

+13 -13
View File
@@ -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>