* @link http://wp-dreams.com, http://codecanyon.net/user/anago/portfolio
* @copyright Copyright (c) 2014, Ernest Marcinko
*/
class wpdreamsBorder extends wpdreamsType {
private $topleft;
private $topright;
private $bottomright;
private $bottomleft;
private $width;
private $style;
private $border_styles = array(
'none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset'
);
function getType() {
parent::getType();
$this->processData();
?>
data = str_replace("\n", "", $this->data);
preg_match("/border-radius:(.*?)px(.*?)px(.*?)px(.*?)px;/", $this->data, $matches);
$this->topleft = $matches[1];
$this->topright = $matches[2];
$this->bottomright = $matches[3];
$this->bottomleft = $matches[4];
preg_match("/border:(.*?)px (.*?) (.*?);/", $this->data, $matches);
$this->width = $matches[1];
$this->style = $matches[2];
$this->color = $matches[3];
}
final function getData() {
return $this->data;
}
final function getCss() {
return $this->css;
}
}
}