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
@@ -21,7 +21,7 @@ $status_labels = ['publish' => __('已发布', 'aksrt'), 'draft' => __('草稿',
|
||||
?>
|
||||
<article class="creator-post-row" data-post-id="<?php echo esc_attr((string) $post_id); ?>">
|
||||
<a class="creator-post-row__thumb" href="<?php echo esc_url(get_permalink($post_id)); ?>" aria-label="<?php echo esc_attr(get_the_title()); ?>">
|
||||
<?php if (has_post_thumbnail($post_id)) : the_post_thumbnail('medium'); else : ?><span><i class="fas fa-feather-alt" aria-hidden="true"></i></span><?php endif; ?>
|
||||
<?php if (has_post_thumbnail($post_id)) : the_post_thumbnail('medium'); else : ?><span><i class="fa fas fa-pen" aria-hidden="true"></i></span><?php endif; ?>
|
||||
</a>
|
||||
<div class="creator-post-row__body"><div class="creator-post-row__heading"><h4><a href="<?php echo esc_url(get_permalink($post_id)); ?>"><?php echo esc_html(get_the_title()); ?></a></h4><span class="creator-post-row__status creator-post-row__status--<?php echo esc_attr($post_status); ?>"><?php echo esc_html($status_labels[$post_status] ?? $post_status); ?></span></div><p><?php echo esc_html(wp_trim_words(get_the_excerpt(), 20, '…')); ?></p><div class="creator-post-row__meta"><time datetime="<?php echo esc_attr(get_the_date('c')); ?>"><?php echo esc_html(get_the_date()); ?></time><span><?php echo $price > 0 ? esc_html__('付费内容', 'aksrt') : esc_html__('免费内容', 'aksrt'); ?></span></div></div>
|
||||
<div class="creator-post-row__actions"><?php if ($edit_url) : ?><a href="<?php echo esc_url($edit_url); ?>" class="creator-post-row__action"><?php esc_html_e('编辑', 'aksrt'); ?></a><?php endif; ?><a href="<?php echo esc_url(get_permalink($post_id)); ?>" class="creator-post-row__action"><?php esc_html_e('查看', 'aksrt'); ?></a><?php if ($can_delete) : ?><button type="button" class="creator-post-row__action creator-post-row__action--danger" data-action="delete-post" data-post-id="<?php echo esc_attr((string) $post_id); ?>" data-nonce="<?php echo esc_attr(wp_create_nonce('aksrt_submit')); ?>"><?php esc_html_e('删除', 'aksrt'); ?></button><?php endif; ?></div>
|
||||
@@ -30,5 +30,5 @@ $status_labels = ['publish' => __('已发布', 'aksrt'), 'draft' => __('草稿',
|
||||
</div>
|
||||
<?php aksrt_render_profile_pagination((int) $q->max_num_pages, $page, 'creator_page'); wp_reset_postdata(); ?>
|
||||
<?php else : ?>
|
||||
<div class="creator-workspace__empty"><i class="fas fa-feather-alt" aria-hidden="true"></i><h4><?php esc_html_e('还没有文章', 'aksrt'); ?></h4><p><?php esc_html_e('开始创作你的第一篇文章吧。', 'aksrt'); ?></p><?php if (!empty($new_post_url)) : ?><a class="btn-primary btn-sm" href="<?php echo esc_url($new_post_url); ?>"><?php esc_html_e('写新文章', 'aksrt'); ?></a><?php endif; ?></div>
|
||||
<div class="creator-workspace__empty"><i class="fa fas fa-pen" aria-hidden="true"></i><h4><?php esc_html_e('还没有文章', 'aksrt'); ?></h4><p><?php esc_html_e('开始创作你的第一篇文章吧。', 'aksrt'); ?></p><?php if (!empty($new_post_url)) : ?><a class="btn-primary btn-sm" href="<?php echo esc_url($new_post_url); ?>"><?php esc_html_e('写新文章', 'aksrt'); ?></a><?php endif; ?></div>
|
||||
<?php endif; ?>
|
||||
Reference in new issue
Block a user