fix(list): wire Zibll list/card display chain end-to-end
Resolve post list mode from global list_type + surface card overrides so homepage/archives/AJAX honor admin list and card style settings.
This commit is contained in:
1 parent
b2815614d1
commit
d73a7af25e
17 files changed
+444
-151
No files matched your search
+1
-4
@@ -85,14 +85,11 @@ $search_count = isset($loop_query->found_posts) ? (int) $loop_query->found_posts
|
||||
$render_config = function_exists('aksrt_archive_get_render_config')
|
||||
? aksrt_archive_get_render_config([
|
||||
'context' => 'search',
|
||||
'mode' => (string) ($list_settings['render_mode'] ?? 'card'),
|
||||
'card_style' => (string) ($list_settings['card_style'] ?? 'standard'),
|
||||
'highlight_query' => $search_query,
|
||||
])
|
||||
: [
|
||||
'context' => 'search',
|
||||
'mode' => (string) ($list_settings['render_mode'] ?? 'card'),
|
||||
'card_style' => (string) ($list_settings['card_style'] ?? 'standard'),
|
||||
'mode' => 'list',
|
||||
'highlight_query' => $search_query,
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user