var/cache/dev/twig/57/57e5c63a6c6c4d43fe0e7bee1f0425545d1c728efcb47a04de1edcd1ee80c756.php line 57

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @Application/framework/_powered_by_honeybee.html.twig */
  15. class __TwigTemplate_6cda127437d4a794b59167127f2df84a88ee58737ec3d3ec4ee7093ce0c21f2a extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Application/framework/_powered_by_honeybee.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Application/framework/_powered_by_honeybee.html.twig"));
  34.         // line 12
  35.         $context["_hb_app_id"] = 0;
  36.         // line 13
  37.         if ((array_key_exists("app_id"$context) && (isset($context["app_id"]) || array_key_exists("app_id"$context) ? $context["app_id"] : (function () { throw new RuntimeError('Variable "app_id" does not exist.'13$this->source); })()))) {
  38.             // line 14
  39.             yield "  ";
  40.             $context["_hb_app_id"] = (isset($context["app_id"]) || array_key_exists("app_id"$context) ? $context["app_id"] : (function () { throw new RuntimeError('Variable "app_id" does not exist.'14$this->source); })());
  41.         } elseif ((((        // line 15
  42. array_key_exists("app"$context) && CoreExtension::getAttribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"truetruefalse15)) && CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'15$this->source); })()), "request", [], "any"falsefalsefalse15)) && CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'15$this->source); })()), "session", [], "any"falsefalsefalse15))) {
  43.             // line 16
  44.             yield "  ";
  45.             $context["_hb_app_id"] = ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["app"] ?? null), "session", [], "any"falsetruefalse16), "get", ["userAppId"], "method"truetruefalse16)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["app"] ?? null), "session", [], "any"falsetruefalse16), "get", ["userAppId"], "method"falsefalsefalse16), 0)) : (0));
  46.         }
  47.         // line 18
  48.         if ($this->extensions['ApplicationBundle\Modules\LeadGen\Twig\BrandingExtension']->brandingEnabled(((array_key_exists("_hb_app_id"$context)) ? (Twig\Extension\CoreExtension::default((isset($context["_hb_app_id"]) || array_key_exists("_hb_app_id"$context) ? $context["_hb_app_id"] : (function () { throw new RuntimeError('Variable "_hb_app_id" does not exist.'18$this->source); })()), 0)) : (0)))) {
  49.             // line 19
  50.             yield "  ";
  51.             $context["_hb_url"] = $this->extensions['ApplicationBundle\Modules\LeadGen\Twig\BrandingExtension']->backlink(((array_key_exists("surface"$context)) ? (Twig\Extension\CoreExtension::default((isset($context["surface"]) || array_key_exists("surface"$context) ? $context["surface"] : (function () { throw new RuntimeError('Variable "surface" does not exist.'19$this->source); })()), "unknown")) : ("unknown")), ((array_key_exists("_hb_app_id"$context)) ? (Twig\Extension\CoreExtension::default((isset($context["_hb_app_id"]) || array_key_exists("_hb_app_id"$context) ? $context["_hb_app_id"] : (function () { throw new RuntimeError('Variable "_hb_app_id" does not exist.'19$this->source); })()), 0)) : (0)));
  52.             // line 20
  53.             yield "  ";
  54.             if ((=== CoreExtension::compare(((array_key_exists("variant"$context)) ? (Twig\Extension\CoreExtension::default((isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'20$this->source); })()), "screen")) : ("screen")), "print"))) {
  55.                 // line 21
  56.                 yield "    <div class=\"hb-powered-print\" style=\"text-align:center; font-size:12px; color:#777; margin-top:8px;\">
  57.       Powered by <a href=\"";
  58.                 // line 22
  59.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["_hb_url"]) || array_key_exists("_hb_url"$context) ? $context["_hb_url"] : (function () { throw new RuntimeError('Variable "_hb_url" does not exist.'22$this->source); })()), "html"nulltrue);
  60.                 yield "\" style=\"color:#777; text-decoration:none;\"><strong>HoneyBee</strong></a> &mdash; run your business on it &middot; ourhoneybee.eu
  61.     </div>
  62.   ";
  63.             } else {
  64.                 // line 25
  65.                 yield "    <div class=\"hb-powered\" style=\"text-align:center; font-size:12px; color:#8a8f8f; padding:14px 10px 10px; line-height:1.4;\">
  66.       Powered by <a href=\"";
  67.                 // line 26
  68.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["_hb_url"]) || array_key_exists("_hb_url"$context) ? $context["_hb_url"] : (function () { throw new RuntimeError('Variable "_hb_url" does not exist.'26$this->source); })()), "html"nulltrue);
  69.                 yield "\" target=\"_blank\" rel=\"noopener\" style=\"color:#b8860b; text-decoration:none; font-weight:600;\">HoneyBee</a>
  70.       &mdash; run your business on it
  71.     </div>
  72.   ";
  73.             }
  74.         }
  75.         
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  77.         
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  79.         return; yield '';
  80.     }
  81.     /**
  82.      * @codeCoverageIgnore
  83.      */
  84.     public function getTemplateName()
  85.     {
  86.         return "@Application/framework/_powered_by_honeybee.html.twig";
  87.     }
  88.     /**
  89.      * @codeCoverageIgnore
  90.      */
  91.     public function isTraitable()
  92.     {
  93.         return false;
  94.     }
  95.     /**
  96.      * @codeCoverageIgnore
  97.      */
  98.     public function getDebugInfo()
  99.     {
  100.         return array (  77 => 26,  74 => 25,  68 => 22,  65 => 21,  62 => 20,  59 => 19,  57 => 18,  53 => 16,  51 => 15,  48 => 14,  46 => 13,  44 => 12,);
  101.     }
  102.     public function getSourceContext()
  103.     {
  104.         return new Source("{#
  105.   GR1 — THE one branded footer for every external surface (track GROWTH).
  106.   Usage (screen):  include with {'surface': 'proposal', 'app_id': appId|default(0)}
  107.   Usage (print):   include with {'surface': 'pdf_voucher', 'variant': 'print'}
  108.   Vars: surface (required slug — becomes ?ref=), variant 'screen'|'print' (default screen),
  109.         app_id (optional; falls back to the logged-in session's appId; 0 = link without t).
  110.   Tenant kill switch: acc_setting `branding_removal_enabled` = '1' renders NOTHING (white-label).
  111.   RULES: quiet + functional, footer only, never inside legal content
  112.   (feedback_preserve_functionality_on_retheme). NOTE: twig comments do not nest — keep this
  113.   block free of literal tags.
  114. #}
  115. {% set _hb_app_id = 0 %}
  116. {% if app_id is defined and app_id %}
  117.   {% set _hb_app_id = app_id %}
  118. {% elseif app is defined and app.request is defined and app.request and app.session %}
  119.   {% set _hb_app_id = app.session.get('userAppId')|default(0) %}
  120. {% endif %}
  121. {% if hb_branding_enabled(_hb_app_id|default(0)) %}
  122.   {% set _hb_url = hb_backlink(surface|default('unknown'), _hb_app_id|default(0)) %}
  123.   {% if variant|default('screen') == 'print' %}
  124.     <div class=\"hb-powered-print\" style=\"text-align:center; font-size:12px; color:#777; margin-top:8px;\">
  125.       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
  126.     </div>
  127.   {% else %}
  128.     <div class=\"hb-powered\" style=\"text-align:center; font-size:12px; color:#8a8f8f; padding:14px 10px 10px; line-height:1.4;\">
  129.       Powered by <a href=\"{{ _hb_url }}\" target=\"_blank\" rel=\"noopener\" style=\"color:#b8860b; text-decoration:none; font-weight:600;\">HoneyBee</a>
  130.       &mdash; run your business on it
  131.     </div>
  132.   {% endif %}
  133. {% endif %}
  134. ""@Application/framework/_powered_by_honeybee.html.twig""/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Resources/views/framework/_powered_by_honeybee.html.twig");
  135.     }
  136. }