Example #1
0
 /**
  * Get the virtual URL for a thumbnail file or directory
  *
  * @param bool|string $suffix If not false, the name of a thumbnail file
  * @return string
  */
 function getThumbVirtualUrl($suffix = false)
 {
     $this->assertRepoDefined();
     $path = $this->repo->getVirtualUrl() . '/thumb/' . $this->getUrlRel();
     if ($suffix !== false) {
         $path .= '/' . rawurlencode($suffix);
     }
     return $path;
 }