Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 452 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 452 Bytes

SilverStripe Background Images

Define background image based on images that your users upload.

Usage

/**
 * @return string
 */
public function getBackgroundCSS()
{
    return BackgroundImageStyle::create(
        $this->PrimaryImage()
    )
        ->getCSS();
}
<div style="$BackgroundCSS">
</div>
Identity:
  colors:
    primary: '#111'
    primary-gradient-start: '#222'
    primary-gradient-end: '#333'