$ctx Single context. */ function aksrt_single_render_aside(array $ctx): void { $post_id = (int) ($ctx['post_id'] ?? get_the_ID()); if (get_post_type($post_id) !== 'post') { return; } // The body site-layout-* class owns visibility. Always render the post // sidebar so User-Agent or request-specific context cannot remove widgets // from an otherwise two-column article page. ?>