Skip to content

Define background image based on images that your users upload

License

Notifications You must be signed in to change notification settings

titledk/silverstripe-backgroundimages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Define background image based on images that your users upload

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages