<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @Application/framework/_powered_by_honeybee.html.twig */
class __TwigTemplate_6cda127437d4a794b59167127f2df84a88ee58737ec3d3ec4ee7093ce0c21f2a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Application/framework/_powered_by_honeybee.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Application/framework/_powered_by_honeybee.html.twig"));
// line 12
$context["_hb_app_id"] = 0;
// line 13
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); })()))) {
// line 14
yield " ";
$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); })());
} elseif (((( // line 15
array_key_exists("app", $context) && CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", true, true, false, 15)) && 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", false, false, false, 15)) && 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", false, false, false, 15))) {
// line 16
yield " ";
$context["_hb_app_id"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, true, false, 16), "get", ["userAppId"], "method", true, true, false, 16)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, true, false, 16), "get", ["userAppId"], "method", false, false, false, 16), 0)) : (0));
}
// line 18
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)))) {
// line 19
yield " ";
$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)));
// line 20
yield " ";
if ((0 === 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"))) {
// line 21
yield " <div class=\"hb-powered-print\" style=\"text-align:center; font-size:12px; color:#777; margin-top:8px;\">
Powered by <a href=\"";
// line 22
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", null, true);
yield "\" style=\"color:#777; text-decoration:none;\"><strong>HoneyBee</strong></a> — run your business on it · ourhoneybee.eu
</div>
";
} else {
// line 25
yield " <div class=\"hb-powered\" style=\"text-align:center; font-size:12px; color:#8a8f8f; padding:14px 10px 10px; line-height:1.4;\">
Powered by <a href=\"";
// line 26
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", null, true);
yield "\" target=\"_blank\" rel=\"noopener\" style=\"color:#b8860b; text-decoration:none; font-weight:600;\">HoneyBee</a>
— run your business on it
</div>
";
}
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@Application/framework/_powered_by_honeybee.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
GR1 — THE one branded footer for every external surface (track GROWTH).
Usage (screen): include with {'surface': 'proposal', 'app_id': appId|default(0)}
Usage (print): include with {'surface': 'pdf_voucher', 'variant': 'print'}
Vars: surface (required slug — becomes ?ref=), variant 'screen'|'print' (default screen),
app_id (optional; falls back to the logged-in session's appId; 0 = link without t).
Tenant kill switch: acc_setting `branding_removal_enabled` = '1' renders NOTHING (white-label).
RULES: quiet + functional, footer only, never inside legal content
(feedback_preserve_functionality_on_retheme). NOTE: twig comments do not nest — keep this
block free of literal tags.
#}
{% set _hb_app_id = 0 %}
{% if app_id is defined and app_id %}
{% set _hb_app_id = app_id %}
{% elseif app is defined and app.request is defined and app.request and app.session %}
{% set _hb_app_id = app.session.get('userAppId')|default(0) %}
{% endif %}
{% if hb_branding_enabled(_hb_app_id|default(0)) %}
{% set _hb_url = hb_backlink(surface|default('unknown'), _hb_app_id|default(0)) %}
{% if variant|default('screen') == 'print' %}
<div class=\"hb-powered-print\" style=\"text-align:center; font-size:12px; color:#777; margin-top:8px;\">
Powered by <a href=\"{{ _hb_url }}\" style=\"color:#777; text-decoration:none;\"><strong>HoneyBee</strong></a> — run your business on it · ourhoneybee.eu
</div>
{% else %}
<div class=\"hb-powered\" style=\"text-align:center; font-size:12px; color:#8a8f8f; padding:14px 10px 10px; line-height:1.4;\">
Powered by <a href=\"{{ _hb_url }}\" target=\"_blank\" rel=\"noopener\" style=\"color:#b8860b; text-decoration:none; font-weight:600;\">HoneyBee</a>
— run your business on it
</div>
{% endif %}
{% endif %}
", "@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");
}
}