public function render() { if (substr($this->color, 0, 1) == "#") { $this->color = substr($this->color, 1); } if (strlen($this->color) == 6 || strlen($this->color) == 3) { $this->setValue(convertHexToRgba($this->color, $this->opacity)); } else { $this->setValue($this->color); } return parent::render(); }
public function render() { if ($this->left == $this->right && $this->top == $this->bottom) { if ($this->left == $this->top) { $this->setValue($this->left); } else { $this->setValue($this->left . " " . $this->top); } } else { $this->setValue($this->top . " " . $this->right . " " . $this->bottom . " " . $this->left); } return parent::render(); }
public function render() { $this->setValue($this->backgroundSource . " " . $this->repeating . " " . $this->xposition . " " . $this->yposition); return parent::render(); }
public function __construct($position) { parent::__construct("position"); $this->setValue($position); }
public function __construct() { parent::__construct("background-attached"); $this->setValue("fixed"); }
public function __construct($key, $dimension) { parent::__construct($key); $this->setValue($dimension); }