src/ApplicationBundle/Resources/views/framework/_powered_by_honeybee.html.twig line 18

Open in your IDE?
  1. {#
  2.   GR1 — THE one branded footer for every external surface (track GROWTH).
  3.   Usage (screen):  include with {'surface': 'proposal', 'app_id': appId|default(0)}
  4.   Usage (print):   include with {'surface': 'pdf_voucher', 'variant': 'print'}
  5.   Vars: surface (required slug — becomes ?ref=), variant 'screen'|'print' (default screen),
  6.         app_id (optional; falls back to the logged-in session's appId; 0 = link without t).
  7.   Tenant kill switch: acc_setting `branding_removal_enabled` = '1' renders NOTHING (white-label).
  8.   RULES: quiet + functional, footer only, never inside legal content
  9.   (feedback_preserve_functionality_on_retheme). NOTE: twig comments do not nest — keep this
  10.   block free of literal tags.
  11. #}
  12. {% set _hb_app_id = 0 %}
  13. {% if app_id is defined and app_id %}
  14.   {% set _hb_app_id = app_id %}
  15. {% elseif app is defined and app.request is defined and app.request and app.session %}
  16.   {% set _hb_app_id = app.session.get('userAppId')|default(0) %}
  17. {% endif %}
  18. {% if hb_branding_enabled(_hb_app_id|default(0)) %}
  19.   {% set _hb_url = hb_backlink(surface|default('unknown'), _hb_app_id|default(0)) %}
  20.   {% if variant|default('screen') == 'print' %}
  21.     <div class="hb-powered-print" style="text-align:center; font-size:12px; color:#777; margin-top:8px;">
  22.       Powered by <a href="{{ _hb_url }}" style="color:#777; text-decoration:none;"><strong>HoneyBee</strong></a> &mdash; run your business on it &middot; ourhoneybee.eu
  23.     </div>
  24.   {% else %}
  25.     <div class="hb-powered" style="text-align:center; font-size:12px; color:#8a8f8f; padding:14px 10px 10px; line-height:1.4;">
  26.       Powered by <a href="{{ _hb_url }}" target="_blank" rel="noopener" style="color:#b8860b; text-decoration:none; font-weight:600;">HoneyBee</a>
  27.       &mdash; run your business on it
  28.     </div>
  29.   {% endif %}
  30. {% endif %}