field = $value['type']; $this->name = $value['name']; $this->id = $value['id']; $this->default = isset( $value['default'] ) ? $value['default'] : ''; $this->value = isset( $value['value'] ) ? $value['value'] : ''; $this->description = isset( $value['desc'] ) ? $value['desc'] : ''; $this->options = isset( $value['options'] ) ? $value['options'] : ''; $this->dependency = isset( $value['dependency'] ) ? $value['dependency'] : ''; $this->pro = isset( $value['pro'] ) ? $value['pro'] : false; $this->pro_info = isset( $value['pro_info'] ) ? $value['pro_info'] : ''; $this->multiselect = isset( $value['multiselect'] ) ? $value['multiselect'] : false; $this->source = isset( $value['source'] ) ? $value['source'] : ''; } /** * HTML output of the field * * @since 1.0.0 */ public function render() { $options = $this->get_options(); $current = ''; $multiselect = $this->multiselect ? ' data-multiselect="1"' : ''; ob_start(); $is_pro = $this->pro && socialsnap()->pro || ! $this->pro; $is_pro_class = $is_pro ? '' : ' ss-pro-feature'; ?>