/**
  * 
  * update slide image from data
  */
 public function updateSlideImageFromData($data)
 {
     $sliderID = UniteFunctionsRev::getVal($data, "slider_id");
     $slider = new RevSlider();
     $slider->initByID($sliderID);
     $slideID = UniteFunctionsRev::getVal($data, "slide_id");
     $urlImage = UniteFunctionsRev::getVal($data, "url_image");
     UniteFunctionsRev::validateNotEmpty($urlImage);
     $imageID = UniteFunctionsRev::getVal($data, "image_id");
     if ($slider->isSlidesFromPosts()) {
         if (!empty($imageID)) {
             UniteFunctionsWPRev::updatePostThumbnail($slideID, $imageID);
         }
     } else {
         $this->initByID($slideID);
         $arrUpdate = array();
         $arrUpdate["image"] = $urlImage;
         $arrUpdate["image_id"] = $imageID;
         $this->updateParamsInDB($arrUpdate);
     }
     return $urlImage;
 }