public function parse($tag, array $block, array $attr_template = null)
 {
     $this->data[self::ARRAY_TYPE] = self::TYPE_GALLERY;
     parent::parse($tag, $block, $attr_template);
     if (!empty($block[WebHelper::BLOCK_ARRAY_VALUE_CONTENT])) {
         $content = $block[WebHelper::BLOCK_ARRAY_VALUE_CONTENT];
         if (kirby()->option(ImageExt::CONFIG_PARAM_SUPPORT_TAG_IMAGE, 'false') === true) {
             $this->parseSubImages(ImageExtObject::TAG_IMAGE, $block[WebHelper::BLOCK_ARRAY_VALUE_CONTENT], $this->data[self::ARRAY_ATTR]);
         }
         $this->parseSubImages(ImageExtObject::TAG_IMAGEEXT, $block[WebHelper::BLOCK_ARRAY_VALUE_CONTENT], $this->data[self::ARRAY_ATTR]);
         $this->parseSubImages(ImageExtObject::TAG_PICTURE, $block[WebHelper::BLOCK_ARRAY_VALUE_CONTENT], $this->data[self::ARRAY_ATTR]);
     }
     // Image bearbeiten die über das Gallery-Element geliefert werden.
     if (array_key_exists(self::PARA_IMG_SOURCE, $this->data[self::ARRAY_ATTR]) && $this->data[self::ARRAY_ATTR][self::PARA_IMG_SOURCE] !== false && !empty($this->data[self::ARRAY_ATTR][self::PARA_IMG_SOURCE])) {
         if ($this->data[self::ARRAY_ATTR][self::PARA_IMG_SOURCE] === '*') {
             $this->imageExt->getPage()->images();
             foreach ($this->imageExt->getPage()->images() as $image) {
                 $attr = array();
                 $attr[WebHelper::BLOCK_ARRAY_VALUE_ATTRIBUTES][self::PARA_IMG_SOURCE] = $image->filename();
                 $this->data[ImageExtObject::ARRAY_IMAGES][] = $this->getImageArray(ImageExtObject::TAG_IMAGE, $attr, $this->data[self::ARRAY_ATTR]);
             }
         } else {
             $images = explode(",", $this->data[self::ARRAY_ATTR][self::PARA_IMG_SOURCE]);
             foreach ($images as $image) {
                 $attr = array();
                 $attr[WebHelper::BLOCK_ARRAY_VALUE_ATTRIBUTES][self::PARA_IMG_SOURCE] = trim($image);
                 $this->data[ImageExtObject::ARRAY_IMAGES][] = $this->getImageArray(ImageExtObject::TAG_IMAGE, $attr, $this->data[self::ARRAY_ATTR]);
             }
         }
     }
 }
 public function parse($tag, array $block, array $attr_template = null)
 {
     $this->data[self::ARRAY_TYPE] = self::TYPE_IMAGE;
     parent::parse($tag, $block, $attr_template);
 }