Esempio n. 1
0
 /**
  * get params for export
  */
 public function getParamsForExport()
 {
     $arrParams = $this->getParams();
     $urlImage = RevSliderFunctions::getVal($arrParams, "image");
     if (!empty($urlImage)) {
         $arrParams["image"] = RevSliderFunctionsWP::getImagePathFromURL($urlImage);
     }
     return $arrParams;
 }
Esempio n. 2
0
 /**
  * get params for export
  */
 public function getParamsForExport()
 {
     $arrParams = $this->getParams();
     $urlImage = RevSliderFunctions::getVal($arrParams, "image");
     if (!empty($urlImage)) {
         $arrParams["image"] = RevSliderFunctionsWP::getImagePathFromURL($urlImage);
     }
     //check if we are transparent or solid and remove unneeded image
     $bgtype = RevSliderFunctions::getVal($arrParams, "background_type", 'transparent');
     switch ($bgtype) {
         case 'transparent':
         case 'trans':
         case 'solid':
             $arrParams["image"] = '';
             break;
     }
     return apply_filters('revslider_slide_getParamsForExport', $arrParams, $this);
 }