/** * Get public image URL * * @param string $image Image name * * @return string */ public function getPublicImageURL($image) { if (!isset($this->imageURLCached[$image])) { $path = \Includes\Utils\ModulesManager::getModuleImageFile($this->getAuthor(), $this->getName(), $image); if (\Includes\Utils\FileManager::isFileReadable($path)) { $this->imageURLCached[$image] = \XLite\Core\Converter::buildURL('module', null, array('author' => $this->getAuthor(), 'name' => $this->getName(), 'image' => $image), 'image.php'); } else { $this->imageURLCached[$image] = false; } } return $this->imageURLCached[$image]; }