var/cache/dev/twig/f8/f84eb1114ca4427f1faf9bd703bf71a8.php line 53

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. /* Theme/Produit/Service/Article/detailArticle.html.twig */
  15. class __TwigTemplate_f02c7ab7edbb40be3192cab6403c1634 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->blocks = [
  24.             'meta' => [$this'block_meta'],
  25.             'title' => [$this'block_title'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'userblog_body' => [$this'block_userblog_body'],
  28.             'javascripttemplate' => [$this'block_javascripttemplate'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "Theme/Users/User/layoutbase.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Theme/Produit/Service/Article/detailArticle.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Theme/Produit/Service/Article/detailArticle.html.twig"));
  43.         $this->parent $this->loadTemplate("Theme/Users/User/layoutbase.html.twig""Theme/Produit/Service/Article/detailArticle.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 2
  51.     public function block_meta($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  58.         // line 3
  59.         yield "\t";
  60.         yield from $this->yieldParentBlock("meta"$context$blocks);
  61.         yield "
  62. \t<meta name=\"keywords\" content=\"";
  63.         // line 4
  64.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["site"]) || array_key_exists("site"$context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.'4$this->source); })()), "html"nulltrue);
  65.         yield ", \"/>
  66. \t<meta name=\"author\" content=\"Noel Kenfack\"/>
  67. \t<meta name=\"description\" content=\"";
  68.         // line 6
  69.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["site"]) || array_key_exists("site"$context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.'6$this->source); })()), "html"nulltrue);
  70.         yield "\" />
  71. ";
  72.         
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74.         
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76.         return; yield '';
  77.     }
  78.     // line 9
  79.     public function block_title($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  86.         // line 10
  87.         yield "\t";
  88.         yield from $this->yieldParentBlock("title"$context$blocks);
  89.         yield " - Détails du service ..
  90. ";
  91.         
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93.         
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  95.         return; yield '';
  96.     }
  97.     // line 13
  98.     public function block_stylesheets($context, array $blocks = [])
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  105.         // line 14
  106.         yield "    ";
  107.         yield from $this->yieldParentBlock("stylesheets"$context$blocks);
  108.         yield "
  109. ";
  110.         
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112.         
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  114.         return; yield '';
  115.     }
  116.     // line 17
  117.     public function block_userblog_body($context, array $blocks = [])
  118.     {
  119.         $macros $this->macros;
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""userblog_body"));
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""userblog_body"));
  124.         // line 18
  125.         yield "
  126.     <section style=\"height: 500px;\">
  127.     </section>
  128. ";
  129.         
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.         return; yield '';
  134.     }
  135.     // line 27
  136.     public function block_javascripttemplate($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""javascripttemplate"));
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripttemplate"));
  143.         // line 28
  144.         yield "
  145. button = document.querySelector('button.filter-select');
  146. datalist = document.querySelector('datalist#text_editors');
  147. select = document.querySelector('select.select-input');
  148. options = select.options;
  149. /* on arrow button click, show/hide the DDL*/
  150. button.addEventListener('click', toggle_ddl);
  151. function toggle_ddl() {
  152.   if (datalist.style.display === '') {
  153.     datalist.style.display = 'block';
  154.     this.textContent = \"▲\";
  155.     /* If input already has a value, select that option from DDL */
  156.     var val = input.value;
  157.     for (var i = 0; i < options.length; i++){
  158.       if (options[i].text === val){
  159.         select.selectedIndex = i;
  160.         break;
  161.       }
  162.     }
  163.   } else hide_select();
  164. }
  165. /* when user selects an option from DDL, write it to text field */
  166. select.addEventListener('change', fill_input);
  167. function fill_input() {
  168.   input.value = options[this.selectedIndex].value;
  169.   //alert(options[this.selectedIndex].getAttribute('data-value'))
  170.   document.location.href= ''+options[this.selectedIndex].getAttribute('data-value');
  171.   hide_select();
  172. }
  173. /* when user wants to type in text field, hide DDL */
  174. input = document.querySelector('input#filter-select-input');
  175. input.addEventListener('focus', hide_select);
  176. function hide_select() {
  177.   datalist.style.display = '';
  178.   button.textContent = \"▼\";
  179. }
  180. input.addEventListener('change', change_select);
  181. function change_select(){
  182.     var val = input.value;
  183.     for (var i = 0; i < options.length; i++) {
  184.       if (options[i].text === val) {
  185.         //alert(options[i].getAttribute('data-value'))
  186.         document.location.href= ''+options[i].getAttribute('data-value');
  187.         break;
  188.       }
  189.     }
  190. }
  191. ";
  192.         
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  194.         
  195.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  196.         return; yield '';
  197.     }
  198.     /**
  199.      * @codeCoverageIgnore
  200.      */
  201.     public function getTemplateName()
  202.     {
  203.         return "Theme/Produit/Service/Article/detailArticle.html.twig";
  204.     }
  205.     /**
  206.      * @codeCoverageIgnore
  207.      */
  208.     public function isTraitable()
  209.     {
  210.         return false;
  211.     }
  212.     /**
  213.      * @codeCoverageIgnore
  214.      */
  215.     public function getDebugInfo()
  216.     {
  217.         return array (  182 => 28,  172 => 27,  154 => 18,  144 => 17,  130 => 14,  120 => 13,  106 => 10,  96 => 9,  83 => 6,  78 => 4,  73 => 3,  63 => 2,  40 => 1,);
  218.     }
  219.     public function getSourceContext()
  220.     {
  221.         return new Source("{% extends \"Theme/Users/User/layoutbase.html.twig\" %}
  222. {% block meta %}
  223. \t{{ parent() }}
  224. \t<meta name=\"keywords\" content=\"{{ site }}, \"/>
  225. \t<meta name=\"author\" content=\"Noel Kenfack\"/>
  226. \t<meta name=\"description\" content=\"{{ site }}\" />
  227. {% endblock %}
  228. {% block title %}
  229. \t{{ parent() }} - Détails du service ..
  230. {% endblock %}
  231. {% block stylesheets %}
  232.     {{ parent() }}
  233. {% endblock %}
  234. {% block userblog_body %}
  235.     <section style=\"height: 500px;\">
  236.     </section>
  237. {% endblock %}
  238. {% block javascripttemplate %}
  239. button = document.querySelector('button.filter-select');
  240. datalist = document.querySelector('datalist#text_editors');
  241. select = document.querySelector('select.select-input');
  242. options = select.options;
  243. /* on arrow button click, show/hide the DDL*/
  244. button.addEventListener('click', toggle_ddl);
  245. function toggle_ddl() {
  246.   if (datalist.style.display === '') {
  247.     datalist.style.display = 'block';
  248.     this.textContent = \"▲\";
  249.     /* If input already has a value, select that option from DDL */
  250.     var val = input.value;
  251.     for (var i = 0; i < options.length; i++){
  252.       if (options[i].text === val){
  253.         select.selectedIndex = i;
  254.         break;
  255.       }
  256.     }
  257.   } else hide_select();
  258. }
  259. /* when user selects an option from DDL, write it to text field */
  260. select.addEventListener('change', fill_input);
  261. function fill_input() {
  262.   input.value = options[this.selectedIndex].value;
  263.   //alert(options[this.selectedIndex].getAttribute('data-value'))
  264.   document.location.href= ''+options[this.selectedIndex].getAttribute('data-value');
  265.   hide_select();
  266. }
  267. /* when user wants to type in text field, hide DDL */
  268. input = document.querySelector('input#filter-select-input');
  269. input.addEventListener('focus', hide_select);
  270. function hide_select() {
  271.   datalist.style.display = '';
  272.   button.textContent = \"▼\";
  273. }
  274. input.addEventListener('change', change_select);
  275. function change_select(){
  276.     var val = input.value;
  277.     for (var i = 0; i < options.length; i++) {
  278.       if (options[i].text === val) {
  279.         //alert(options[i].getAttribute('data-value'))
  280.         document.location.href= ''+options[i].getAttribute('data-value');
  281.         break;
  282.       }
  283.     }
  284. }
  285. {% endblock %}""Theme/Produit/Service/Article/detailArticle.html.twig""/home/syscofie/public_html/syscofie/templates/Theme/Produit/Service/Article/detailArticle.html.twig");
  286.     }
  287. }