{strip} {$_is_divider = false} {if !empty($feature.type) && $feature.type === "divider"} {$_is_divider = true} {/if} {$_title = _w("New feature")} {$_button_text = _w("Save")} {if !empty($feature.id)} {$_title = sprintf("[`Feature “%s”`]", $feature.name|default:"")} {/if} {if !empty($_is_divider)} {if !empty($feature.name)} {$_title = sprintf("[`Feature group heading “%s”`]", $feature.name|default:"")} {else} {$_title = _w("Feature group heading")} {/if} {/if} {$_active_kind_id = null} {$_active_kind = null} {if !empty($feature.kind)} {$_active_kind_id = $feature.kind} {if !empty($_active_kind_id) && !empty($kinds[$_active_kind_id])} {$_active_kind = $kinds[$_active_kind_id]} {/if} {/if} {$_active_format_id = null} {$_active_format = null} {if !empty($_active_kind.formats) && !empty($feature.format)} {$_active_format_id = $feature.format} {if !empty($_active_format_id) && in_array($_active_format_id, $_active_kind.formats) && !empty($formats[$_active_format_id])} {$_active_format = $formats[$_active_format_id]} {/if} {/if} {function name="_render_feature_value_item"}