* @link http://codecanyon.net/user/anago/portfolio * @copyright Copyright (c) 2018, Ernest Marcinko */ class wd_ANInputs extends wpdreamsType { private $args = array( 'inputs' => array( array('Top', '0'), array('Right', '0'), array('Bottom', '0'), array('Left', '0') ), 'input_class' => 'threedigit', 'input_default' => '0', ); private $inputs = array(); function getType() { parent::getType(); $this->processData(); ?>
label; ?> inputs as $k => $value): ?>
data) && isset($this->data['args'])) $this->args = array_merge($this->args, $this->data['args']); if (is_array($this->data) && isset($this->data['value'])) { // If called from back-end non-post context $this->data = $this->data['value']; } $this->data = trim(str_replace(array("\n", ' '), array("", ' '), $this->data)); $this->inputs = explode(' ', $this->data); foreach ($this->inputs as $k => $v) { if ($v == '') unset($this->inputs[$k]); } } final function getData() { return $this->data; } } }