<?php
if (!class_exists("wpdreamsColorPickerDummy")) {
    /**
     * Class wpdreamsColorPickerDummy
     *
     * A dummy colorpicker for using inside other elements. This does not have a frontend trigger method,
     * so it can't be changed by the themeChooser class.
     *
     * @author Ernest Marcinko <ernest.marcinko@wp-dreams.com>
     * @link http://wp-dreams.com, http://codecanyon.net/user/anago/portfolio
     * @copyright Copyright (c) 2014, Ernest Marcinko
     */
    class wpdreamsColorPickerDummy extends wpdreamsType {
        function getType() {
            $this->data = wpdreams_admin_hex2rgb($this->data);
            $this->name = $this->name . "_colorpicker";
            echo "<span class='wpdreamsColorPicker'>";
            if ($this->label != "")
                echo "<label for='wpdreamscolorpicker_" . self::$_instancenumber . "'>" . $this->label . "</label>";
            echo "<input type='text' class='color' id='" . $this->name . "' id='wpdreamscolorpicker_" . self::$_instancenumber . "'  name='" . $this->name . "' id='wpdreamscolorpicker_" . self::$_instancenumber . "' value='" . $this->data . "' />";
            echo "<div class='triggerer'></div>
      </span>";
        }
    }
}
?>