* @link http://wp-dreams.com, http://codecanyon.net/user/anago/portfolio
* @copyright Copyright (c) 2014, Ernest Marcinko
*/
class wpdreamsCategories extends wpdreamsType {
function getType() {
parent::getType();
global $wpdb;
$this->processData();
$args = array();
if ($this->selected != "")
$args = array('exclude' => implode(",", $this->selected));
$this->types = get_categories($args);
echo "
";
}
function processData() {
$this->data = str_replace("\n", "", $this->data);
if ($this->data != "")
$this->selected = explode("|", $this->data);
else
$this->selected = null;
//$this->css = "border-radius:".$this->topleft."px ".$this->topright."px ".$this->bottomright."px ".$this->bottomleft."px;";
}
final function getData() {
return $this->data;
}
final function getSelected() {
return $this->selected;
}
}
}