public static function method_get_element_inputs() { $element = headway_post('element'); $special_element_type = headway_post('specialElementType', false); $special_element_meta = headway_post('specialElementMeta', false); $group = $element['group']; $unsaved_values = headway_post('unsavedValues', false); /* Make sure that the library is loaded */ Headway::load('visual-editor/panels/design/property-inputs'); /* Get values */ if (!$special_element_type && !$special_element_meta) { $property_values = HeadwayElementsData::get_element_properties($element['id'], $group); $property_values_excluding_defaults = HeadwayElementsData::get_element_properties($element['id'], $group, true); } else { $property_values_args = array('element' => $element['id'], 'se_type' => $special_element_type, 'se_meta' => $special_element_meta, 'element_group' => $group); $property_values = HeadwayElementsData::get_special_element_properties($property_values_args); $property_values_excluding_defaults = HeadwayElementsData::get_special_element_properties(array_merge($property_values_args, array('exclude_default_data' => true))); } /* Merge in the unsaved values */ $property_values = is_array($unsaved_values) ? array_merge($property_values, $unsaved_values) : $property_values; $property_values_excluding_defaults = is_array($unsaved_values) ? array_merge($property_values_excluding_defaults, $unsaved_values) : $property_values_excluding_defaults; /* Display the appropriate inputs and values depending on the element */ HeadwayPropertyInputs::display($element, $special_element_type, $special_element_meta, $property_values, $property_values_excluding_defaults); }