feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
1 parent
3c3ddac8be
commit
a0b84977a2
630 files changed
+101647
-11293
No files matched your search
@@ -35,7 +35,7 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
|
||||
<?php if (!$is_can_new) : ?>
|
||||
<div class="aksrt-submit-nocan">
|
||||
<div class="aksrt-submit-nocan__icon"><i class="fas fa-lock"></i></div>
|
||||
<div class="aksrt-submit-nocan__icon"><i class="fa fas fa-lock"></i></div>
|
||||
<p><?php esc_html_e('无法发布', 'aksrt'); ?></p>
|
||||
<p class="muted"><?php esc_html_e('你当前没有前台投稿权限,请联系管理员开通。', 'aksrt'); ?></p>
|
||||
</div>
|
||||
@@ -67,23 +67,23 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
<div class="aksrt-submit-shortcode-tools">
|
||||
<?php if (!empty($ctx['can_upload_img'])) : ?>
|
||||
<button type="button" class="but" data-insert-upload-image>
|
||||
<i class="fas fa-image"></i> <?php esc_html_e('上传图片', 'aksrt'); ?>
|
||||
<i class="fa fas fa-image"></i> <?php esc_html_e('上传图片', 'aksrt'); ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($ctx['can_hide'])) : ?>
|
||||
<button type="button" class="but" data-insert-shortcode="hide" title="<?php esc_attr_e('插入登录后可见', 'aksrt'); ?>">
|
||||
<i class="fas fa-eye-slash"></i> <?php esc_html_e('登录可见', 'aksrt'); ?>
|
||||
<i class="fa fas fa-eye-slash"></i> <?php esc_html_e('登录可见', 'aksrt'); ?>
|
||||
</button>
|
||||
<button type="button" class="but" data-insert-shortcode="reply" title="<?php esc_attr_e('插入回复后可见', 'aksrt'); ?>">
|
||||
<i class="fas fa-comment-dots"></i> <?php esc_html_e('回复可见', 'aksrt'); ?>
|
||||
<i class="fa fas fa-comment-dots"></i> <?php esc_html_e('回复可见', 'aksrt'); ?>
|
||||
</button>
|
||||
<button type="button" class="but" data-insert-shortcode="vip" title="<?php esc_attr_e('插入 VIP 可见', 'aksrt'); ?>">
|
||||
<i class="fas fa-crown"></i> <?php esc_html_e('VIP 可见', 'aksrt'); ?>
|
||||
<i class="fa fas fa-certificate"></i> <?php esc_html_e('VIP 可见', 'aksrt'); ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($ctx['can_pay'])) : ?>
|
||||
<button type="button" class="but" data-insert-shortcode="payshow" title="<?php esc_attr_e('插入付费可见内容', 'aksrt'); ?>">
|
||||
<i class="fas fa-lock"></i> <?php esc_html_e('付费可见', 'aksrt'); ?>
|
||||
<i class="fa fas fa-lock"></i> <?php esc_html_e('付费可见', 'aksrt'); ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
@@ -94,7 +94,7 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
<span class="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 fa-file-text-o"></i> <?php esc_html_e('预览文章', 'aksrt'); ?>
|
||||
<i class="fa fas fa-file-alt"></i> <?php esc_html_e('预览文章', 'aksrt'); ?>
|
||||
</a>
|
||||
<?php if (current_user_can('manage_options')) : ?>
|
||||
<a class="but c-yellow" href="<?php echo esc_url(get_edit_post_link($edit_post)); ?>">
|
||||
@@ -116,7 +116,7 @@ $is_can_new = !empty($ctx['is_can_new']);
|
||||
(int) $ctx['draft_count']
|
||||
);
|
||||
?>
|
||||
<i class="fa fa-angle-right"></i>
|
||||
<i class="fa fas fa-angle-right"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -31,17 +31,17 @@ $can_video = !empty($ctx['can_cover_video']);
|
||||
<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="fas fa-images"></i></span>
|
||||
<span class="aksrt-submit-featured__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="fas fa-play"></i></div>
|
||||
<div class="aksrt-submit-featured__video-placeholder"><i class="fa fas fa-play"></i></div>
|
||||
<?php endif; ?>
|
||||
<span class="aksrt-submit-featured__badge"><i class="fas fa-video"></i></span>
|
||||
<span class="aksrt-submit-featured__badge"><i class="fa fas fa-video"></i></span>
|
||||
<?php else : ?>
|
||||
<div class="aksrt-submit-featured__empty">
|
||||
<i class="fas fa-image"></i>
|
||||
<i class="fa fas fa-image"></i>
|
||||
<span><?php esc_html_e('设置文章封面', 'aksrt'); ?></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -49,21 +49,21 @@ $can_video = !empty($ctx['can_cover_video']);
|
||||
<div class="aksrt-submit-featured__actions">
|
||||
<?php if ($can_image) : ?>
|
||||
<button type="button" class="but" data-featured-action="image">
|
||||
<i class="fas fa-image"></i> <?php esc_html_e('图片', 'aksrt'); ?>
|
||||
<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">
|
||||
<i class="fas fa-images"></i> <?php esc_html_e('幻灯片', 'aksrt'); ?>
|
||||
<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">
|
||||
<i class="fas fa-video"></i> <?php esc_html_e('视频', 'aksrt'); ?>
|
||||
<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' : ''; ?>>
|
||||
<i class="fas fa-trash"></i> <?php esc_html_e('清除', 'aksrt'); ?>
|
||||
<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>
|
||||
|
||||
@@ -119,11 +119,11 @@ $downloads = is_array($pay['downloads'] ?? null) ? $pay['downloads'] : [];
|
||||
<strong><?php esc_html_e('付费下载', 'aksrt'); ?></strong>
|
||||
<span>
|
||||
<button type="button" class="but hollow c-blue" data-pay-download-add>
|
||||
<i class="fas fa-plus"></i> <?php esc_html_e('添加资源', 'aksrt'); ?>
|
||||
<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="fas fa-upload"></i> <?php esc_html_e('上传附件', 'aksrt'); ?>
|
||||
<i class="fa fas fa-upload"></i> <?php esc_html_e('上传附件', 'aksrt'); ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
@@ -138,7 +138,7 @@ $downloads = is_array($pay['downloads'] ?? null) ? $pay['downloads'] : [];
|
||||
<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>
|
||||
<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>
|
||||
@@ -147,7 +147,7 @@ $downloads = is_array($pay['downloads'] ?? null) ? $pay['downloads'] : [];
|
||||
<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>
|
||||
<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>
|
||||
|
||||
@@ -41,11 +41,11 @@ if ($edit_post && in_array($status, ['publish', 'pending'], true)) {
|
||||
<div class="aksrt-submit-actions__btns">
|
||||
<?php if ($can_draft) : ?>
|
||||
<button type="button" class="but jb-green aksrt-submit-btn" data-action="posts_draft">
|
||||
<i class="fa fa-dot-circle-o"></i> <?php esc_html_e('保存草稿', 'aksrt'); ?>
|
||||
<i class="fa fas fa-dot-circle"></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 fa-check-square-o"></i>
|
||||
<i class="fa fas fa-check-square"></i>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: 发布|审核|保存 */
|
||||
@@ -62,7 +62,7 @@ if ($edit_post && in_array($status, ['publish', 'pending'], true)) {
|
||||
<?php if (!empty($ctx['user_drafts'])) : ?>
|
||||
<div class="aksrt-submit-panel aksrt-submit-drafts">
|
||||
<div class="aksrt-submit-panel__title">
|
||||
<i class="fas fa-file-alt"></i> <?php esc_html_e('我的草稿', 'aksrt'); ?>
|
||||
<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) :
|
||||
@@ -76,7 +76,7 @@ if ($edit_post && in_array($status, ['publish', 'pending'], true)) {
|
||||
<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="fas fa-trash"></i>
|
||||
<i class="fa fas fa-trash-alt"></i>
|
||||
</button>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
@@ -33,8 +33,8 @@ if (file_exists($term_helper)) {
|
||||
<?php if (!empty($settings['allow_category'])) : ?>
|
||||
<details class="aksrt-submit-drop" open>
|
||||
<summary>
|
||||
<span><i class="fa fa-folder-open-o"></i> <?php esc_html_e('分类', 'aksrt'); ?></span>
|
||||
<i class="fa fa-angle-right"></i>
|
||||
<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
|
||||
@@ -64,8 +64,8 @@ if (file_exists($term_helper)) {
|
||||
?>
|
||||
<details class="aksrt-submit-drop">
|
||||
<summary>
|
||||
<span><i class="fa fa-filter"></i> <?php echo esc_html($name); ?></span>
|
||||
<i class="fa fa-angle-right"></i>
|
||||
<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) :
|
||||
|
||||
Reference in new issue
Block a user