<?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;
/* api/index.html.twig */
class __TwigTemplate_4a804a3abf86dfe03b1a541f3b78e3b90f6c07100d684d237d67c8dc3f95af4a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "api/base.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", "api/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "api/index.html.twig"));
$this->parent = $this->loadTemplate("api/base.html.twig", "api/index.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 3
public function block_stylesheets($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", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
echo "<style>
.card-ctm{
background-color: #fff !important;
}
.card-ctm:hover{
background-color: #007bff !important;
color: #fff;
cursor: pointer;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 19
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 20
echo "
<nav class=\"navbar navbar-dark\" style=\"background-color: #9E0A0A;\">
<a class=\"navbar-brand\" href=\"#\">
<img src=\"";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/logo/kota_kediri.png"), "html", null, true);
echo "\" height=\"30\" class=\"d-inline-block align-top\" alt=\"\">
<img src=\"";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/logo/logo_masbup.png"), "html", null, true);
echo "\" height=\"30\" class=\"d-inline-block align-top\" alt=\"\">
API Documentation
</a>
</nav>
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-lg-12\">
<h3>OPEN DATA KEDIRI API Documentation</h3><br>
</div>
</div>
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"card\">
<h5 class=\"card-header\">
";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["publikasi"]) || array_key_exists("publikasi", $context) ? $context["publikasi"] : (function () { throw new RuntimeError('Variable "publikasi" does not exist.', 39, $this->source); })()), "judul", [], "any", false, false, false, 39), "html", null, true);
echo "
</h5>
<div class=\"card-body\">
<div class=\"card border-primary mb-3\">
<div class=\"card-header card-ctm\" data-toggle=\"collapse\" data-target=\"#collapseExample\" aria-expanded=\"false\" aria-controls=\"collapseExample\">
";
// line 46
echo " <h6><span class=\"badge badge-primary\">GET</span> ";
echo twig_escape_filter($this->env, (isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 46, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_get", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["publikasi"]) || array_key_exists("publikasi", $context) ? $context["publikasi"] : (function () { throw new RuntimeError('Variable "publikasi" does not exist.', 46, $this->source); })()), "id", [], "any", false, false, false, 46)]), "html", null, true);
echo "</h6>
</div>
<div class=\"collapse\" id=\"collapseExample\">
<div class=\"card-body\">
<table class=\"table table-bordered table-striped\">
<tbody>
<tr>
<th width=\"20%\">URL</th>
";
// line 55
echo " <td>";
echo twig_escape_filter($this->env, (isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 55, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_get", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["publikasi"]) || array_key_exists("publikasi", $context) ? $context["publikasi"] : (function () { throw new RuntimeError('Variable "publikasi" does not exist.', 55, $this->source); })()), "id", [], "any", false, false, false, 55)]), "html", null, true);
echo "</td>
</tr>
<tr>
<th width=\"20%\">Limit</th>
<td>Limit value is number. ex : ?limit=100</td>
</tr>
<tr>
<th width=\"20%\">Skip</th>
<td>Skip value is number. ex : ?skip=100</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class=\"card border-primary mb-3\">
<div class=\"card-header card-ctm\" data-toggle=\"collapse\" data-target=\"#collapseExample1\" aria-expanded=\"false\" aria-controls=\"collapseExample1\">
<h6><span class=\"badge badge-primary\">GET</span> ";
// line 73
echo twig_escape_filter($this->env, (isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 73, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_get", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["publikasi"]) || array_key_exists("publikasi", $context) ? $context["publikasi"] : (function () { throw new RuntimeError('Variable "publikasi" does not exist.', 73, $this->source); })()), "id", [], "any", false, false, false, 73)]) . "/{id}"), "html", null, true);
echo "</h6>
</div>
<div class=\"collapse\" id=\"collapseExample1\">
<div class=\"card-body\">
<table class=\"table table-bordered table-striped\">
<tbody>
<tr>
<th width=\"20%\">URL</th>
<td>";
// line 81
echo twig_escape_filter($this->env, (isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 81, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_get", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["publikasi"]) || array_key_exists("publikasi", $context) ? $context["publikasi"] : (function () { throw new RuntimeError('Variable "publikasi" does not exist.', 81, $this->source); })()), "id", [], "any", false, false, false, 81)]) . "/{id}"), "html", null, true);
echo "</td>
</tr>
<tr>
<th width=\"20%\">ID</th>
<td>ID value is number <em class=\"text-danger\">* required</em></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "api/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 186 => 81, 174 => 73, 151 => 55, 138 => 46, 129 => 39, 111 => 24, 107 => 23, 102 => 20, 92 => 19, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'api/base.html.twig' %}
{% block stylesheets %}
<style>
.card-ctm{
background-color: #fff !important;
}
.card-ctm:hover{
background-color: #007bff !important;
color: #fff;
cursor: pointer;
}
</style>
{% endblock %}
{% block body %}
<nav class=\"navbar navbar-dark\" style=\"background-color: #9E0A0A;\">
<a class=\"navbar-brand\" href=\"#\">
<img src=\"{{ asset('assets/logo/kota_kediri.png') }}\" height=\"30\" class=\"d-inline-block align-top\" alt=\"\">
<img src=\"{{ asset('assets/logo/logo_masbup.png') }}\" height=\"30\" class=\"d-inline-block align-top\" alt=\"\">
API Documentation
</a>
</nav>
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-lg-12\">
<h3>OPEN DATA KEDIRI API Documentation</h3><br>
</div>
</div>
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"card\">
<h5 class=\"card-header\">
{{ publikasi.judul }}
</h5>
<div class=\"card-body\">
<div class=\"card border-primary mb-3\">
<div class=\"card-header card-ctm\" data-toggle=\"collapse\" data-target=\"#collapseExample\" aria-expanded=\"false\" aria-controls=\"collapseExample\">
{# <h6><span class=\"badge badge-primary\">GET</span> {{app.request.getSchemeAndHttpHost()}}{{ path('api_get', {id: publikasi.id}) }}</h6> #}
<h6><span class=\"badge badge-primary\">GET</span> {{url}}{{ path('api_get', {id: publikasi.id}) }}</h6>
</div>
<div class=\"collapse\" id=\"collapseExample\">
<div class=\"card-body\">
<table class=\"table table-bordered table-striped\">
<tbody>
<tr>
<th width=\"20%\">URL</th>
{# <td>{{app.request.getSchemeAndHttpHost()}}{{ path('api_get', {id: publikasi.id}) }}</td> #}
<td>{{url}}{{ path('api_get', {id: publikasi.id}) }}</td>
</tr>
<tr>
<th width=\"20%\">Limit</th>
<td>Limit value is number. ex : ?limit=100</td>
</tr>
<tr>
<th width=\"20%\">Skip</th>
<td>Skip value is number. ex : ?skip=100</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class=\"card border-primary mb-3\">
<div class=\"card-header card-ctm\" data-toggle=\"collapse\" data-target=\"#collapseExample1\" aria-expanded=\"false\" aria-controls=\"collapseExample1\">
<h6><span class=\"badge badge-primary\">GET</span> {{url}}{{ path('api_get', {id: publikasi.id}) ~ \"/{id}\" }}</h6>
</div>
<div class=\"collapse\" id=\"collapseExample1\">
<div class=\"card-body\">
<table class=\"table table-bordered table-striped\">
<tbody>
<tr>
<th width=\"20%\">URL</th>
<td>{{url}}{{ path('api_get', {id: publikasi.id}) ~ \"/{id}\" }}</td>
</tr>
<tr>
<th width=\"20%\">ID</th>
<td>ID value is number <em class=\"text-danger\">* required</em></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}", "api/index.html.twig", "/var/www/html/open_data/templates/api/index.html.twig");
}
}