fix(frontend): unbreak single post layout cascade
Disable the global 2-col .content-layout grid on single pages (it was tiling breadcrumb/article/author/related/comments left-right), add the missing Zibll utility bridge used by the author/meta bar, and replace nonstandard <name>/<item>/<badge> tags in the single surface.
This commit is contained in:
@@ -363,7 +363,8 @@ if (!function_exists('aksrt_single_render_actions')) :
|
||||
$is_favorited = !empty($ctx['is_favorited']);
|
||||
?>
|
||||
<div class="text-center muted-3-color box-body em09"><?php echo esc_html($settings['button_toptext'] ?? __('喜欢就支持一下吧', 'aksrt')); ?></div>
|
||||
<div class="text-center post-actions">
|
||||
<div class="post-actions-wrap relative">
|
||||
<div class="text-center post-actions">
|
||||
<?php if (!empty($settings['like_enabled'])) : ?>
|
||||
<button type="button" class="action action-like<?php echo $is_liked ? ' is-active' : ''; ?>" id="action-like" data-post-id="<?php echo esc_attr((string) $post_id); ?>" data-initial-active="<?php echo $is_liked ? '1' : '0'; ?>">
|
||||
<i class="<?php echo $is_liked ? 'fas' : 'far'; ?> fa-heart" aria-hidden="true"></i>
|
||||
@@ -391,9 +392,9 @@ if (!function_exists('aksrt_single_render_actions')) :
|
||||
<span class="action-btn__count" data-stat-count="favorites" data-base-count="<?php echo esc_attr((string) $favorite_count); ?>"><?php echo esc_html((string) $favorite_count); ?></span>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($settings['share_enabled'])) : ?>
|
||||
<?php if (!empty($settings['share_enabled'])) : ?>
|
||||
<div class="share-dropdown" id="share-dropdown" aria-hidden="true">
|
||||
<div class="share-dropdown__grid">
|
||||
<button type="button" class="share-item" data-platform="qq"><i class="fab fa-qq"></i><span>QQ</span></button>
|
||||
@@ -404,7 +405,8 @@ if (!function_exists('aksrt_single_render_actions')) :
|
||||
</div>
|
||||
<div id="share-qrcode-box" aria-hidden="true"><img id="share-qrcode-image" src="" alt="QR Code"></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($settings['rewards_enabled']) && !empty($settings['rewards_image'])) : ?>
|
||||
<div class="reward-modal" id="reward-modal" aria-hidden="true">
|
||||
|
||||
Reference in New Issue
Block a user