id, $this->class, ); if ($this->colorVariation) { $cssClasses[] = $this->colorVariation; } if ($this->textPosition) { $cssClasses[] = $this->textPosition; } if ($this->showArrow) { $cssClasses[] = '-arrow'; } if ($this->arrowAlternate) { $cssClasses[] = '-arrow-alternate'; } if ($this->height) { $cssClasses[] = $this->height; } $imageFiles = array(); $videoFiles = array(); if (is_array($this->backgroundImage)) { foreach (\FilesModel::findMultipleByUuids($this->backgroundImage) as $file) { if (in_array( $file->extension, array_map('trim', explode(',', \Config::get('validImageTypes'))) )) { $imageFiles[] = $file; } else { $videoFiles[] = $file; } } } $backgroundStyle = ''; if (count($imageFiles) && $image = $this->getImageObject($imageFiles[0]->uuid, $this->backgroundImageSize)) { $minHeight = round(100/$image->arrSize[0]*$image->arrSize[1]).'%'; $backgroundStyle .= 'background-image: url("' . $image->src . '");'; } if (count($videoFiles)) { $objPage->cssClass = trim($objPage->cssClass . ' -hide-logo'); } if ((count($imageFiles) || count($videoFiles)) && $this->backgroundSize) { $backgroundStyle .= 'background-size: ' . $this->backgroundSize . ';'; } if ((count($imageFiles) || count($videoFiles)) && $this->backgroundPosition) { $backgroundStyle .= 'background-position: ' . $this->backgroundPosition . ';'; } ?> block('content'); ?>
cssID ?>>
getImageObject($imageFiles[0]->uuid, $this->backgroundImageSize)): ?>
text): ?>
text ?>
showArrow): ?>
endblock(); ?>