清 single/home 残层:删 sidebar prepend 与 author-bar query-var
去掉 generic sidebar 的 prepend patch、author-bar ambient 回退, 以及 homepage section 多余 wrapper,保持主线闭环更干净。
This commit is contained in:
1 parent
29bd9bd152
commit
91945e2006
3 files changed
+27
-51
No files matched your search
@@ -776,20 +776,10 @@ if (!function_exists('aksrt_homepage_render_section')) {
|
||||
return;
|
||||
}
|
||||
|
||||
ob_start();
|
||||
// Fixed homepage owns these sections directly.
|
||||
// Keep the existing hero/banner templates as section implementations,
|
||||
// but do not re-wrap them in a freeform module bridge.
|
||||
get_template_part('templates/parts/home-modules/module', $type);
|
||||
$html = trim((string) ob_get_clean());
|
||||
if ($html === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
$class = $type === 'hero'
|
||||
? 'aksrt-homepage__hero home-modules home-modules--fullbleed'
|
||||
: 'aksrt-homepage__banner home-modules';
|
||||
|
||||
echo '<div class="' . esc_attr($class) . '">';
|
||||
echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user