{% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
{% if editmode %}
{{ pimcore_input('t',{placeholder:'Linktext'}) }}
{{ pimcore_input('h',{placeholder:'Href'}) }}
{% endif %}
{% set href = 'tel:' ~ pimcore_input('h')|replace({' ':''}) %}
{% set wrapper = [ {tag: 'a', href: href, class: config.class|default(''), attr: config.attr|default({})} ] %}
{{ wrap_macro.wrapperOpen( wrapper, _context) -}}
{{- pimcore_input('t').getValue() -}}
{{- wrap_macro.wrapperClose( wrapper, _context) }}