id, $this->class, ); if ($this->colorVariation) { $cssClasses[] = $this->colorVariation; } if ($this->contentPosition) { $cssClasses[] = $this->contentPosition; } if ($this->valign) { $cssClasses[] = $this->valign; } if ($this->viewportHeight) { $cssClasses[] = '-viewportHeight'; } $figure = ''; $blnIsVideo = false; if (($file = \FilesModel::findByUuid($this->backgroundImage)) !== null) { if (in_array( $file->extension, array_map('trim', explode(',', \Config::get('validImageTypes'))) )) { $figure = $this->figure( $file->uuid, $this->backgroundImageSize, [ 'options' => [ 'attr' => [ 'class' => 'feature-image', ], 'picture_attr' => [ 'style' => "object-fit: $this->backgroundSize;" . ($this->backgroundPosition ? "object-position: $this->backgroundPosition;" : "") . "font-family: 'object-fit: $this->backgroundSize';" ], 'img_attr' => [ 'style' => "object-fit: $this->backgroundSize;" . ($this->backgroundPosition ? "object-position: $this->backgroundPosition;" : "") . "font-family: 'object-fit: $this->backgroundSize';" ] ] ], '@ContaoCore/Image/Studio/figure.html.twig' ); } else { $blnIsVideo = !$blnIsVideo; } } ?> block('content'); ?>