Ejemplo n.º 1
0
 public function backoffice()
 {
     function securise($string)
     {
         if (ctype_digit($string)) {
             $string = intval($string);
         } else {
             $string = mysql_real_escape_string($string);
             $string = addcslashes($string, '%_');
             $string = htmlspecialchars($string);
         }
         return $string;
     }
     $optionManager = new \Manager\OptionsManager();
     //soundcloud
     if (isset($_POST['submit_sound'])) {
         $sound = securise($_POST['sound']);
         $optionManager->updateSoundcloud($sound);
     }
     if (isset($_POST['submit_txtgal'])) {
         $txt = securise($_POST['txtgal']);
         $optionManager->updateTxtGallery($txt);
     }
     // gallery Controler
     if (isset($_POST['submit_gal_1'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_gal_1']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_gal_1']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_gal_1']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_gal_1']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgGalery(1, $filePath);
     } elseif (isset($_POST['submit_gal_2'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_gal_2']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_gal_2']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_gal_2']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_gal_2']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgGalery(2, $filePath);
     } elseif (isset($_POST['submit_gal_3'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_gal_3']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_gal_3']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_gal_3']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_gal_3']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgGalery(3, $filePath);
     } elseif (isset($_POST['submit_gal_4'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_gal_4']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_gal_4']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_gal_4']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_gal_4']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgGalery(4, $filePath);
     } elseif (isset($_POST['submit_gal_5'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_gal_5']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_gal_5']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_gal_5']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_gal_5']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgGalery(5, $filePath);
     } elseif (isset($_POST['submit_gal_6'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_gal_6']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_gal_6']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_gal_6']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_gal_6']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgGalery(6, $filePath);
     } elseif (isset($_POST['submit_gal_7'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_gal_7']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_gal_7']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_gal_7']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_gal_7']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgGalery(7, $filePath);
     } elseif (isset($_POST['submit_gal_8'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_gal_8']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_gal_8']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_gal_8']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_gal_8']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgGalery(8, $filePath);
     } elseif (isset($_POST['submit_gal_9'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_gal_9']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_gal_9']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_gal_9']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_gal_9']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgGalery(9, $filePath);
     }
     // END gallery Controler
     if (isset($_POST['submit_slider_1'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_slider_1']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_slider_1']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_slider_1']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_slider_1']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgSlider(1, $filePath);
     } elseif (isset($_POST['submit_slider_2'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_slider_2']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_slider_2']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_slider_2']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_slider_2']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgSlider(2, $filePath);
     } elseif (isset($_POST['submit_slider_3'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_slider_3']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_slider_3']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_slider_3']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_slider_3']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgSlider(3, $filePath);
     } elseif (isset($_POST['submit_slider_4'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_slider_4']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_slider_4']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_slider_4']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_slider_4']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgSlider(4, $filePath);
     } elseif (isset($_POST['submit_slider_5'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_slider_5']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_slider_5']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_slider_5']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_slider_5']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeImgSlider(5, $filePath);
     }
     // Function avatar testimoniaux
     if (isset($_POST['submit_avatar_1'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_avatar_1']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_avatar_1']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_avatar_1']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_avatar_1']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeAvatar(1, $filePath);
     } elseif (isset($_POST['submit_avatar_2'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_avatar_2']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_avatar_2']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_avatar_2']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_avatar_2']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeAvatar(2, $filePath);
     } elseif (isset($_POST['submit_avatar_3'])) {
         // Upload du fichier (move_uploaded_file, etc.)
         $finfo = new \finfo(FILEINFO_MIME_TYPE);
         $mimeType = $finfo->file($_FILES['img_avatar_3']['tmp_name']);
         $allowed = array_search($mimeType, array('png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif'));
         $filePath = sha1_file($_FILES['img_avatar_3']['tmp_name']) . '.' . $allowed;
         $destinationFilePath = 'assets/imgs/' . $filePath;
         // Récupération du Mime
         if ($allowed === false) {
             echo 'Le fichier n\'est pas une image';
             die;
         }
         if ($_FILES['img_avatar_3']['error'] != UPLOAD_ERR_OK) {
             echo 'Erreur lors du téléchargement.';
             die;
         }
         if (move_uploaded_file($_FILES['img_avatar_3']['tmp_name'], $destinationFilePath)) {
         } else {
             echo 'Erreur lors de l\'enregistrement.';
         }
         $optionManager->changeAvatar(3, $filePath);
     }
     //modification du titre du site
     if (isset($_POST['submit_title'])) {
         $title = securise($_POST['title']);
         $optionManager->updateTitle($title);
     }
     //rename
     if (isset($_POST['submit_name1'])) {
         $namearea = securise($_POST['name_area']);
         $optionManager->UpName(1, $namearea);
     }
     if (isset($_POST['submit_name2'])) {
         $namearea = securise($_POST['name_area']);
         $optionManager->UpName(2, $namearea);
     }
     if (isset($_POST['submit_name3'])) {
         $namearea = securise($_POST['name_area']);
         $optionManager->UpName(3, $namearea);
     }
     if (isset($_POST['submit_title'])) {
         $textcolor = securise($_POST['textcolor']);
         $optionManager->UpdateColor($textcolor);
     }
     if (isset($_POST['submit_adress'])) {
         $address = securise($_POST['address']);
         $optionManager->saveAdress($address);
     }
     if (isset($_POST['submit_adress'])) {
         $optionManager->saveLat($_POST['lat']);
     }
     if (isset($_POST['submit_adress'])) {
         $optionManager->saveLon($_POST['lon']);
     }
     if (isset($_POST['submit_title'])) {
         $optionManager->UpdateFont($_POST['fonts']);
     }
     if (isset($_POST['submit_bg'])) {
         $optionManager->UpdateBg($_POST['textcolorbg']);
     }
     if (isset($_POST['submit_bg'])) {
         $optionManager->updateBgGradientDirection($_POST['gradient']);
     }
     if (isset($_POST['submit_bg'])) {
         $optionManager->updateBgGradientColor1($_POST['textcolorbg1']);
     }
     if (isset($_POST['submit_bg'])) {
         $optionManager->updateBgGradientColor2($_POST['textcolorbg2']);
     }
     if (isset($_POST['submit_bg_testi'])) {
         $optionManager->updateBgTesiColor1($_POST['testicolorbg1']);
     }
     if (isset($_POST['submit_bg_testi'])) {
         $optionManager->updateBgTesiColor2($_POST['testicolorbg2']);
     }
     if (isset($_POST['submit_bg_text'])) {
         $optionManager->updateBgTextColor1($_POST['textcolorbg1']);
     }
     if (isset($_POST['submit_bg_text'])) {
         $optionManager->updateBgTextColor2($_POST['textcolorbg2']);
     }
     if (isset($_POST['submit_bg_map'])) {
         $optionManager->updateBgMapColor1($_POST['mapcolorbg1']);
     }
     if (isset($_POST['submit_bg_map'])) {
         $optionManager->updateBgMapColor2($_POST['mapcolorbg2']);
     }
     //modification du text testimonial
     if (isset($_POST['submit_text1'])) {
         $testiarea = securise($_POST['testi-area']);
         $optionManager->UpdateTesti(1, $testiarea);
     }
     if (isset($_POST['submit_text2'])) {
         $testiarea = securise($_POST['testi-area']);
         $optionManager->UpdateTesti(2, $testiarea);
     }
     if (isset($_POST['submit_text3'])) {
         $testiarea = securise($_POST['testi-area']);
         $optionManager->UpdateTesti(3, $testiarea);
     }
     //modification de la sectin text
     if (isset($_POST['submit_Sectiontext1'])) {
         $sectext = securise($_POST['sec_text']);
         $optionManager->changeText(1, $sectext);
     }
     if (isset($_POST['submit_Sectiontext2'])) {
         $sectext = securise($_POST['sec_text']);
         $optionManager->changeText(2, $sectext);
     }
     if (isset($_POST['submit_Sectiontext3'])) {
         $sectext = securise($_POST['sec_text']);
         $optionManager->changeText(3, $sectext);
     }
     if (isset($_POST['submit_mail'])) {
         $emailpost = securise($_POST['email_recipe']);
         $optionManager->updateMail($emailpost);
     }
     //header
     $optionTitleToDisplay = $optionManager->getTitle();
     $optionFontToDisplay = $optionManager->getFont();
     $optionBgToDisplay = $optionManager->getBg();
     $optionBgGradientDirection = $optionManager->getBgGradientDirection();
     $optionBgGradientColor1 = $optionManager->getBgGradientColor1();
     $optionBgGradientColor2 = $optionManager->getBgGradientColor2();
     //slider
     //view img 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);
     //Soundcloud
     $optionSoundToDisplay = $optionManager->getSoundcloud();
     //TxtGallery
     $optionTxtGalToDisplay = $optionManager->getTxtGallery();
     //testimoniaux
     //view name
     $optionNameToDisplay1 = $optionManager->getName(1);
     $optionNameToDisplay2 = $optionManager->getName(2);
     $optionNameToDisplay3 = $optionManager->getName(3);
     $optionBgTestiColor1 = $optionManager->getBgTestiColor1();
     $optionBgTestiColor2 = $optionManager->getBgTestiColor2();
     //view avatar
     $optionAvatarToDisplay1 = $optionManager->getAvatar(1);
     $optionAvatarToDisplay2 = $optionManager->getAvatar(2);
     $optionAvatarToDisplay3 = $optionManager->getAvatar(3);
     $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();
     //sextion Maps
     $optionAdressToDisplay = $optionManager->getAdress();
     $optionLatToDisplay = $optionManager->getLat();
     $optionLonToDisplay = $optionManager->getLon();
     $optionBgMapColor1 = $optionManager->getBgMapColor1();
     $optionBgMapColor2 = $optionManager->getBgMapColor2();
     $this->show('Default/backoffice', ['names' => [$optionNameToDisplay1, $optionNameToDisplay2, $optionNameToDisplay3], 'avatars' => [$optionAvatarToDisplay1, $optionAvatarToDisplay2, $optionAvatarToDisplay3], 'testis' => [$optionTestiToDisplay1, $optionTestiToDisplay2, $optionTestiToDisplay3], 'texts' => [$optionTextToDisplay1, $optionTextToDisplay2, $optionTextToDisplay3], 'title' => [$optionTitleToDisplay], 'imgslider' => [$optionSliderToDisplay1, $optionSliderToDisplay2, $optionSliderToDisplay3, $optionSliderToDisplay4, $optionSliderToDisplay5], 'imggallery' => [$optionGalleryToDisplay1, $optionGalleryToDisplay2, $optionGalleryToDisplay3, $optionGalleryToDisplay4, $optionGalleryToDisplay5, $optionGalleryToDisplay6, $optionGalleryToDisplay7, $optionGalleryToDisplay8, $optionGalleryToDisplay9], 'txtgallery' => [$optionTxtGalToDisplay], 'adress' => [$optionAdressToDisplay], '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]]);
 }