$ctx Single context. */ function aksrt_single_render_overview_widget(array $ctx): void { $post_id = (int) ($ctx['post_id'] ?? get_the_ID()); $categories = get_the_category($post_id); $primary_category = !empty($categories) && $categories[0] instanceof WP_Term ? $categories[0] : null; $modified = get_the_modified_date('', $post_id); $overview_items = is_array($ctx['meta_items_secondary'] ?? null) ? $ctx['meta_items_secondary'] : []; ?> $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. $has_article_widgets = is_active_sidebar('all_sidebar_top') || is_active_sidebar('sidebar-article') || is_active_sidebar('all_sidebar_bottom'); ?>