titledk/silverstripe-backgroundimages

Define background image based on images that your users upload (WIP)

Installs: 263

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 0

Forks: 1

Open Issues: 0

Type:silverstripe-module

pkg:composer/titledk/silverstripe-backgroundimages

2.0 2016-09-07 16:02 UTC

This package is not auto-updated.

Last update: 2025-10-12 01:08:07 UTC


README

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'