Ejemplo n.º 1
0
 /**
  * 
  * get thumb url
  */
 public function getUrlImageThumb()
 {
     //get image url by thumb
     if (!empty($this->thumbID)) {
         $urlImage = UniteFunctionsWPBiz::getUrlAttachmentImage($this->thumbID, UniteFunctionsWPBiz::THUMB_MEDIUM);
     } else {
         //get from cache
         if (!empty($this->imageFilepath)) {
             $urlImage = UniteBaseClassBiz::getImageUrl($this->imageFilepath, 200, 100, true);
         } else {
             $urlImage = $this->imageUrl;
         }
     }
     if (empty($urlImage)) {
         $urlImage = $this->imageUrl;
     }
     return $urlImage;
 }