\BackgroundImageStyle
BackgroundImageStyle Returns only the background image
- Author: Anselm Christophersen <ac@anselm.dk>
Synopsis
class BackgroundImageStyle
extends Object
{
- // members
- private static string $gradient_start_opacity = '0.8';
- private static string $gradient_end_opacity = '0.2';
- private static string $gradient_direction = 'to bottom right';
- private static integer $img_maxwidth = 1000;
- protected $image;
- // methods
- public void __construct()
- public null|Image getImage()
- public null|Image getScaledImage()
- public string getBackgroundImageCSS()
- public string getBackgroundGradientCSS()
- public string getCSS()
- public string getCSSWithGradient()
Hierarchy
Extends
- Object
Members
private
- $gradient_direction
- $gradient_end_opacity
- $gradient_start_opacity
- $img_maxwidth
protected
- $image
Methods
public
- __construct() — BackgroundImageBaseStyle constructor
- getBackgroundGradientCSS() — Gradient overlay Based on identity colors - you need to have set primary-gradient-start and primary-gradient-end in order to use this
- getBackgroundImageCSS() — CSS for the background image
- getCSS() — Background image CSS only
- getCSSWithGradient() — Background image CSS with gradient overlay
- getImage() — Returns an image, if it has been set
- getScaledImage() — Returns a scaled image, if an image has been set