{% import 'apostrophe-ui:components/buttons.html' as buttons with context %} {% macro menuItem(content, options) -%}
  • {{ __ns('apostrophe', content.label | d('')) }}
  • {%- endmacro %} {% macro base(menu, type, options) -%} {%- if options.direction -%} {%- set direction = options.direction -%} {%- else -%} {%- set direction = 'up' -%} {%- endif -%}
    {%- if type == 'button' -%} {%- if options.buttonType -%} {{ buttons[options.buttonType](menu.label, apos.utils.merge({ action: 'dropdown-button-label' }, options) ) }} {%- else -%} {{ buttons.normal(menu.label, apos.utils.merge({ action: 'dropdown-button-label' }, options)) }} {%- endif -%} {%- elif type == 'admin' -%} {# TODO: is this dead code? adminBar.html appears to output its own #}
    {{ __ns('apostrophe', menu.label | d('')) }}
    {%- endif -%}
    {%- endmacro %}