* @link http://wp-dreams.com, http://codecanyon.net/user/anago/portfolio * @copyright Copyright (c) 2018, Ernest Marcinko */ class wpdreamsBoxShadow extends wpdreamsType { private $color; private $inset; private $hlength; private $vlength; private $blurradius; private $spread; private $shadow_styles = array( array('inset', 'Inset'), array('', 'None') ); function getType() { parent::getType(); $this->processData(); ?>
label; ?>
color) ? $this->color : "#000000")); ?>

data = str_replace("\n", "", $this->data); preg_match("/box-shadow:(.*?)px (.*?)px (.*?)px (.*?)px (.*?);/", $this->data, $matches); $ci = $matches[5]; preg_match("/(.*?) inset/", $ci, $_matches); if ($_matches != null && isset($_matches[1])) { $this->color = $_matches[1]; $this->inset = "inset"; } else { $this->color = $ci; $this->inset = ""; } $this->hlength = $matches[1]; $this->vlength = $matches[2]; $this->blurradius = $matches[3]; $this->spread = $matches[4]; } final function getData() { return $this->data; } } }