fix(single): restore author follow controls
This commit is contained in:
1 parent
71444b139a
commit
8eb62e712b
19 files changed
+261
-615
No files matched your search
@@ -156,13 +156,10 @@ if (!function_exists('aksrt_single_render_box_header')) :
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
// Author bar always shows in header (legacy).
|
||||
// `authordesc` only controls the after-box author card.
|
||||
aksrt_single_render_author_bar([
|
||||
'show_actions' => true,
|
||||
'show_time' => empty($settings['hide_time']),
|
||||
'meta_html' => (string) ($ctx['meta_box_html'] ?? ''),
|
||||
]);
|
||||
get_template_part('templates/parts/single-author-bar', null, [
|
||||
'show_time' => empty($settings['hide_time']),
|
||||
'meta_html' => (string) ($ctx['meta_box_html'] ?? ''),
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
@@ -681,13 +678,9 @@ if (!function_exists('aksrt_single_render_after_box')) :
|
||||
]);
|
||||
}
|
||||
|
||||
// Accept both `authordesc` (Settings DTO) and legacy `authordesc_s`.
|
||||
$show_author = array_key_exists('authordesc', $settings)
|
||||
? !empty($settings['authordesc'])
|
||||
: !empty($settings['authordesc_s']);
|
||||
if ($show_author) {
|
||||
aksrt_single_render_author_card($ctx);
|
||||
}
|
||||
if (!empty($settings['authordesc'])) {
|
||||
aksrt_single_render_author_card($ctx);
|
||||
}
|
||||
|
||||
aksrt_single_render_prevnext($ctx);
|
||||
aksrt_single_render_related($ctx);
|
||||
|
||||
Reference in new issue
Block a user