<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* website/certificate/certificate-detail.html.twig */
class __TwigTemplate_e8d1510e585c14fb3f926ac54c806531e6859907b8f089ad65b632358ecec98d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'metaIndex' => [$this, 'block_metaIndex'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "website/main.template.html.twig";
}
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", "website/certificate/certificate-detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/certificate/certificate-detail.html.twig"));
// line 2
$macros["__internal_205f9c0c544d5ce216af52059dba19812a1c5456edb3a39e1f4c22bf9d7eed7b"] = $this->macros["__internal_205f9c0c544d5ce216af52059dba19812a1c5456edb3a39e1f4c22bf9d7eed7b"] = $this->loadTemplate("utils.html.twig", "website/certificate/certificate-detail.html.twig", 2)->unwrap();
// line 1
$this->parent = $this->loadTemplate("website/main.template.html.twig", "website/certificate/certificate-detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_metaIndex($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(), "block", "metaIndex"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaIndex"));
// line 5
echo " <meta name=\"robots\" content=\"nofollow\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 8
public function block_body($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(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 9
echo "
";
// line 10
if ( !(isset($context["isRestricted"]) || array_key_exists("isRestricted", $context) ? $context["isRestricted"] : (function () { throw new RuntimeError('Variable "isRestricted" does not exist.', 10, $this->source); })())) {
// line 11
echo " ";
$this->loadTemplate("website/includes/search-section.html.twig", "website/certificate/certificate-detail.html.twig", 11)->display($context);
// line 12
echo " ";
}
// line 13
echo "
";
// line 14
$this->loadTemplate("website/certificate/certificate-detail.html.twig", "website/certificate/certificate-detail.html.twig", 14, "530534760")->display(twig_array_merge($context, ["pageTitle" => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("certificate", "certificate"), "restricted" => (isset($context["isRestricted"]) || array_key_exists("isRestricted", $context) ? $context["isRestricted"] : (function () { throw new RuntimeError('Variable "isRestricted" does not exist.', 14, $this->source); })())]));
// line 19
echo "
<div class=\"container\">
<form id=\"certificate-search\" class=\"busca-lista certificate-detail-search\" action=\"";
// line 21
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("certificateSearchPage");
echo "\" method=\"GET\" novalidate>
<div class=\"campos-busca\">
<div class=\"wrap\">
<label class=\"label\" for=\"certificate-code\">";
// line 24
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("certificate_code", "certificate"), "html", null, true);
echo "</label>
<input type=\"text\" id=\"certificate-code\" name=\"certificate-code\" placeholder=\"";
// line 25
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("enter_certificate_code", "certificate"), "html", null, true);
echo "\" value=\"";
(((isset($context["code"]) || array_key_exists("code", $context) ? $context["code"] : (function () { throw new RuntimeError('Variable "code" does not exist.', 25, $this->source); })())) ? (print (twig_escape_filter($this->env, (isset($context["code"]) || array_key_exists("code", $context) ? $context["code"] : (function () { throw new RuntimeError('Variable "code" does not exist.', 25, $this->source); })()), "html", null, true))) : (print ("")));
echo "\" required>
</div>
<div class=\"wrap\">
<label class=\"label\" for=\"certificate-date\">";
// line 28
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("conclusion_date", "certificate"), "html", null, true);
echo "</label>
<input type=\"text\" id=\"certificate-date\" name=\"certificate-date\" class=\"js--datepicker\" placeholder=\"";
// line 29
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("enter_conclusion_date", "certificate"), "html", null, true);
echo "\" value=\"";
(((isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 29, $this->source); })())) ? (print (twig_escape_filter($this->env, (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 29, $this->source); })()), "html", null, true))) : (print ("")));
echo "\" readonly required>
</div>
</div>
<button type=\"submit\">
<i class=\"material-icons\">search</i>
</button>
</form>
";
// line 37
$context["noSearch"] = (twig_test_empty((isset($context["code"]) || array_key_exists("code", $context) ? $context["code"] : (function () { throw new RuntimeError('Variable "code" does not exist.', 37, $this->source); })())) || twig_test_empty((isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 37, $this->source); })())));
// line 38
echo "
";
// line 40
echo " ";
if ((isset($context["courseCertificate"]) || array_key_exists("courseCertificate", $context) ? $context["courseCertificate"] : (function () { throw new RuntimeError('Variable "courseCertificate" does not exist.', 40, $this->source); })())) {
// line 41
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["courseCertificate"]) || array_key_exists("courseCertificate", $context) ? $context["courseCertificate"] : (function () { throw new RuntimeError('Variable "courseCertificate" does not exist.', 41, $this->source); })()), "isExpired", [], "method", false, false, false, 41)) {
// line 42
echo " <div class=\"aviso sucesso\">
<p>";
// line 43
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("certificate_recognized", "certificate"), "html", null, true);
echo " <strong>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 43, $this->source); })()), "brand", [], "any", false, false, false, 43), "html", null, true);
echo "</strong></p>
</div>
";
} else {
// line 46
echo " <div class=\"aviso erro\">
<p>";
// line 47
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("expired_certificate_date", "certificate"), "html", null, true);
echo " <strong>";
echo twig_call_macro($macros["__internal_205f9c0c544d5ce216af52059dba19812a1c5456edb3a39e1f4c22bf9d7eed7b"], "macro_dateFormat", [twig_get_attribute($this->env, $this->source, (isset($context["courseCertificate"]) || array_key_exists("courseCertificate", $context) ? $context["courseCertificate"] : (function () { throw new RuntimeError('Variable "courseCertificate" does not exist.', 47, $this->source); })()), "dateExpired", [], "any", false, false, false, 47)], 47, $context, $this->getSourceContext());
echo "</strong></p>
</div>
";
}
// line 50
echo "
";
// line 52
echo " ";
if (((0 === twig_compare($this->extensions['EADPlataforma\Twig\FunctionsExtension']->getConfig("certificate_show_all_data"), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("CourseCertificateEnum::YES"))) && !twig_get_attribute($this->env, $this->source, // line 53
(isset($context["courseCertificate"]) || array_key_exists("courseCertificate", $context) ? $context["courseCertificate"] : (function () { throw new RuntimeError('Variable "courseCertificate" does not exist.', 53, $this->source); })()), "isExpired", [], "method", false, false, false, 53))) {
// line 54
echo " <div class=\"certificate certificate-img\">
<div class=\"info\">
<h2 class=\"titulo\">";
// line 56
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["courseCertificate"]) || array_key_exists("courseCertificate", $context) ? $context["courseCertificate"] : (function () { throw new RuntimeError('Variable "courseCertificate" does not exist.', 56, $this->source); })()), "course", [], "any", false, false, false, 56), "getTitle", [], "method", false, false, false, 56), "html", null, true);
echo "</h2>
<div class=\"desc\">
<p><strong>";
// line 58
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("tips_for_printing", "certificate"), "html", null, true);
echo "</strong></p>
<p>";
// line 59
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("use_good_printer", "certificate"), "html", null, true);
echo "</p>
<p>";
// line 60
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("coted_paper", "certificate"), "html", null, true);
echo "</p>
</div>
<div class=\"actions\">
";
// line 64
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("downloadCertificate", ["code" => (isset($context["code"]) || array_key_exists("code", $context) ? $context["code"] : (function () { throw new RuntimeError('Variable "code" does not exist.', 64, $this->source); })()), "date" => (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 64, $this->source); })())]), "html", null, true);
echo "\" class=\"js--tip\" data-tooltip-text=\"";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("download", "certificate"), "html", null, true);
echo "\" data-tooltip-class=\"tooltip-certificate\" download>
<span class=\"ico\">";
// line 65
echo twig_call_macro($macros["__internal_205f9c0c544d5ce216af52059dba19812a1c5456edb3a39e1f4c22bf9d7eed7b"], "macro_ico", ["download"], 65, $context, $this->getSourceContext());
echo "</span>
</a>
";
// line 69
echo " <a class=\"js--print-pdf js--tip\" data-print-pdf=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("viewCertificate", ["code" => (isset($context["code"]) || array_key_exists("code", $context) ? $context["code"] : (function () { throw new RuntimeError('Variable "code" does not exist.', 69, $this->source); })()), "date" => (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 69, $this->source); })())]), "html", null, true);
echo "\" data-tooltip-text=\"";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("print", "certificate"), "html", null, true);
echo "\" data-tooltip-class=\"tooltip-certificate\">
<span class=\"ico\">";
// line 70
echo twig_call_macro($macros["__internal_205f9c0c544d5ce216af52059dba19812a1c5456edb3a39e1f4c22bf9d7eed7b"], "macro_ico", ["print"], 70, $context, $this->getSourceContext());
echo "</span>
</a>
";
// line 74
echo " <a class=\"js--tip js--copy\" data-copy-content=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("viewCertificate", ["code" => (isset($context["code"]) || array_key_exists("code", $context) ? $context["code"] : (function () { throw new RuntimeError('Variable "code" does not exist.', 74, $this->source); })()), "date" => (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 74, $this->source); })())]), "html", null, true);
echo "\" data-tooltip-text=\"";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("copy_to_the_clipboard", "certificate"), "html", null, true);
echo "\" data-tooltip-class=\"tooltip-certificate\">
<span class=\"ico\">";
// line 75
echo twig_call_macro($macros["__internal_205f9c0c544d5ce216af52059dba19812a1c5456edb3a39e1f4c22bf9d7eed7b"], "macro_ico", ["link"], 75, $context, $this->getSourceContext());
echo "</span>
</a>
</div>
</div>
";
// line 81
echo " <div class=\"image\">
<div class=\"ico\">";
// line 82
echo twig_call_macro($macros["__internal_205f9c0c544d5ce216af52059dba19812a1c5456edb3a39e1f4c22bf9d7eed7b"], "macro_ico", ["pdf"], 82, $context, $this->getSourceContext());
echo "</div>
<iframe src=\"";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("viewCertificate", ["code" => (isset($context["code"]) || array_key_exists("code", $context) ? $context["code"] : (function () { throw new RuntimeError('Variable "code" does not exist.', 83, $this->source); })()), "date" => (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 83, $this->source); })())]), "html", null, true);
echo "\" type=\"application/pdf\"></iframe>
</div>
</div>
";
// line 88
echo " ";
} else {
// line 89
echo " <div class=\"certificate certificate-no-img\">
<h2 class=\"titulo\">";
// line 90
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["courseCertificate"]) || array_key_exists("courseCertificate", $context) ? $context["courseCertificate"] : (function () { throw new RuntimeError('Variable "courseCertificate" does not exist.', 90, $this->source); })()), "course", [], "any", false, false, false, 90), "getTitle", [], "method", false, false, false, 90), "html", null, true);
echo "</h2>
<div class=\"desc\">
<p>";
// line 92
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("name", "certificate"), "html", null, true);
echo ":</p>
<p>";
// line 93
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["courseCertificate"]) || array_key_exists("courseCertificate", $context) ? $context["courseCertificate"] : (function () { throw new RuntimeError('Variable "courseCertificate" does not exist.', 93, $this->source); })()), "user", [], "any", false, false, false, 93), "getName", [], "method", false, false, false, 93), "html", null, true);
echo "</p>
<p>";
// line 94
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("end", "certificate"), "html", null, true);
echo ":</p>
<p>";
// line 95
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["courseCertificate"]) || array_key_exists("courseCertificate", $context) ? $context["courseCertificate"] : (function () { throw new RuntimeError('Variable "courseCertificate" does not exist.', 95, $this->source); })()), "dateEnd", [], "any", false, false, false, 95), "d/m/Y"), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 99
echo "
";
// line 101
echo " ";
} elseif ((isset($context["noSearch"]) || array_key_exists("noSearch", $context) ? $context["noSearch"] : (function () { throw new RuntimeError('Variable "noSearch" does not exist.', 101, $this->source); })())) {
// line 102
echo "
<div class=\"box-aviso\">
<h2 class=\"titulo-aviso\">
";
// line 105
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("search_certificate", "certificate"), "html", null, true);
echo "
</h2>
<p class=\"sub\">";
// line 107
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("insert_code_date", "certificate"), "html", null, true);
echo "</p>
<a href=\"/\" class=\"btn-voltar\">";
// line 108
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("back_to_homepage", "certificate"), "html", null, true);
echo "</a>
</div>
";
// line 112
echo " ";
} else {
// line 113
echo "
<div class=\"box-aviso\">
<div class=\"aviso-img\">
<div class=\"img-ico\">
";
// line 117
echo twig_call_macro($macros["__internal_205f9c0c544d5ce216af52059dba19812a1c5456edb3a39e1f4c22bf9d7eed7b"], "macro_ico", ["no-results"], 117, $context, $this->getSourceContext());
echo "
</div>
</div>
<h2 class=\"titulo-aviso\">
";
// line 121
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("not_find_certificate", "certificate"), "html", null, true);
echo " <img src=\"";
echo twig_escape_filter($this->env, (isset($context["cdn"]) || array_key_exists("cdn", $context) ? $context["cdn"] : (function () { throw new RuntimeError('Variable "cdn" does not exist.', 121, $this->source); })()), "html", null, true);
echo "img/emoji_crying.png\">
</h2>
<p class=\"sub\">";
// line 123
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("check_the_code", "certificate"), "html", null, true);
echo "</p>
<a href=\"/\" class=\"btn-voltar\">";
// line 124
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("back_to_homepage", "certificate"), "html", null, true);
echo "</a>
</div>
";
}
// line 128
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "website/certificate/certificate-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 356 => 128, 349 => 124, 345 => 123, 338 => 121, 331 => 117, 325 => 113, 322 => 112, 316 => 108, 312 => 107, 307 => 105, 302 => 102, 299 => 101, 296 => 99, 289 => 95, 285 => 94, 281 => 93, 277 => 92, 272 => 90, 269 => 89, 266 => 88, 259 => 83, 255 => 82, 252 => 81, 244 => 75, 237 => 74, 231 => 70, 224 => 69, 218 => 65, 211 => 64, 205 => 60, 201 => 59, 197 => 58, 192 => 56, 188 => 54, 186 => 53, 184 => 52, 181 => 50, 173 => 47, 170 => 46, 162 => 43, 159 => 42, 156 => 41, 153 => 40, 150 => 38, 148 => 37, 135 => 29, 131 => 28, 123 => 25, 119 => 24, 113 => 21, 109 => 19, 107 => 14, 104 => 13, 101 => 12, 98 => 11, 96 => 10, 93 => 9, 83 => 8, 72 => 5, 62 => 4, 51 => 1, 49 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'website/main.template.html.twig' %}
{% from 'utils.html.twig' import ico, dateFormat %}
{% block metaIndex %}
<meta name=\"robots\" content=\"nofollow\">
{% endblock %}
{% block body %}
{% if not isRestricted %}
{% include 'website/includes/search-section.html.twig' %}
{% endif %}
{% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('certificate', 'certificate'), restricted: isRestricted }%}
{% block migalhas %}
<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'certificate') }}</a> / <span>{{ getLanguage('certificate', 'certificate') }}</span>
{% endblock %}
{% endembed %}
<div class=\"container\">
<form id=\"certificate-search\" class=\"busca-lista certificate-detail-search\" action=\"{{ path('certificateSearchPage') }}\" method=\"GET\" novalidate>
<div class=\"campos-busca\">
<div class=\"wrap\">
<label class=\"label\" for=\"certificate-code\">{{ getLanguage('certificate_code', 'certificate') }}</label>
<input type=\"text\" id=\"certificate-code\" name=\"certificate-code\" placeholder=\"{{ getLanguage('enter_certificate_code', 'certificate') }}\" value=\"{{ code? code }}\" required>
</div>
<div class=\"wrap\">
<label class=\"label\" for=\"certificate-date\">{{ getLanguage('conclusion_date', 'certificate') }}</label>
<input type=\"text\" id=\"certificate-date\" name=\"certificate-date\" class=\"js--datepicker\" placeholder=\"{{ getLanguage('enter_conclusion_date', 'certificate') }}\" value=\"{{ date? date }}\" readonly required>
</div>
</div>
<button type=\"submit\">
<i class=\"material-icons\">search</i>
</button>
</form>
{% set noSearch = code is empty or date is empty %}
{# CERTIFICADO #}
{% if courseCertificate %}
{% if not courseCertificate.isExpired() %}
<div class=\"aviso sucesso\">
<p>{{ getLanguage('certificate_recognized', 'certificate') }} <strong>{{ client.brand }}</strong></p>
</div>
{% else %}
<div class=\"aviso erro\">
<p>{{ getLanguage('expired_certificate_date', 'certificate') }} <strong>{{ dateFormat(courseCertificate.dateExpired) }}</strong></p>
</div>
{% endif %}
{# COM IMAGEM #}
{% if (getConfig('certificate_show_all_data') == enum('CourseCertificateEnum::YES'))
and (not courseCertificate.isExpired()) %}
<div class=\"certificate certificate-img\">
<div class=\"info\">
<h2 class=\"titulo\">{{ courseCertificate.course.getTitle() }}</h2>
<div class=\"desc\">
<p><strong>{{ getLanguage('tips_for_printing', 'certificate') }}</strong></p>
<p>{{ getLanguage('use_good_printer', 'certificate') }}</p>
<p>{{ getLanguage('coted_paper', 'certificate') }}</p>
</div>
<div class=\"actions\">
{# DONLOAD #}
<a href=\"{{ url('downloadCertificate', { code: code, date: date }) }}\" class=\"js--tip\" data-tooltip-text=\"{{ getLanguage('download', 'certificate') }}\" data-tooltip-class=\"tooltip-certificate\" download>
<span class=\"ico\">{{ ico('download') }}</span>
</a>
{# PRINT #}
<a class=\"js--print-pdf js--tip\" data-print-pdf=\"{{ path('viewCertificate', { code: code, date: date }) }}\" data-tooltip-text=\"{{ getLanguage('print', 'certificate') }}\" data-tooltip-class=\"tooltip-certificate\">
<span class=\"ico\">{{ ico('print') }}</span>
</a>
{# COPY #}
<a class=\"js--tip js--copy\" data-copy-content=\"{{ url('viewCertificate', { code: code, date: date }) }}\" data-tooltip-text=\"{{ getLanguage('copy_to_the_clipboard', 'certificate') }}\" data-tooltip-class=\"tooltip-certificate\">
<span class=\"ico\">{{ ico('link') }}</span>
</a>
</div>
</div>
{# PDF Image #}
<div class=\"image\">
<div class=\"ico\">{{ ico('pdf') }}</div>
<iframe src=\"{{ path('viewCertificate', { code: code, date: date }) }}\" type=\"application/pdf\"></iframe>
</div>
</div>
{# SEM IMAGEM #}
{% else %}
<div class=\"certificate certificate-no-img\">
<h2 class=\"titulo\">{{ courseCertificate.course.getTitle() }}</h2>
<div class=\"desc\">
<p>{{ getLanguage('name', 'certificate') }}:</p>
<p>{{ courseCertificate.user.getName() }}</p>
<p>{{ getLanguage('end', 'certificate') }}:</p>
<p>{{ courseCertificate.dateEnd|date('d/m/Y') }}</p>
</div>
</div>
{% endif %}
{# SEM BUSCA #}
{% elseif noSearch %}
<div class=\"box-aviso\">
<h2 class=\"titulo-aviso\">
{{ getLanguage('search_certificate', 'certificate') }}
</h2>
<p class=\"sub\">{{ getLanguage('insert_code_date', 'certificate') }}</p>
<a href=\"/\" class=\"btn-voltar\">{{ getLanguage('back_to_homepage', 'certificate') }}</a>
</div>
{# VAZIO #}
{% else %}
<div class=\"box-aviso\">
<div class=\"aviso-img\">
<div class=\"img-ico\">
{{ ico('no-results') }}
</div>
</div>
<h2 class=\"titulo-aviso\">
{{ getLanguage('not_find_certificate', 'certificate') }} <img src=\"{{ cdn }}img/emoji_crying.png\">
</h2>
<p class=\"sub\">{{ getLanguage('check_the_code', 'certificate') }}</p>
<a href=\"/\" class=\"btn-voltar\">{{ getLanguage('back_to_homepage', 'certificate') }}</a>
</div>
{% endif %}
</div>
{% endblock %}", "website/certificate/certificate-detail.html.twig", "/var/www/html/templates/website/certificate/certificate-detail.html.twig");
}
}
/* website/certificate/certificate-detail.html.twig */
class __TwigTemplate_e8d1510e585c14fb3f926ac54c806531e6859907b8f089ad65b632358ecec98d___530534760 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'migalhas' => [$this, 'block_migalhas'],
];
}
protected function doGetParent(array $context)
{
// line 14
return "website/includes/page-title.html.twig";
}
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", "website/certificate/certificate-detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/certificate/certificate-detail.html.twig"));
$this->parent = $this->loadTemplate("website/includes/page-title.html.twig", "website/certificate/certificate-detail.html.twig", 14);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
public function block_migalhas($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(), "block", "migalhas"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "migalhas"));
// line 16
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("home", "certificate"), "html", null, true);
echo "</a> / <span>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("certificate", "certificate"), "html", null, true);
echo "</span>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "website/certificate/certificate-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 569 => 16, 559 => 15, 536 => 14, 356 => 128, 349 => 124, 345 => 123, 338 => 121, 331 => 117, 325 => 113, 322 => 112, 316 => 108, 312 => 107, 307 => 105, 302 => 102, 299 => 101, 296 => 99, 289 => 95, 285 => 94, 281 => 93, 277 => 92, 272 => 90, 269 => 89, 266 => 88, 259 => 83, 255 => 82, 252 => 81, 244 => 75, 237 => 74, 231 => 70, 224 => 69, 218 => 65, 211 => 64, 205 => 60, 201 => 59, 197 => 58, 192 => 56, 188 => 54, 186 => 53, 184 => 52, 181 => 50, 173 => 47, 170 => 46, 162 => 43, 159 => 42, 156 => 41, 153 => 40, 150 => 38, 148 => 37, 135 => 29, 131 => 28, 123 => 25, 119 => 24, 113 => 21, 109 => 19, 107 => 14, 104 => 13, 101 => 12, 98 => 11, 96 => 10, 93 => 9, 83 => 8, 72 => 5, 62 => 4, 51 => 1, 49 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'website/main.template.html.twig' %}
{% from 'utils.html.twig' import ico, dateFormat %}
{% block metaIndex %}
<meta name=\"robots\" content=\"nofollow\">
{% endblock %}
{% block body %}
{% if not isRestricted %}
{% include 'website/includes/search-section.html.twig' %}
{% endif %}
{% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('certificate', 'certificate'), restricted: isRestricted }%}
{% block migalhas %}
<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'certificate') }}</a> / <span>{{ getLanguage('certificate', 'certificate') }}</span>
{% endblock %}
{% endembed %}
<div class=\"container\">
<form id=\"certificate-search\" class=\"busca-lista certificate-detail-search\" action=\"{{ path('certificateSearchPage') }}\" method=\"GET\" novalidate>
<div class=\"campos-busca\">
<div class=\"wrap\">
<label class=\"label\" for=\"certificate-code\">{{ getLanguage('certificate_code', 'certificate') }}</label>
<input type=\"text\" id=\"certificate-code\" name=\"certificate-code\" placeholder=\"{{ getLanguage('enter_certificate_code', 'certificate') }}\" value=\"{{ code? code }}\" required>
</div>
<div class=\"wrap\">
<label class=\"label\" for=\"certificate-date\">{{ getLanguage('conclusion_date', 'certificate') }}</label>
<input type=\"text\" id=\"certificate-date\" name=\"certificate-date\" class=\"js--datepicker\" placeholder=\"{{ getLanguage('enter_conclusion_date', 'certificate') }}\" value=\"{{ date? date }}\" readonly required>
</div>
</div>
<button type=\"submit\">
<i class=\"material-icons\">search</i>
</button>
</form>
{% set noSearch = code is empty or date is empty %}
{# CERTIFICADO #}
{% if courseCertificate %}
{% if not courseCertificate.isExpired() %}
<div class=\"aviso sucesso\">
<p>{{ getLanguage('certificate_recognized', 'certificate') }} <strong>{{ client.brand }}</strong></p>
</div>
{% else %}
<div class=\"aviso erro\">
<p>{{ getLanguage('expired_certificate_date', 'certificate') }} <strong>{{ dateFormat(courseCertificate.dateExpired) }}</strong></p>
</div>
{% endif %}
{# COM IMAGEM #}
{% if (getConfig('certificate_show_all_data') == enum('CourseCertificateEnum::YES'))
and (not courseCertificate.isExpired()) %}
<div class=\"certificate certificate-img\">
<div class=\"info\">
<h2 class=\"titulo\">{{ courseCertificate.course.getTitle() }}</h2>
<div class=\"desc\">
<p><strong>{{ getLanguage('tips_for_printing', 'certificate') }}</strong></p>
<p>{{ getLanguage('use_good_printer', 'certificate') }}</p>
<p>{{ getLanguage('coted_paper', 'certificate') }}</p>
</div>
<div class=\"actions\">
{# DONLOAD #}
<a href=\"{{ url('downloadCertificate', { code: code, date: date }) }}\" class=\"js--tip\" data-tooltip-text=\"{{ getLanguage('download', 'certificate') }}\" data-tooltip-class=\"tooltip-certificate\" download>
<span class=\"ico\">{{ ico('download') }}</span>
</a>
{# PRINT #}
<a class=\"js--print-pdf js--tip\" data-print-pdf=\"{{ path('viewCertificate', { code: code, date: date }) }}\" data-tooltip-text=\"{{ getLanguage('print', 'certificate') }}\" data-tooltip-class=\"tooltip-certificate\">
<span class=\"ico\">{{ ico('print') }}</span>
</a>
{# COPY #}
<a class=\"js--tip js--copy\" data-copy-content=\"{{ url('viewCertificate', { code: code, date: date }) }}\" data-tooltip-text=\"{{ getLanguage('copy_to_the_clipboard', 'certificate') }}\" data-tooltip-class=\"tooltip-certificate\">
<span class=\"ico\">{{ ico('link') }}</span>
</a>
</div>
</div>
{# PDF Image #}
<div class=\"image\">
<div class=\"ico\">{{ ico('pdf') }}</div>
<iframe src=\"{{ path('viewCertificate', { code: code, date: date }) }}\" type=\"application/pdf\"></iframe>
</div>
</div>
{# SEM IMAGEM #}
{% else %}
<div class=\"certificate certificate-no-img\">
<h2 class=\"titulo\">{{ courseCertificate.course.getTitle() }}</h2>
<div class=\"desc\">
<p>{{ getLanguage('name', 'certificate') }}:</p>
<p>{{ courseCertificate.user.getName() }}</p>
<p>{{ getLanguage('end', 'certificate') }}:</p>
<p>{{ courseCertificate.dateEnd|date('d/m/Y') }}</p>
</div>
</div>
{% endif %}
{# SEM BUSCA #}
{% elseif noSearch %}
<div class=\"box-aviso\">
<h2 class=\"titulo-aviso\">
{{ getLanguage('search_certificate', 'certificate') }}
</h2>
<p class=\"sub\">{{ getLanguage('insert_code_date', 'certificate') }}</p>
<a href=\"/\" class=\"btn-voltar\">{{ getLanguage('back_to_homepage', 'certificate') }}</a>
</div>
{# VAZIO #}
{% else %}
<div class=\"box-aviso\">
<div class=\"aviso-img\">
<div class=\"img-ico\">
{{ ico('no-results') }}
</div>
</div>
<h2 class=\"titulo-aviso\">
{{ getLanguage('not_find_certificate', 'certificate') }} <img src=\"{{ cdn }}img/emoji_crying.png\">
</h2>
<p class=\"sub\">{{ getLanguage('check_the_code', 'certificate') }}</p>
<a href=\"/\" class=\"btn-voltar\">{{ getLanguage('back_to_homepage', 'certificate') }}</a>
</div>
{% endif %}
</div>
{% endblock %}", "website/certificate/certificate-detail.html.twig", "/var/www/html/templates/website/certificate/certificate-detail.html.twig");
}
}