<?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;
/* Theme/Produit/Service/Article/detailArticle.html.twig */
class __TwigTemplate_f02c7ab7edbb40be3192cab6403c1634 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta' => [$this, 'block_meta'],
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'userblog_body' => [$this, 'block_userblog_body'],
'javascripttemplate' => [$this, 'block_javascripttemplate'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Theme/Users/User/layoutbase.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Theme/Produit/Service/Article/detailArticle.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Theme/Produit/Service/Article/detailArticle.html.twig"));
$this->parent = $this->loadTemplate("Theme/Users/User/layoutbase.html.twig", "Theme/Produit/Service/Article/detailArticle.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_meta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 3
yield "\t";
yield from $this->yieldParentBlock("meta", $context, $blocks);
yield "
\t<meta name=\"keywords\" content=\"";
// line 4
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", null, true);
yield ", \"/>
\t<meta name=\"author\" content=\"Noel Kenfack\"/>
\t<meta name=\"description\" content=\"";
// line 6
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", null, true);
yield "\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 9
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 10
yield "\t";
yield from $this->yieldParentBlock("title", $context, $blocks);
yield " - Détails du service ..
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 13
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 14
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 17
public function block_userblog_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "userblog_body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "userblog_body"));
// line 18
yield "
<section style=\"height: 500px;\">
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 27
public function block_javascripttemplate($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripttemplate"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripttemplate"));
// line 28
yield "
button = document.querySelector('button.filter-select');
datalist = document.querySelector('datalist#text_editors');
select = document.querySelector('select.select-input');
options = select.options;
/* on arrow button click, show/hide the DDL*/
button.addEventListener('click', toggle_ddl);
function toggle_ddl() {
if (datalist.style.display === '') {
datalist.style.display = 'block';
this.textContent = \"▲\";
/* If input already has a value, select that option from DDL */
var val = input.value;
for (var i = 0; i < options.length; i++){
if (options[i].text === val){
select.selectedIndex = i;
break;
}
}
} else hide_select();
}
/* when user selects an option from DDL, write it to text field */
select.addEventListener('change', fill_input);
function fill_input() {
input.value = options[this.selectedIndex].value;
//alert(options[this.selectedIndex].getAttribute('data-value'))
document.location.href= ''+options[this.selectedIndex].getAttribute('data-value');
hide_select();
}
/* when user wants to type in text field, hide DDL */
input = document.querySelector('input#filter-select-input');
input.addEventListener('focus', hide_select);
function hide_select() {
datalist.style.display = '';
button.textContent = \"▼\";
}
input.addEventListener('change', change_select);
function change_select(){
var val = input.value;
for (var i = 0; i < options.length; i++) {
if (options[i].text === val) {
//alert(options[i].getAttribute('data-value'))
document.location.href= ''+options[i].getAttribute('data-value');
break;
}
}
}
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Theme/Produit/Service/Article/detailArticle.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"Theme/Users/User/layoutbase.html.twig\" %}
{% block meta %}
\t{{ parent() }}
\t<meta name=\"keywords\" content=\"{{ site }}, \"/>
\t<meta name=\"author\" content=\"Noel Kenfack\"/>
\t<meta name=\"description\" content=\"{{ site }}\" />
{% endblock %}
{% block title %}
\t{{ parent() }} - Détails du service ..
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{% endblock %}
{% block userblog_body %}
<section style=\"height: 500px;\">
</section>
{% endblock %}
{% block javascripttemplate %}
button = document.querySelector('button.filter-select');
datalist = document.querySelector('datalist#text_editors');
select = document.querySelector('select.select-input');
options = select.options;
/* on arrow button click, show/hide the DDL*/
button.addEventListener('click', toggle_ddl);
function toggle_ddl() {
if (datalist.style.display === '') {
datalist.style.display = 'block';
this.textContent = \"▲\";
/* If input already has a value, select that option from DDL */
var val = input.value;
for (var i = 0; i < options.length; i++){
if (options[i].text === val){
select.selectedIndex = i;
break;
}
}
} else hide_select();
}
/* when user selects an option from DDL, write it to text field */
select.addEventListener('change', fill_input);
function fill_input() {
input.value = options[this.selectedIndex].value;
//alert(options[this.selectedIndex].getAttribute('data-value'))
document.location.href= ''+options[this.selectedIndex].getAttribute('data-value');
hide_select();
}
/* when user wants to type in text field, hide DDL */
input = document.querySelector('input#filter-select-input');
input.addEventListener('focus', hide_select);
function hide_select() {
datalist.style.display = '';
button.textContent = \"▼\";
}
input.addEventListener('change', change_select);
function change_select(){
var val = input.value;
for (var i = 0; i < options.length; i++) {
if (options[i].text === val) {
//alert(options[i].getAttribute('data-value'))
document.location.href= ''+options[i].getAttribute('data-value');
break;
}
}
}
{% endblock %}", "Theme/Produit/Service/Article/detailArticle.html.twig", "/home/syscofie/public_html/syscofie/templates/Theme/Produit/Service/Article/detailArticle.html.twig");
}
}