* @link http://wp-dreams.com, http://codecanyon.net/user/anago/portfolio * @copyright Copyright (c) 2014, Ernest Marcinko */ class wpdreamsThemeChooser extends wpdreamsType { private $themes, $selected; function getType() { parent::getType(); $this->processData(); echo "
"; $decodedData = $this->themes; echo ""; foreach ($decodedData as $name => $theme) { if ($theme === false) continue; echo "
"; echo json_encode($theme); echo "
"; } echo "

" . __('Changes not take effect on the frontend until you save them.', 'ajax-search-pro') . "

"; ?>


'>

"; } function processData() { $this->themes = $this->data['themes']; $this->selected = $this->data['value']; } final function getData() { return $this->data; } final function getSelected() { return $this->selected; } } }