diff --git a/Resources/templates/responsive/home/index.php b/Resources/templates/responsive/home/index.php index 3074cafd6c..0c2ac99d00 100644 --- a/Resources/templates/responsive/home/index.php +++ b/Resources/templates/responsive/home/index.php @@ -19,27 +19,25 @@ = $this->text('home-menu-toggle-label') ?> replace() ?> - - section('home-content') ?> = $this->insert('partials/components/main_slider', [ - 'banners' => $this->banners, - 'nav' => 'home/partials/main_slider_nav', - 'button_text' => $this->text('invest-more-info') + 'banners' => $this->response->getBanners(), + 'nav' => 'home/partials/main_slider_nav', + 'button_text' => $this->text('invest-more-info') ]) ?> = $this->insert('home/partials/projects') ?> - home['values']): ?> + response->getHomeItems()['values']): ?> = $this->insert('partials/components/values', [ 'title' => $this->t('home-footprint-values-title'), - 'footprints' => $this->footprints, - 'sdg_by_footprint' => $this->sdg_by_footprint, - 'projects_by_footprint' => $this->projects_by_footprint + 'footprints' => $this->response->getFootprints(), + 'sdg_by_footprint' => $this->response->getSdgByFootprint(), + 'projects_by_footprint' => $this->response->getProjectsByFootprint() ]) ?> @@ -61,4 +59,3 @@ = $this->insert('home/partials/modals') ?> replace() ?> - diff --git a/Resources/templates/responsive/home/partials/channels.php b/Resources/templates/responsive/home/partials/channels.php index 28c23a4421..e6f594f169 100644 --- a/Resources/templates/responsive/home/partials/channels.php +++ b/Resources/templates/responsive/home/partials/channels.php @@ -1,38 +1,34 @@ -channels && count($this->channels) > 1): ?> +response->getChannels() && count($this->response->getChannels()) > 1): ?>