diff --git a/templates/web/prod/toolbar.html.twig b/templates/web/prod/toolbar.html.twig index 29464f5f32..b0f879ee54 100644 --- a/templates/web/prod/toolbar.html.twig +++ b/templates/web/prod/toolbar.html.twig @@ -156,8 +156,8 @@ {% if plugins.actionbar is not empty %} {% for plugin in plugins.actionbar %} +
  • {% for key, action in plugin.getActionBar().push|default([]) %} -
  • {% if action.icon %} @@ -189,6 +189,23 @@ {{ 'Feedback' | trans }}
  • + {% if plugins.actionbar is not empty %} + {% for plugin in plugins.actionbar %} +
  • + {% for key, action in plugin.getActionBar().push|default([]) %} +
  • + + {% if action.icon %} + + {% endif %} + + {% set label = action.label %} + {% trans from plugin.PluginLocale %}label{% endtrans %} + +
  • + {% endfor %} + {% endfor %} + {% endif %} @@ -207,9 +224,68 @@ {{ 'action : publier' | trans }} + {% if plugins.actionbar is not empty %} + {% for plugin in plugins.actionbar %} +
  • + {% for key, action in plugin.getActionBar().push|default([]) %} +
  • + + {% if action.icon %} + + {% endif %} + + {% set label = action.label %} + {% trans from plugin.PluginLocale %}label{% endtrans %} + +
  • + {% endfor %} + {% endfor %} + {% endif %} + {% elseif plugins.actionbar is not empty %} + +
    + {% set firstButton = true %} + {% for plugin in plugins.actionbar %} + {% for key, action in plugin.getActionBar().push|default([]) %} + {% if firstButton %} + + {% if not (loop.last and loop.parent.loop.last) %} + + + {% endif %} +
    +
    {% endif %} {% if acl.has_right('doctools') %}