<?php /** no direct access **/ defined('_WPLEXEC') or die('Restricted access'); if ($type == 'parent' and !$done_this) { /** converts property id to listing id **/ if ($value) { $value = wpl_property::listing_id($value); } $parent_kind = isset($options['parent_kind']) ? $options['parent_kind'] : 0; $replace = isset($options['replace']) ? $options['replace'] : 1; $parent_key = isset($options['key']) ? $options['key'] : 'parent'; wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-autocomplete'); ?> <label for="wpl_c_<?php echo $field->id; ?> "><?php echo __($label, WPL_TEXTDOMAIN); if (in_array($mandatory, array(1, 2))) { ?> <span class="required-star">*</span><?php } ?> </label> <input type="text" class="wpl_c_<?php echo $field->table_column; ?> " id="wpl_c_<?php echo $field->id;