sakura/app/views/helpers/custom-menu-meta-fields-helper.twig

15 lines
510 B
Twig
Raw Permalink Normal View History

2021-07-09 18:28:29 +08:00
{% block id_input %}
<input type="hidden" class="nav-menu-id" value="{{item_id}}"/>
{% endblock %}
{% block input_field %}
<p class="field-custom-{{key}} description description-wide">
<label for="custom-menu-meta-{{key}}-{{item_id}}">
{{label}}
<br>
<input type="text" name="custom_menu_meta_{{key}}[{{item_id}}]" id="custom-menu-meta-{{key}}-{{item_id}}" class="widefat edit-menu-item-custom-menu-meta-{{key}}" value="{{esc_attr_custom_menu_meta}}"/>
</label>
{{desc}}
</p>
{% endblock %}