* @link http://wp-dreams.com, http://codecanyon.net/user/anago/portfolio * @copyright Copyright (c) 2014, Ernest Marcinko */ class wpdreamsFour extends wpdreamsType { private $top, $bottom, $right, $left, $desc; function getType() { parent::getType(); $this->processData(); echo "
" . $this->label . ""; echo "

$this->desc

"; } function processData() { $this->desc = $this->data['desc']; $this->data = str_replace("\n", "", $this->data['value']); preg_match("/\|\|(.*?)\|\|(.*?)\|\|(.*?)\|\|(.*?)\|\|/", $this->data, $matches); $this->top = $matches[1]; $this->bottom = $matches[2]; $this->right = $matches[3]; $this->left = $matches[4]; } final function getData() { return $this->data; } final function getSelected() { return array( "top" => $this->top, "bottom" => $this->bottom, "right" => $this->right, "left" => $this->left ); } } }