public function onepage() { $optionManager = new \Manager\OptionsManager(); $userManager = new \Manager\UsersManager(); // routing infos //header $optionTitleToDisplay = $optionManager->getTitle(); //Slider $optionSliderToDisplay1 = $optionManager->getImgSlider(1); $optionSliderToDisplay2 = $optionManager->getImgSlider(2); $optionSliderToDisplay3 = $optionManager->getImgSlider(3); $optionSliderToDisplay4 = $optionManager->getImgSlider(4); $optionSliderToDisplay5 = $optionManager->getImgSlider(5); //Gallery $optionGalleryToDisplay1 = $optionManager->getImgGallery(1); $optionGalleryToDisplay2 = $optionManager->getImgGallery(2); $optionGalleryToDisplay3 = $optionManager->getImgGallery(3); $optionGalleryToDisplay4 = $optionManager->getImgGallery(4); $optionGalleryToDisplay5 = $optionManager->getImgGallery(5); $optionGalleryToDisplay6 = $optionManager->getImgGallery(6); $optionGalleryToDisplay7 = $optionManager->getImgGallery(7); $optionGalleryToDisplay8 = $optionManager->getImgGallery(8); $optionGalleryToDisplay9 = $optionManager->getImgGallery(9); $optionTxtGalToDisplay = $optionManager->getTxtGallery(); //Soundcloud $optionSoundToDisplay = $optionManager->getSoundcloud(); //testimoniaux $optionBgTestiColor1 = $optionManager->getBgTestiColor1(); $optionBgTestiColor2 = $optionManager->getBgTestiColor2(); //header $optionTitleToDisplay = $optionManager->getTitle(); $optionColorToDisplay = $optionManager->getColor(); $optionFontToDisplay = $optionManager->getFont(); $optionBgToDisplay = $optionManager->getBg(); $optionBgGradientDirection = $optionManager->getBgGradientDirection(); $optionBgGradientColor1 = $optionManager->getBgGradientColor1(); $optionBgGradientColor2 = $optionManager->getBgGradientColor2(); //view name $optionNameToDisplay1 = $optionManager->getName(1); $optionNameToDisplay2 = $optionManager->getName(2); $optionNameToDisplay3 = $optionManager->getName(3); //view avatar $optionAvatarToDisplay1 = $optionManager->getAvatar(1); $optionAvatarToDisplay2 = $optionManager->getAvatar(2); $optionAvatarToDisplay3 = $optionManager->getAvatar(3); //view description $optionTestiToDisplay1 = $optionManager->GetTestimonial(1); $optionTestiToDisplay2 = $optionManager->GetTestimonial(2); $optionTestiToDisplay3 = $optionManager->GetTestimonial(3); //sextion_text $optionTextToDisplay1 = $optionManager->getText(1); $optionTextToDisplay2 = $optionManager->getText(2); $optionTextToDisplay3 = $optionManager->getText(3); $optionBgTextColor1 = $optionManager->getBgTextColor1(); $optionBgTextColor2 = $optionManager->getBgTextColor2(); //map $optionAdressToDisplay = $optionManager->getAdress(); $optionLatToDisplay = $optionManager->getLat(); $optionLonToDisplay = $optionManager->getLon(); $optionBgMapColor1 = $optionManager->getBgMapColor1(); $optionBgMapColor2 = $optionManager->getBgMapColor2(); $emailToDisplay = $optionManager->getMail(); if (isset($_SESSION['errors'])) { $errors = $_SESSION['errors']; } else { $errors = array(); } $this->show('default/onepage', ['names' => [$optionNameToDisplay1, $optionNameToDisplay2, $optionNameToDisplay3], 'avatars' => [$optionAvatarToDisplay1, $optionAvatarToDisplay2, $optionAvatarToDisplay3], 'testis' => [$optionTestiToDisplay1, $optionTestiToDisplay2, $optionTestiToDisplay3], 'texts' => [$optionTextToDisplay1, $optionTextToDisplay2, $optionTextToDisplay3], 'titledisplay' => [$optionTitleToDisplay], 'imgslider' => [$optionSliderToDisplay1, $optionSliderToDisplay2, $optionSliderToDisplay3, $optionSliderToDisplay4, $optionSliderToDisplay5], 'imggallery' => [$optionGalleryToDisplay1, $optionGalleryToDisplay2, $optionGalleryToDisplay3, $optionGalleryToDisplay4, $optionGalleryToDisplay5, $optionGalleryToDisplay6, $optionGalleryToDisplay7, $optionGalleryToDisplay8, $optionGalleryToDisplay9], 'txtgallery' => [$optionTxtGalToDisplay], 'color' => [$optionColorToDisplay], 'font' => [$optionFontToDisplay], 'bg' => [$optionBgToDisplay], 'direction' => [$optionBgGradientDirection], 'gradiant_color1' => [$optionBgGradientColor1], 'gradiant_color2' => [$optionBgGradientColor2], 'adress' => [$optionAdressToDisplay], 'soundcloud' => [$optionSoundToDisplay], 'col_testi_1' => [$optionBgTestiColor1], 'col_testi_2' => [$optionBgTestiColor2], 'col_text_1' => [$optionBgTextColor1], 'col_text_2' => [$optionBgTextColor2], 'col_map_1' => [$optionBgMapColor1], 'col_map_2' => [$optionBgMapColor2], 'lat' => [$optionLatToDisplay], 'lon' => [$optionLonToDisplay], 'mailrecipe' => [$emailToDisplay], 'errors' => $errors]); }