var/cache/dev/twig/0c/0cf6865fc31c5924b3002613258f47bb.php line 55

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. /* index.twig */
  14. class __TwigTemplate_7a6d6af387d266f9cfce0e18dafc1878 extends \Eccube\Twig\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.             'stylesheet' => [$this, 'block_stylesheet'],
  24.             'javascript' => [$this, 'block_javascript'],
  25.             'main' => [$this, 'block_main'],
  26.         ];
  27.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 11
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros = $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index.twig"));
  42.         // line 13
  43.         $context["body_class"] = "front_page";
  44.         // line 11
  45.         $this->parent = $this->loadTemplate("default_frame.twig", "index.twig", 11);
  46.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 15
  53.     public function block_stylesheet($context, array $blocks = [])
  54.     {
  55.         $macros = $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
  60.         // line 16
  61.         echo "    <link rel=\"stylesheet\" href=\"";
  62.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/home.css", "user_data"), "html", null, true);
  63.         echo "\">
  64. ";
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.         
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69.     }
  70.     // line 19
  71.     public function block_javascript($context, array $blocks = [])
  72.     {
  73.         $macros = $this->macros;
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
  78.         // line 20
  79.         echo "    <script src=\"";
  80.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/slick.js", "user_data"), "html", null, true);
  81.         echo "\"></script>
  82.     <script>
  83.         \$(function() {
  84.             \$('.main_visual').slick({
  85.                 dots: false,
  86.                 arrows: true,
  87.                 autoplay: true,
  88.                 speed: 500,
  89.                 cssEase: \"linear\",
  90.                 rtl: true,
  91.                 autoplaySpeed: 4500,
  92.                 centerMode: true,
  93.                 centerPadding: \"8%\",
  94.                 slidesToShow: 3,
  95.                 responsive: [
  96.                     {breakpoint: 768,settings: {
  97.                         slidesToShow: 1,
  98.                         centerPadding: \"50px\",
  99.                     },
  100.                     },
  101.                 ],
  102.             });
  103.         });
  104.     </script>
  105. ";
  106.         
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  108.         
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  110.     }
  111.     // line 46
  112.     public function block_main($context, array $blocks = [])
  113.     {
  114.         $macros = $this->macros;
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  119.         
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  121.         
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  123.     }
  124.     public function getTemplateName()
  125.     {
  126.         return "index.twig";
  127.     }
  128.     public function isTraitable()
  129.     {
  130.         return false;
  131.     }
  132.     public function getDebugInfo()
  133.     {
  134.         return array (  134 => 46,  98 => 20,  88 => 19,  75 => 16,  65 => 15,  54 => 11,  52 => 13,  39 => 11,);
  135.     }
  136.     public function getSourceContext()
  137.     {
  138.         return new Source("{#
  139. This file is part of EC-CUBE
  140. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  141. http://www.ec-cube.co.jp/
  142. For the full copyright and license information, please view the LICENSE
  143. file that was distributed with this source code.
  144. #}
  145. {% extends 'default_frame.twig' %}
  146. {% set body_class = 'front_page' %}
  147. {% block stylesheet %}
  148.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/home.css', 'user_data') }}\">
  149. {% endblock %}
  150. {% block javascript %}
  151.     <script src=\"{{ asset('assets/js/slick.js', 'user_data') }}\"></script>
  152.     <script>
  153.         \$(function() {
  154.             \$('.main_visual').slick({
  155.                 dots: false,
  156.                 arrows: true,
  157.                 autoplay: true,
  158.                 speed: 500,
  159.                 cssEase: \"linear\",
  160.                 rtl: true,
  161.                 autoplaySpeed: 4500,
  162.                 centerMode: true,
  163.                 centerPadding: \"8%\",
  164.                 slidesToShow: 3,
  165.                 responsive: [
  166.                     {breakpoint: 768,settings: {
  167.                         slidesToShow: 1,
  168.                         centerPadding: \"50px\",
  169.                     },
  170.                     },
  171.                 ],
  172.             });
  173.         });
  174.     </script>
  175. {% endblock javascript %}
  176. {% block main %}
  177. {% endblock %}", "index.twig", "/home/unibo-test/www/html/app/template/default/index.twig");
  178.     }
  179.     
  180.     public function checkSecurity()
  181.     {
  182.         static $tags = array("set" => 13);
  183.         static $filters = array("escape" => 16);
  184.         static $functions = array("asset" => 16);
  185.         try {
  186.             $this->sandbox->checkSecurity(
  187.                 ['set'],
  188.                 ['escape'],
  189.                 ['asset'],
  190.                 $this->source
  191.             );
  192.         } catch (SecurityError $e) {
  193.             $e->setSourceContext($this->source);
  194.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  195.                 $e->setTemplateLine($tags[$e->getTagName()]);
  196.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  197.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  198.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  199.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  200.             }
  201.             throw $e;
  202.         }
  203.     }
  204. }