var/cache/dev/twig/e1/e1932cde5c718c157cc6d13574ad39e790ffd3be3099d3b68e9bee9ed07eb16f.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\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_031391a35844cde84cf5fbfd6092c67c94dae38b5db884d9413675fb43c8a596 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.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.twig"));
  40.         // line 13
  41.         $context["body_class"] = "front_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""index.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         // line 16
  59.         echo "    <style>
  60.         .slick-slider {
  61.             margin-bottom: 30px;
  62.         }
  63.         .slick-dots {
  64.             position: absolute;
  65.             bottom: -46px;
  66.             display: block;
  67.             width: 100%;
  68.             padding: 0;
  69.             list-style: none;
  70.             text-align: center;
  71.         }
  72.         .slick-dots li {
  73.             position: relative;
  74.             display: inline-block;
  75.             width: 20px;
  76.             height: 20px;
  77.             margin: 0 5px;
  78.             padding: 0;
  79.             cursor: pointer;
  80.         }
  81.         .slick-dots li button {
  82.             font-size: 0;
  83.             line-height: 0;
  84.             display: block;
  85.             width: 20px;
  86.             height: 20px;
  87.             padding: 5px;
  88.             cursor: pointer;
  89.             color: transparent;
  90.             border: 0;
  91.             outline: none;
  92.             background: transparent;
  93.         }
  94.         .slick-dots li button:hover,
  95.         .slick-dots li button:focus {
  96.             outline: none;
  97.         }
  98.         .slick-dots li button:hover:before,
  99.         .slick-dots li button:focus:before {
  100.             opacity: 1;
  101.         }
  102.         .slick-dots li button:before {
  103.             content: \" \";
  104.             line-height: 20px;
  105.             position: absolute;
  106.             top: 0;
  107.             left: 0;
  108.             width: 16px;
  109.             height: 16px;
  110.             text-align: center;
  111.             opacity: .25;
  112.             background-color: #D8D8D8;
  113.             border-radius: 50%;
  114.         }
  115.         .slick-dots li.slick-active button:before {
  116.             background-color: #3F5794;
  117.             opacity: 1;
  118.         }
  119.         .slick-dots li button.thumbnail img {
  120.             width: 0;
  121.             height: 0;
  122.         }
  123.         .main_visual .slick-list .slick-track .slick-slide img{
  124.             width: 100%;
  125.         }
  126.         @media screen and (max-width: 768px) {
  127.             .slick-dots {
  128.                 bottom: -36px;
  129.             }
  130.             .slick-dots li {
  131.                 margin: 0 2px;
  132.                 width: 16px;
  133.                 height: 16px;
  134.             }
  135.             .slick-dots li button {
  136.                 width: 16px;
  137.                 height: 16px;
  138.                 padding: 2px;
  139.             }
  140.            .slick-dots li button:before {
  141.             width: 12px;
  142.             height: 12px;
  143.         }
  144.         }
  145.     </style>
  146. ";
  147.         
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  149.         
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  151.     }
  152.     // line 117
  153.     public function block_javascript($context, array $blocks = [])
  154.     {
  155.         $macros $this->macros;
  156.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  157.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  158.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  159.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  160.         // line 118
  161.         echo "    <script>
  162.         \$(function() {
  163.             \$('.main_visual').slick({
  164.                 dots: true,
  165.                 arrows: false,
  166.                 autoplay: true,
  167.                 centerMode:true,        //追記
  168.                 centerPadding:\"20%\",    //追記
  169.                 speed: 300,
  170.                 responsive: [
  171.                     {
  172.                         breakpoint: 759, // 759px以下のサイズに適用
  173.                         settings: {
  174.                         centerPadding:\"15%\",    //追記
  175.                         },
  176.                     },
  177.                 ],
  178.             });
  179.         });
  180.     </script>
  181. ";
  182.         
  183.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  184.         
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  186.     }
  187.     // line 140
  188.     public function block_main($context, array $blocks = [])
  189.     {
  190.         $macros $this->macros;
  191.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  192.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  193.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  194.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  195.         // line 141
  196.         echo "        <div class=\"main_visual bottom-space\">
  197.             <div class=\"item slick-slide\"><img src=\"";
  198.         // line 142
  199.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/hero/banner01.jpg"), "html"nulltrue);
  200.         echo "\"></div>
  201.             <div class=\"item slick-slide\"><img src=\"";
  202.         // line 143
  203.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/hero/banner02.jpg"), "html"nulltrue);
  204.         echo "\"></div>
  205.             <a href=\"\" class=\"item slick-slide\"><img src=\"";
  206.         // line 144
  207.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/hero/banner03.jpg"), "html"nulltrue);
  208.         echo "\"></a>
  209.         </div>
  210. ";
  211.         
  212.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  213.         
  214.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  215.     }
  216.     public function getTemplateName()
  217.     {
  218.         return "index.twig";
  219.     }
  220.     public function isTraitable()
  221.     {
  222.         return false;
  223.     }
  224.     public function getDebugInfo()
  225.     {
  226.         return array (  243 => 144,  239 => 143,  235 => 142,  232 => 141,  222 => 140,  192 => 118,  182 => 117,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  227.     }
  228.     public function getSourceContext()
  229.     {
  230.         return new Source("{#
  231. This file is part of EC-CUBE
  232. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  233. http://www.ec-cube.co.jp/
  234. For the full copyright and license information, please view the LICENSE
  235. file that was distributed with this source code.
  236. #}
  237. {% extends 'default_frame.twig' %}
  238. {% set body_class = 'front_page' %}
  239. {% block stylesheet %}
  240.     <style>
  241.         .slick-slider {
  242.             margin-bottom: 30px;
  243.         }
  244.         .slick-dots {
  245.             position: absolute;
  246.             bottom: -46px;
  247.             display: block;
  248.             width: 100%;
  249.             padding: 0;
  250.             list-style: none;
  251.             text-align: center;
  252.         }
  253.         .slick-dots li {
  254.             position: relative;
  255.             display: inline-block;
  256.             width: 20px;
  257.             height: 20px;
  258.             margin: 0 5px;
  259.             padding: 0;
  260.             cursor: pointer;
  261.         }
  262.         .slick-dots li button {
  263.             font-size: 0;
  264.             line-height: 0;
  265.             display: block;
  266.             width: 20px;
  267.             height: 20px;
  268.             padding: 5px;
  269.             cursor: pointer;
  270.             color: transparent;
  271.             border: 0;
  272.             outline: none;
  273.             background: transparent;
  274.         }
  275.         .slick-dots li button:hover,
  276.         .slick-dots li button:focus {
  277.             outline: none;
  278.         }
  279.         .slick-dots li button:hover:before,
  280.         .slick-dots li button:focus:before {
  281.             opacity: 1;
  282.         }
  283.         .slick-dots li button:before {
  284.             content: \" \";
  285.             line-height: 20px;
  286.             position: absolute;
  287.             top: 0;
  288.             left: 0;
  289.             width: 16px;
  290.             height: 16px;
  291.             text-align: center;
  292.             opacity: .25;
  293.             background-color: #D8D8D8;
  294.             border-radius: 50%;
  295.         }
  296.         .slick-dots li.slick-active button:before {
  297.             background-color: #3F5794;
  298.             opacity: 1;
  299.         }
  300.         .slick-dots li button.thumbnail img {
  301.             width: 0;
  302.             height: 0;
  303.         }
  304.         .main_visual .slick-list .slick-track .slick-slide img{
  305.             width: 100%;
  306.         }
  307.         @media screen and (max-width: 768px) {
  308.             .slick-dots {
  309.                 bottom: -36px;
  310.             }
  311.             .slick-dots li {
  312.                 margin: 0 2px;
  313.                 width: 16px;
  314.                 height: 16px;
  315.             }
  316.             .slick-dots li button {
  317.                 width: 16px;
  318.                 height: 16px;
  319.                 padding: 2px;
  320.             }
  321.            .slick-dots li button:before {
  322.             width: 12px;
  323.             height: 12px;
  324.         }
  325.         }
  326.     </style>
  327. {% endblock %}
  328. {% block javascript %}
  329.     <script>
  330.         \$(function() {
  331.             \$('.main_visual').slick({
  332.                 dots: true,
  333.                 arrows: false,
  334.                 autoplay: true,
  335.                 centerMode:true,        //追記
  336.                 centerPadding:\"20%\",    //追記
  337.                 speed: 300,
  338.                 responsive: [
  339.                     {
  340.                         breakpoint: 759, // 759px以下のサイズに適用
  341.                         settings: {
  342.                         centerPadding:\"15%\",    //追記
  343.                         },
  344.                     },
  345.                 ],
  346.             });
  347.         });
  348.     </script>
  349. {% endblock javascript %}
  350. {% block main %}
  351.         <div class=\"main_visual bottom-space\">
  352.             <div class=\"item slick-slide\"><img src=\"{{ asset('assets/img/top/hero/banner01.jpg') }}\"></div>
  353.             <div class=\"item slick-slide\"><img src=\"{{ asset('assets/img/top/hero/banner02.jpg') }}\"></div>
  354.             <a href=\"\" class=\"item slick-slide\"><img src=\"{{ asset('assets/img/top/hero/banner03.jpg') }}\"></a>
  355.         </div>
  356. {% endblock %}
  357. ""index.twig""/home/bravers/bravers.xbiz.jp/public_html/app/template/bravers/index.twig");
  358.     }
  359. }