phase oen updates

This commit is contained in:
Mark Gregory
2026-07-27 08:19:38 +01:00
parent 09cad63280
commit 3a93d4eaea
35 changed files with 512 additions and 73 deletions
+9 -6
View File
@@ -17,13 +17,16 @@ final class FrontendContent
/** @return array<string, mixed> */
public function homepage(array $settings): array
{
// Always provide source collections. Visibility is owned by page placements
// in the composable content system; the legacy theme still applies its
// existing show_* settings while no composition has been installed.
return [
'pricingPlans' => $this->enabled($settings, 'show_pricing', true) ? $this->pricingPlans() : collect(),
'testimonials' => $this->enabled($settings, 'show_testimonials', true) ? $this->testimonials() : collect(),
'faqs' => $this->enabled($settings, 'show_faq', true) ? $this->faqs() : collect(),
'teamMembers' => $this->enabled($settings, 'show_team', false) ? $this->team() : collect(),
'latestBlogPosts' => $this->enabled($settings, 'show_blog', true) ? $this->blogPosts() : collect(),
'latestNewsArticles' => $this->enabled($settings, 'show_news', true) ? $this->newsArticles() : collect(),
'pricingPlans' => $this->pricingPlans(),
'testimonials' => $this->testimonials(),
'faqs' => $this->faqs(),
'teamMembers' => $this->team(),
'latestBlogPosts' => $this->blogPosts(),
'latestNewsArticles' => $this->newsArticles(),
];
}