var/cache/dev/twig/e5/e5dc535b2ef0ef395cddabf00cc1132a.php line 46

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @UVDeskSupportCenter/Knowledgebase/article.html.twig */
  14. class __TwigTemplate_a7ed540f84467366f418d25227ccae74 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'canonical' => [$this'block_canonical'],
  24.             'ogcanonical' => [$this'block_ogcanonical'],
  25.             'title' => [$this'block_title'],
  26.             'ogtitle' => [$this'block_ogtitle'],
  27.             'twtitle' => [$this'block_twtitle'],
  28.             'metaDescription' => [$this'block_metaDescription'],
  29.             'metaKeywords' => [$this'block_metaKeywords'],
  30.             'body' => [$this'block_body'],
  31.             'footer' => [$this'block_footer'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context)
  35.     {
  36.         // line 1
  37.         return "@UVDeskSupportCenter/Templates/layout.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@UVDeskSupportCenter/Knowledgebase/article.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@UVDeskSupportCenter/Knowledgebase/article.html.twig"));
  46.         $this->parent $this->loadTemplate("@UVDeskSupportCenter/Templates/layout.html.twig""@UVDeskSupportCenter/Knowledgebase/article.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 4
  54.     public function block_canonical($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""canonical"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""canonical"));
  61.         echo " ";
  62.         if (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'4$this->source); })()), "slug", [], "any"falsefalsefalse4)) {
  63.             echo " ";
  64.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("helpdesk_knowledgebase_read_slug_article", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'4$this->source); })()), "slug", [], "any"falsefalsefalse4)]), "html"nulltrue);
  65.             echo " ";
  66.         }
  67.         echo " ";
  68.         
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70.         
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72.     }
  73.     // line 5
  74.     public function block_ogcanonical($context, array $blocks = [])
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogcanonical"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogcanonical"));
  81.         echo " ";
  82.         if (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'5$this->source); })()), "slug", [], "any"falsefalsefalse5)) {
  83.             echo " ";
  84.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("helpdesk_knowledgebase_read_slug_article", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'5$this->source); })()), "slug", [], "any"falsefalsefalse5)]), "html"nulltrue);
  85.             echo " ";
  86.         }
  87.         echo " ";
  88.         
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  90.         
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92.     }
  93.     // line 8
  94.     public function block_title($context, array $blocks = [])
  95.     {
  96.         $macros $this->macros;
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  101.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'8$this->source); })()), "metaTitle", [], "any"falsefalsefalse8)) ? (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'8$this->source); })()), "metaTitle", [], "any"falsefalsefalse8)) : (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'8$this->source); })()), "name", [], "any"falsefalsefalse8))), "html"nulltrue);
  102.         
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  104.         
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  106.     }
  107.     // line 9
  108.     public function block_ogtitle($context, array $blocks = [])
  109.     {
  110.         $macros $this->macros;
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtitle"));
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtitle"));
  115.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'9$this->source); })()), "metaTitle", [], "any"falsefalsefalse9)) ? (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'9$this->source); })()), "metaTitle", [], "any"falsefalsefalse9)) : (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'9$this->source); })()), "name", [], "any"falsefalsefalse9))), "html"nulltrue);
  116.         
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  118.         
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  120.     }
  121.     // line 10
  122.     public function block_twtitle($context, array $blocks = [])
  123.     {
  124.         $macros $this->macros;
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  126.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""twtitle"));
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""twtitle"));
  129.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'10$this->source); })()), "metaTitle", [], "any"falsefalsefalse10)) ? (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'10$this->source); })()), "metaTitle", [], "any"falsefalsefalse10)) : (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'10$this->source); })()), "name", [], "any"falsefalsefalse10))), "html"nulltrue);
  130.         
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  132.         
  133.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  134.     }
  135.     // line 11
  136.     public function block_metaDescription($context, array $blocks = [])
  137.     {
  138.         $macros $this->macros;
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  143.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'11$this->source); })()), "metaDescription", [], "any"falsefalsefalse11)) ? (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'11$this->source); })()), "metaDescription", [], "any"falsefalsefalse11)) : (twig_join_filter(twig_get_attribute($this->env$this->source, (isset($context["uvdesk_service"]) || array_key_exists("uvdesk_service"$context) ? $context["uvdesk_service"] : (function () { throw new RuntimeError('Variable "uvdesk_service" does not exist.'11$this->source); })()), "createConentToKeywords", [=> twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'11$this->source); })()), "content", [], "any"falsefalsefalse11), => 255=> true], "method"falsefalsefalse11), " "))), "html"nulltrue);
  144.         
  145.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  146.         
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  148.     }
  149.     // line 12
  150.     public function block_metaKeywords($context, array $blocks = [])
  151.     {
  152.         $macros $this->macros;
  153.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaKeywords"));
  155.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaKeywords"));
  157.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'12$this->source); })()), "keywords", [], "any"falsefalsefalse12)) ? (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'12$this->source); })()), "keywords", [], "any"falsefalsefalse12)) : (twig_get_attribute($this->env$this->source, (isset($context["uvdesk_service"]) || array_key_exists("uvdesk_service"$context) ? $context["uvdesk_service"] : (function () { throw new RuntimeError('Variable "uvdesk_service" does not exist.'12$this->source); })()), "createConentToKeywords", [=> twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'12$this->source); })()), "content", [], "any"falsefalsefalse12)], "method"falsefalsefalse12))), "html"nulltrue);
  158.         
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  160.         
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  162.     }
  163.     // line 14
  164.     public function block_body($context, array $blocks = [])
  165.     {
  166.         $macros $this->macros;
  167.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  169.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  171.         // line 15
  172.         echo "\t<div class=\"uv-paper-article\">
  173. \t\t<div class=\"uv-paper-section\">
  174. \t\t\t<section>
  175. \t\t\t\t<h1 ";
  176.         // line 18
  177.         if (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'18$this->source); })()), "stared", [], "any"falsefalsefalse18)) {
  178.             echo "class=\"uv-starred\"";
  179.         }
  180.         echo ">";
  181.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'18$this->source); })()), "name", [], "any"falsefalsefalse18), "html"nulltrue);
  182.         echo "</h1>
  183. \t\t\t\t<p>";
  184.         // line 19
  185.         echo twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'19$this->source); })()), "content", [], "any"falsefalsefalse19);
  186.         echo "</p>
  187. \t\t\t\t<div class=\"uv-author\">
  188. \t\t\t\t\t";
  189.         // line 21
  190.         if ((array_key_exists("articleAuthor"$context) &&  !twig_test_empty((isset($context["articleAuthor"]) || array_key_exists("articleAuthor"$context) ? $context["articleAuthor"] : (function () { throw new RuntimeError('Variable "articleAuthor" does not exist.'21$this->source); })())))) {
  191.             // line 22
  192.             echo "\t\t\t\t\t\t<div class=\"uv-author-avatar\">
  193. \t\t\t\t\t\t\t";
  194.             // line 23
  195.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["articleAuthor"] ?? null), "user", [], "any"falsetruefalse23), "profileImage", [], "any"truetruefalse23) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["articleAuthor"]) || array_key_exists("articleAuthor"$context) ? $context["articleAuthor"] : (function () { throw new RuntimeError('Variable "articleAuthor" does not exist.'23$this->source); })()), "user", [], "any"falsefalsefalse23), "profileImage", [], "any"falsefalsefalse23))) {
  196.                 // line 24
  197.                 echo "\t\t\t\t\t\t\t\t<img src=\"";
  198.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["articleAuthor"]) || array_key_exists("articleAuthor"$context) ? $context["articleAuthor"] : (function () { throw new RuntimeError('Variable "articleAuthor" does not exist.'24$this->source); })()), "user", [], "any"falsefalsefalse24), "profileImage", [], "any"falsefalsefalse24), "html"nulltrue);
  199.                 echo "\">
  200. \t\t\t\t\t\t\t";
  201.             } else {
  202.                 // line 26
  203.                 echo "\t\t\t\t\t\t\t\t<img src=\"";
  204.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["default_customer_image_path"]) || array_key_exists("default_customer_image_path"$context) ? $context["default_customer_image_path"] : (function () { throw new RuntimeError('Variable "default_customer_image_path" does not exist.'26$this->source); })())), "html"nulltrue);
  205.                 echo "\">
  206. \t\t\t\t\t\t\t";
  207.             }
  208.             // line 28
  209.             echo "\t\t\t\t\t\t</div>
  210. \t\t\t\t\t\t<div class=\"uv-author-info\">
  211. \t\t\t\t\t\t\t<p>";
  212.             // line 30
  213.             echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["articleAuthor"]) || array_key_exists("articleAuthor"$context) ? $context["articleAuthor"] : (function () { throw new RuntimeError('Variable "articleAuthor" does not exist.'30$this->source); })()), "firstName", [], "any"falsefalsefalse30)), "html"nulltrue);
  214.             echo " ";
  215.             echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["articleAuthor"]) || array_key_exists("articleAuthor"$context) ? $context["articleAuthor"] : (function () { throw new RuntimeError('Variable "articleAuthor" does not exist.'30$this->source); })()), "lastName", [], "any"falsefalsefalse30)), "html"nulltrue);
  216.             echo "</p>
  217. \t\t\t\t\t\t\t<p><span>";
  218.             // line 31
  219.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Published on"), "html"nulltrue);
  220.             echo " -</span> ";
  221.             echo twig_escape_filter($this->env, (isset($context["dateAdded"]) || array_key_exists("dateAdded"$context) ? $context["dateAdded"] : (function () { throw new RuntimeError('Variable "dateAdded" does not exist.'31$this->source); })()), "html"nulltrue);
  222.             echo "</p>
  223. \t\t\t\t\t\t</div>
  224. \t\t\t\t\t";
  225.         }
  226.         // line 34
  227.         echo "
  228. \t\t\t\t</div>
  229. \t\t\t</section>
  230. \t\t\t";
  231.         // line 40
  232.         if ((array_key_exists("feedbacks"$context) && (twig_get_attribute($this->env$this->source, (isset($context["feedbacks"]) || array_key_exists("feedbacks"$context) ? $context["feedbacks"] : (function () { throw new RuntimeError('Variable "feedbacks" does not exist.'40$this->source); })()), "enabled", [], "any"falsefalsefalse40) == true))) {
  233.             // line 41
  234.             echo "\t\t\t\t<section id=\"feedbacks\" class=\"article-feedbacks\">
  235. \t\t\t\t\t";
  236.             // line 42
  237.             if ((twig_get_attribute($this->env$this->source, (isset($context["feedbacks"]) || array_key_exists("feedbacks"$context) ? $context["feedbacks"] : (function () { throw new RuntimeError('Variable "feedbacks" does not exist.'42$this->source); })()), "submitted", [], "any"falsefalsefalse42) == true)) {
  238.                 // line 43
  239.                 echo "\t\t\t\t\t\t<p>Thank you for your feedback!</p>
  240. \t\t\t\t\t";
  241.             }
  242.             // line 45
  243.             echo "\t\t\t\t</section>
  244. \t\t\t";
  245.         }
  246.         // line 47
  247.         echo "
  248. \t\t\t";
  249.         // line 69
  250.         echo "\t\t</div>
  251. \t\t";
  252.         // line 71
  253.         $this->loadTemplate("@UVDeskSupportCenter/Templates/sidepanel.html.twig""@UVDeskSupportCenter/Knowledgebase/article.html.twig"71)->display($context);
  254.         // line 72
  255.         echo "\t</div>
  256. \t";
  257.         // line 73
  258.         $this->displayParentBlock("body"$context$blocks);
  259.         echo "
  260. ";
  261.         
  262.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  263.         
  264.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  265.     }
  266.     // line 76
  267.     public function block_footer($context, array $blocks = [])
  268.     {
  269.         $macros $this->macros;
  270.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  271.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  272.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  273.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  274.         // line 77
  275.         echo "\t";
  276.         $this->displayParentBlock("footer"$context$blocks);
  277.         echo "
  278. \t";
  279.         // line 80
  280.         echo "\t";
  281.         if (((array_key_exists("feedbacks"$context) && (twig_get_attribute($this->env$this->source, (isset($context["feedbacks"]) || array_key_exists("feedbacks"$context) ? $context["feedbacks"] : (function () { throw new RuntimeError('Variable "feedbacks" does not exist.'80$this->source); })()), "enabled", [], "any"falsefalsefalse80) == true)) && (twig_get_attribute($this->env$this->source, (isset($context["feedbacks"]) || array_key_exists("feedbacks"$context) ? $context["feedbacks"] : (function () { throw new RuntimeError('Variable "feedbacks" does not exist.'80$this->source); })()), "submitted", [], "any"falsefalsefalse80) == false))) {
  282.             // line 81
  283.             echo "\t\t<script id=\"article_feedback_template\" type=\"text/template\">
  284. \t\t\t<p>Was this article helpful?</p>
  285. \t\t\t<ul>
  286. \t\t\t\t<li class=\"uv-btn-small article-badge-pta\" data-feedback=\"positive\">Yes</li>
  287. \t\t\t\t<li class=\"uv-btn-small article-badge-pta\" data-feedback=\"negative\">No</li>
  288. \t\t\t</ul>
  289. \t\t</script>
  290. \t\t<script type=\"text/javascript\">
  291. \t\t\t\$(function() {
  292. \t\t\t\tvar ArticleFeedback = Backbone.View.extend({
  293. \t\t\t\t\tel: \$(\"#feedbacks\"),
  294. \t\t\t\t\tfeedbacks: {positive: 0, negative: 0, collection: []},
  295. \t\t\t\t\ttemplate: _.template(\$(\"#article_feedback_template\").html()),
  296. \t\t\t\t\tevents: {
  297. \t\t\t\t\t\t'click .article-badge-pta': 'ratingsPTA',
  298. \t\t\t\t\t},
  299. \t\t\t\t\tinitialize: function() {
  300. \t\t\t\t\t\t";
  301.             // line 99
  302.             if ((array_key_exists("feedbacks"$context) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["feedbacks"]) || array_key_exists("feedbacks"$context) ? $context["feedbacks"] : (function () { throw new RuntimeError('Variable "feedbacks" does not exist.'99$this->source); })()), "article", [], "any"falsefalsefalse99)))) {
  303.                 // line 100
  304.                 echo "\t\t\t\t\t\t\tthis.feedbacks = ";
  305.                 echo json_encode(twig_get_attribute($this->env$this->source, (isset($context["feedbacks"]) || array_key_exists("feedbacks"$context) ? $context["feedbacks"] : (function () { throw new RuntimeError('Variable "feedbacks" does not exist.'100$this->source); })()), "article", [], "any"falsefalsefalse100));
  306.                 echo ";
  307. \t\t\t\t\t\t";
  308.             }
  309.             // line 102
  310.             echo "
  311. \t\t\t\t\t\tthis.render();
  312. \t\t\t\t\t},
  313. \t\t\t\t\trender: function() {
  314. \t\t\t\t\t\tthis.\$el.html(this.template());
  315. \t\t\t\t\t},
  316. \t\t\t\t\tratingsPTA: function(e) {
  317. \t\t\t\t\t\tvar self = this;
  318. \t\t\t\t\t\tvar feedbackType = \$(e.currentTarget).data('feedback');
  319. \t\t\t\t\t\t\$.ajax({
  320. \t\t\t\t\t\t\turl: \"";
  321.             // line 113
  322.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("helpdesk_knowledgebase_rate_article", ["articleId" => twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'113$this->source); })()), "id", [], "any"falsefalsefalse113)]), "html"nulltrue);
  323.             echo "\",
  324. \t\t\t\t\t\t\tmethod: 'POST',
  325. \t\t\t\t\t\t\tdata: {
  326. \t\t\t\t\t\t\t\tfeedback: feedbackType,
  327. \t\t\t\t\t\t\t},
  328. \t\t\t\t\t\t\tsuccess: function(response) {
  329. \t\t\t\t\t\t\t\tthis.\$el.html('');
  330. \t\t\t\t\t\t\t\tapp.appView.renderResponseAlert(response);
  331. \t\t\t\t\t\t\t},
  332. \t\t\t\t\t\t\terror: function(response) {
  333. \t\t\t\t\t\t\t\tresponse = \$.parseJSON(response.responseText);
  334. \t\t\t\t\t\t\t\t// app.appView.hideLoader();
  335. \t\t\t\t\t\t\t\tapp.appView.renderResponseAlert(response);
  336. \t\t\t\t\t\t\t}
  337. \t\t\t\t\t\t});
  338. \t\t\t\t\t},
  339. \t\t\t\t});
  340. \t\t\t\tvar articleFeedback = new ArticleFeedback();
  341. \t\t\t});
  342. \t\t</script>
  343. \t";
  344.         }
  345.         
  346.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  347.         
  348.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  349.     }
  350.     public function getTemplateName()
  351.     {
  352.         return "@UVDeskSupportCenter/Knowledgebase/article.html.twig";
  353.     }
  354.     public function isTraitable()
  355.     {
  356.         return false;
  357.     }
  358.     public function getDebugInfo()
  359.     {
  360.         return array (  383 => 113,  370 => 102,  364 => 100,  362 => 99,  342 => 81,  339 => 80,  333 => 77,  323 => 76,  311 => 73,  308 => 72,  306 => 71,  302 => 69,  299 => 47,  295 => 45,  291 => 43,  289 => 42,  286 => 41,  284 => 40,  276 => 34,  268 => 31,  262 => 30,  258 => 28,  252 => 26,  246 => 24,  244 => 23,  241 => 22,  239 => 21,  234 => 19,  226 => 18,  221 => 15,  211 => 14,  192 => 12,  173 => 11,  154 => 10,  135 => 9,  116 => 8,  91 => 5,  66 => 4,  43 => 1,);
  361.     }
  362.     public function getSourceContext()
  363.     {
  364.         return new Source("{% extends \"@UVDeskSupportCenter/Templates/layout.html.twig\" %}
  365. {% block canonical %} {% if article.slug %} {{ url('helpdesk_knowledgebase_read_slug_article', {'slug':article.slug }) }} {% endif %} {% endblock %}
  366. {% block ogcanonical %} {% if article.slug %} {{ url('helpdesk_knowledgebase_read_slug_article', {'slug':article.slug }) }} {% endif %} {% endblock %}
  367. {% block title %}{{ article.metaTitle ? article.metaTitle : article.name }}{% endblock %}
  368. {% block ogtitle %}{{ article.metaTitle ? article.metaTitle : article.name }}{% endblock %}
  369. {% block twtitle %}{{ article.metaTitle ? article.metaTitle : article.name }}{% endblock %}
  370. {% block metaDescription %}{{ article.metaDescription ? article.metaDescription : uvdesk_service.createConentToKeywords(article.content, 255, true)|join(' ') }}{% endblock %}
  371. {% block metaKeywords %}{{ article.keywords ? : uvdesk_service.createConentToKeywords(article.content) }}{% endblock %}
  372. {% block body %}
  373. \t<div class=\"uv-paper-article\">
  374. \t\t<div class=\"uv-paper-section\">
  375. \t\t\t<section>
  376. \t\t\t\t<h1 {% if article.stared %}class=\"uv-starred\"{% endif %}>{{ article.name }}</h1>
  377. \t\t\t\t<p>{{ article.content |raw }}</p>
  378. \t\t\t\t<div class=\"uv-author\">
  379. \t\t\t\t\t{% if articleAuthor is defined and articleAuthor is not empty %}
  380. \t\t\t\t\t\t<div class=\"uv-author-avatar\">
  381. \t\t\t\t\t\t\t{% if articleAuthor.user.profileImage is defined and articleAuthor.user.profileImage %}
  382. \t\t\t\t\t\t\t\t<img src=\"{{articleAuthor.user.profileImage}}\">
  383. \t\t\t\t\t\t\t{% else %}
  384. \t\t\t\t\t\t\t\t<img src=\"{{ asset(default_customer_image_path) }}\">
  385. \t\t\t\t\t\t\t{% endif %}
  386. \t\t\t\t\t\t</div>
  387. \t\t\t\t\t\t<div class=\"uv-author-info\">
  388. \t\t\t\t\t\t\t<p>{{ articleAuthor.firstName | capitalize }} {{ articleAuthor.lastName | capitalize }}</p>
  389. \t\t\t\t\t\t\t<p><span>{{\"Published on\"|trans}} -</span> {{dateAdded}}</p>
  390. \t\t\t\t\t\t</div>
  391. \t\t\t\t\t{% endif %}
  392. \t\t\t\t</div>
  393. \t\t\t</section>
  394. \t\t\t{% if feedbacks is defined and feedbacks.enabled == true %}
  395. \t\t\t\t<section id=\"feedbacks\" class=\"article-feedbacks\">
  396. \t\t\t\t\t{% if feedbacks.submitted == true %}
  397. \t\t\t\t\t\t<p>Thank you for your feedback!</p>
  398. \t\t\t\t\t{% endif %}
  399. \t\t\t\t</section>
  400. \t\t\t{% endif %}
  401. \t\t\t{# {% set companyDisqus = application_service.getCompanyDisqus() %}
  402. \t\t\t{% if companyDisqus is defined and companyDisqus is not empty %}
  403. \t\t\t\t{% if companyDisqus.ticketConversion is defined and companyDisqus.ticketConversion == true %}
  404. \t\t\t\t\t<section class=\"disqus-thread\">
  405. \t\t\t\t\t\t{{ knp_disqus_render(companyDisqus.website, {'id': \"article-{{ article.id }}\", 'limit': 10, 'newCommentCallbackFunctionName': 'disqusCommentCallback'}) }}
  406. \t\t\t\t\t</section>
  407. \t\t\t\t\t<script type=\"text/javascript\">
  408. \t\t\t\t\t\tfunction disqusCommentCallback() {
  409. \t\t\t\t\t\t\t// Set delay for disqus to update comments
  410. \t\t\t\t\t\t\tsetTimeout(function() {
  411. \t\t\t\t\t\t\t\t\$.get(\"{{ url('app_webhook_callback', {'applicationRouteName': 'disqus-engage'}) }}\");
  412. \t\t\t\t\t\t\t}, 2000);
  413. \t\t\t\t\t\t}
  414. \t\t\t\t\t</script>
  415. \t\t\t\t{% else %}
  416. \t\t\t\t\t<section class=\"disqus-thread\">
  417. \t\t\t\t\t\t{{ knp_disqus_render(companyDisqus.website, {'id': \"article-{{ article.id }}\", 'limit': 10}) }}
  418. \t\t\t\t\t</section>
  419. \t\t\t\t{% endif %}
  420. \t\t\t{% endif %} #}
  421. \t\t</div>
  422. \t\t{% include \"@UVDeskSupportCenter/Templates/sidepanel.html.twig\" %}
  423. \t</div>
  424. \t{{ parent() }}
  425. {% endblock %}
  426. {% block footer %}
  427. \t{{ parent() }}
  428. \t{# Article Feedbacks #}
  429. \t{% if feedbacks is defined and feedbacks.enabled == true and feedbacks.submitted == false %}
  430. \t\t<script id=\"article_feedback_template\" type=\"text/template\">
  431. \t\t\t<p>Was this article helpful?</p>
  432. \t\t\t<ul>
  433. \t\t\t\t<li class=\"uv-btn-small article-badge-pta\" data-feedback=\"positive\">Yes</li>
  434. \t\t\t\t<li class=\"uv-btn-small article-badge-pta\" data-feedback=\"negative\">No</li>
  435. \t\t\t</ul>
  436. \t\t</script>
  437. \t\t<script type=\"text/javascript\">
  438. \t\t\t\$(function() {
  439. \t\t\t\tvar ArticleFeedback = Backbone.View.extend({
  440. \t\t\t\t\tel: \$(\"#feedbacks\"),
  441. \t\t\t\t\tfeedbacks: {positive: 0, negative: 0, collection: []},
  442. \t\t\t\t\ttemplate: _.template(\$(\"#article_feedback_template\").html()),
  443. \t\t\t\t\tevents: {
  444. \t\t\t\t\t\t'click .article-badge-pta': 'ratingsPTA',
  445. \t\t\t\t\t},
  446. \t\t\t\t\tinitialize: function() {
  447. \t\t\t\t\t\t{% if feedbacks is defined and feedbacks.article is not empty %}
  448. \t\t\t\t\t\t\tthis.feedbacks = {{ feedbacks.article|json_encode|raw }};
  449. \t\t\t\t\t\t{% endif %}
  450. \t\t\t\t\t\tthis.render();
  451. \t\t\t\t\t},
  452. \t\t\t\t\trender: function() {
  453. \t\t\t\t\t\tthis.\$el.html(this.template());
  454. \t\t\t\t\t},
  455. \t\t\t\t\tratingsPTA: function(e) {
  456. \t\t\t\t\t\tvar self = this;
  457. \t\t\t\t\t\tvar feedbackType = \$(e.currentTarget).data('feedback');
  458. \t\t\t\t\t\t\$.ajax({
  459. \t\t\t\t\t\t\turl: \"{{ url('helpdesk_knowledgebase_rate_article', {'articleId': article.id}) }}\",
  460. \t\t\t\t\t\t\tmethod: 'POST',
  461. \t\t\t\t\t\t\tdata: {
  462. \t\t\t\t\t\t\t\tfeedback: feedbackType,
  463. \t\t\t\t\t\t\t},
  464. \t\t\t\t\t\t\tsuccess: function(response) {
  465. \t\t\t\t\t\t\t\tthis.\$el.html('');
  466. \t\t\t\t\t\t\t\tapp.appView.renderResponseAlert(response);
  467. \t\t\t\t\t\t\t},
  468. \t\t\t\t\t\t\terror: function(response) {
  469. \t\t\t\t\t\t\t\tresponse = \$.parseJSON(response.responseText);
  470. \t\t\t\t\t\t\t\t// app.appView.hideLoader();
  471. \t\t\t\t\t\t\t\tapp.appView.renderResponseAlert(response);
  472. \t\t\t\t\t\t\t}
  473. \t\t\t\t\t\t});
  474. \t\t\t\t\t},
  475. \t\t\t\t});
  476. \t\t\t\tvar articleFeedback = new ArticleFeedback();
  477. \t\t\t});
  478. \t\t</script>
  479. \t{% endif %}
  480. {% endblock %}
  481. ""@UVDeskSupportCenter/Knowledgebase/article.html.twig""/var/www/vhosts/kuckuck.app/support.kuckuck.app/vendor/uvdesk/support-center-bundle/Resources/views/Knowledgebase/article.html.twig");
  482.     }
  483. }