var/cache/dev/twig/fe/feda0add5dc5468c28877fd456efdea6f5c43d4940960b257db0ba51ad1bc941.php line 49

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. /* api/index.html.twig */
  14. class __TwigTemplate_4a804a3abf86dfe03b1a541f3b78e3b90f6c07100d684d237d67c8dc3f95af4a 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.             'stylesheets' => [$this'block_stylesheets'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "api/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""api/index.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""api/index.html.twig"));
  39.         $this->parent $this->loadTemplate("api/base.html.twig""api/index.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_stylesheets($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  54.         // line 4
  55.         echo "<style>
  56. .card-ctm{
  57.     background-color: #fff !important;
  58. }
  59. .card-ctm:hover{
  60.     background-color: #007bff !important;
  61.     color: #fff;
  62.     cursor: pointer;
  63. }
  64. </style>
  65. ";
  66.         
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  68.         
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  70.     }
  71.     // line 19
  72.     public function block_body($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  79.         // line 20
  80.         echo "
  81. <nav class=\"navbar navbar-dark\" style=\"background-color: #9E0A0A;\">
  82.     <a class=\"navbar-brand\" href=\"#\">
  83.         <img src=\"";
  84.         // line 23
  85.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/logo/kota_kediri.png"), "html"nulltrue);
  86.         echo "\" height=\"30\" class=\"d-inline-block align-top\" alt=\"\">
  87.         <img src=\"";
  88.         // line 24
  89.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/logo/logo_masbup.png"), "html"nulltrue);
  90.         echo "\" height=\"30\" class=\"d-inline-block align-top\" alt=\"\">
  91.         API Documentation
  92.     </a>
  93. </nav>
  94. <div class=\"container-fluid\">
  95.     <div class=\"row\">
  96.         <div class=\"col-lg-12\">
  97.             <h3>OPEN DATA KEDIRI API Documentation</h3><br>
  98.         </div>
  99.     </div>
  100.     <div class=\"row\">
  101.         <div class=\"col-lg-12\">
  102.             <div class=\"card\">
  103.                 <h5 class=\"card-header\">
  104.                     ";
  105.         // line 39
  106.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse39), "html"nulltrue);
  107.         echo "
  108.                 </h5>
  109.                 <div class=\"card-body\">
  110.                     <div class=\"card border-primary mb-3\">
  111.                         <div class=\"card-header card-ctm\" data-toggle=\"collapse\" data-target=\"#collapseExample\" aria-expanded=\"false\" aria-controls=\"collapseExample\">
  112.                             ";
  113.         // line 46
  114.         echo "                            <h6><span class=\"badge badge-primary\">GET</span> ";
  115.         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"nulltrue);
  116.         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"falsefalsefalse46)]), "html"nulltrue);
  117.         echo "</h6>
  118.                         </div>
  119.                         <div class=\"collapse\" id=\"collapseExample\">
  120.                             <div class=\"card-body\">
  121.                                 <table class=\"table table-bordered table-striped\">
  122.                                     <tbody>
  123.                                         <tr>
  124.                                             <th width=\"20%\">URL</th>
  125.                                             ";
  126.         // line 55
  127.         echo "                                            <td>";
  128.         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"nulltrue);
  129.         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"falsefalsefalse55)]), "html"nulltrue);
  130.         echo "</td>
  131.                                         </tr>
  132.                                         <tr>
  133.                                             <th width=\"20%\">Limit</th>
  134.                                             <td>Limit value is number. ex : ?limit=100</td>
  135.                                         </tr>
  136.                                         <tr>
  137.                                             <th width=\"20%\">Skip</th>
  138.                                             <td>Skip value is number. ex : ?skip=100</td>
  139.                                         </tr>
  140.                                     </tbody>
  141.                                 </table>
  142.                             </div>
  143.                         </div>
  144.                     </div>
  145.                     <div class=\"card border-primary mb-3\">
  146.                         <div class=\"card-header card-ctm\" data-toggle=\"collapse\" data-target=\"#collapseExample1\" aria-expanded=\"false\" aria-controls=\"collapseExample1\">
  147.                             <h6><span class=\"badge badge-primary\">GET</span> ";
  148.         // line 73
  149.         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"nulltrue);
  150.         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"falsefalsefalse73)]) . "/{id}"), "html"nulltrue);
  151.         echo "</h6>
  152.                         </div>
  153.                         <div class=\"collapse\" id=\"collapseExample1\">
  154.                             <div class=\"card-body\">
  155.                                 <table class=\"table table-bordered table-striped\">
  156.                                     <tbody>
  157.                                         <tr>
  158.                                             <th width=\"20%\">URL</th>
  159.                                             <td>";
  160.         // line 81
  161.         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"nulltrue);
  162.         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"falsefalsefalse81)]) . "/{id}"), "html"nulltrue);
  163.         echo "</td>
  164.                                         </tr>
  165.                                         <tr>
  166.                                             <th width=\"20%\">ID</th>
  167.                                             <td>ID value is number <em class=\"text-danger\">* required</em></td>
  168.                                         </tr>
  169.                                     </tbody>
  170.                                 </table>
  171.                             </div>
  172.                         </div>
  173.                     </div>
  174.                 </div>
  175.             </div>
  176.         </div>
  177.     </div>
  178. </div>
  179. ";
  180.         
  181.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  182.         
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  184.     }
  185.     public function getTemplateName()
  186.     {
  187.         return "api/index.html.twig";
  188.     }
  189.     public function isTraitable()
  190.     {
  191.         return false;
  192.     }
  193.     public function getDebugInfo()
  194.     {
  195.         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,);
  196.     }
  197.     public function getSourceContext()
  198.     {
  199.         return new Source("{% extends 'api/base.html.twig' %}
  200. {% block stylesheets %}
  201. <style>
  202. .card-ctm{
  203.     background-color: #fff !important;
  204. }
  205. .card-ctm:hover{
  206.     background-color: #007bff !important;
  207.     color: #fff;
  208.     cursor: pointer;
  209. }
  210. </style>
  211. {% endblock %}
  212. {% block body %}
  213. <nav class=\"navbar navbar-dark\" style=\"background-color: #9E0A0A;\">
  214.     <a class=\"navbar-brand\" href=\"#\">
  215.         <img src=\"{{ asset('assets/logo/kota_kediri.png') }}\" height=\"30\" class=\"d-inline-block align-top\" alt=\"\">
  216.         <img src=\"{{ asset('assets/logo/logo_masbup.png') }}\" height=\"30\" class=\"d-inline-block align-top\" alt=\"\">
  217.         API Documentation
  218.     </a>
  219. </nav>
  220. <div class=\"container-fluid\">
  221.     <div class=\"row\">
  222.         <div class=\"col-lg-12\">
  223.             <h3>OPEN DATA KEDIRI API Documentation</h3><br>
  224.         </div>
  225.     </div>
  226.     <div class=\"row\">
  227.         <div class=\"col-lg-12\">
  228.             <div class=\"card\">
  229.                 <h5 class=\"card-header\">
  230.                     {{ publikasi.judul }}
  231.                 </h5>
  232.                 <div class=\"card-body\">
  233.                     <div class=\"card border-primary mb-3\">
  234.                         <div class=\"card-header card-ctm\" data-toggle=\"collapse\" data-target=\"#collapseExample\" aria-expanded=\"false\" aria-controls=\"collapseExample\">
  235.                             {# <h6><span class=\"badge badge-primary\">GET</span> {{app.request.getSchemeAndHttpHost()}}{{ path('api_get', {id: publikasi.id}) }}</h6> #}
  236.                             <h6><span class=\"badge badge-primary\">GET</span> {{url}}{{ path('api_get', {id: publikasi.id}) }}</h6>
  237.                         </div>
  238.                         <div class=\"collapse\" id=\"collapseExample\">
  239.                             <div class=\"card-body\">
  240.                                 <table class=\"table table-bordered table-striped\">
  241.                                     <tbody>
  242.                                         <tr>
  243.                                             <th width=\"20%\">URL</th>
  244.                                             {# <td>{{app.request.getSchemeAndHttpHost()}}{{ path('api_get', {id: publikasi.id}) }}</td> #}
  245.                                             <td>{{url}}{{ path('api_get', {id: publikasi.id}) }}</td>
  246.                                         </tr>
  247.                                         <tr>
  248.                                             <th width=\"20%\">Limit</th>
  249.                                             <td>Limit value is number. ex : ?limit=100</td>
  250.                                         </tr>
  251.                                         <tr>
  252.                                             <th width=\"20%\">Skip</th>
  253.                                             <td>Skip value is number. ex : ?skip=100</td>
  254.                                         </tr>
  255.                                     </tbody>
  256.                                 </table>
  257.                             </div>
  258.                         </div>
  259.                     </div>
  260.                     <div class=\"card border-primary mb-3\">
  261.                         <div class=\"card-header card-ctm\" data-toggle=\"collapse\" data-target=\"#collapseExample1\" aria-expanded=\"false\" aria-controls=\"collapseExample1\">
  262.                             <h6><span class=\"badge badge-primary\">GET</span> {{url}}{{ path('api_get', {id: publikasi.id}) ~ \"/{id}\" }}</h6>
  263.                         </div>
  264.                         <div class=\"collapse\" id=\"collapseExample1\">
  265.                             <div class=\"card-body\">
  266.                                 <table class=\"table table-bordered table-striped\">
  267.                                     <tbody>
  268.                                         <tr>
  269.                                             <th width=\"20%\">URL</th>
  270.                                             <td>{{url}}{{ path('api_get', {id: publikasi.id}) ~ \"/{id}\" }}</td>
  271.                                         </tr>
  272.                                         <tr>
  273.                                             <th width=\"20%\">ID</th>
  274.                                             <td>ID value is number <em class=\"text-danger\">* required</em></td>
  275.                                         </tr>
  276.                                     </tbody>
  277.                                 </table>
  278.                             </div>
  279.                         </div>
  280.                     </div>
  281.                 </div>
  282.             </div>
  283.         </div>
  284.     </div>
  285. </div>
  286. {% endblock %}""api/index.html.twig""/var/www/html/open_data/templates/api/index.html.twig");
  287.     }
  288. }