コード例 #1
0
 /**
  * @param string $fileName
  * @param array $options
  * @return string
  */
 public function img($fileName, $options = [])
 {
     $imageData = new \stdClass();
     $imageData->file = '/themes/' . $this->theme . '/img/' . $fileName;
     $imageBlock = new Block();
     $imageBlock->type = 'image';
     return $imageBlock->getTypeObject()->display(serialize($imageData), $options);
 }