feat(pages): Page Editor module fixing and improvements
This commit is contained in:
@@ -446,11 +446,15 @@ class PagesController
|
||||
$rendered_sections = self::resolve_sections_for_post($template['sections'], $post, $type);
|
||||
}
|
||||
|
||||
// Get SPA settings
|
||||
$settings = get_option('woonoow_appearance_settings', []);
|
||||
|
||||
return new WP_REST_Response([
|
||||
'type' => 'content',
|
||||
'cpt' => $type,
|
||||
'post' => $post_data,
|
||||
'seo' => $seo,
|
||||
'effective_container_width' => ($settings['general']['container_width'] ?? 'boxed') ?: 'boxed',
|
||||
'template' => $template ?: ['sections' => []],
|
||||
'rendered' => [
|
||||
'sections' => $rendered_sections,
|
||||
|
||||
Reference in New Issue
Block a user