var/cache/dev/twig/e2/e2c8444b43dc455b07dfdfff8707601e84331e62bb901e70b868e9c949a5eae8.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_5c7958c7efe55b799406654cf5c9b62c564ca1efebf780aaa850ba08411abaa1 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: -45px;
  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.         .front_page .slick-dots li button::before{
  103.           border: 0;
  104.         }
  105.         .slick-dots li button:before {
  106.             content: \" \";
  107.             line-height: 20px;
  108.             position: absolute;
  109.             top: 0;
  110.             left: 0;
  111.             width: 12px;
  112.             height: 12px;
  113.             text-align: center;
  114.             opacity: 1;
  115.             background-color: #CCC;
  116.             border-radius: 50%;
  117.         }
  118.         .slick-dots li.slick-active button:before {
  119.             opacity: 1;
  120.             background-color: #cee1d0;
  121.         }
  122.         .slick-dots li button.thumbnail img {
  123.             width: 0;
  124.             height: 0;
  125.         }
  126.     </style>
  127. ";
  128.         
  129.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  130.         
  131.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  132.     }
  133.     // line 95
  134.     public function block_javascript($context, array $blocks = [])
  135.     {
  136.         $macros $this->macros;
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  138.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  140.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  141.         // line 96
  142.         echo "    <script>
  143.         \$(function() {
  144.           
  145.           \$(window).scroll(function () {
  146.             var now = \$(window).scrollTop();
  147.             var pos = 50 - now;
  148.             if(pos < 8){
  149.               pos = 8;
  150.             }
  151.             \$('.ec-headerNavSP').css('top', pos);
  152.           });
  153.           
  154.             \$('.main_visual').slick({
  155.               centerMode: true,
  156.               centerPadding: '25vw',
  157.               infinite: true,
  158.               dots: true,
  159.               arrows: false,
  160.               autoplay: true,
  161.               speed: 300,
  162.               responsive: [
  163.                 {
  164.                   breakpoint: 600,
  165.                   settings: {
  166.                     centerMode: true,
  167.                     centerPadding: '5vw'
  168.                   }
  169.                 },
  170.                 {
  171.                   breakpoint: 1281,
  172.                   settings: {
  173.                     centerMode: true,
  174.                     centerPadding: '18vw'
  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 137
  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 138
  196.         echo "  
  197.     <div class=\"ec-sliderRole\">
  198.         <div class=\"main_visual\">
  199.           ";
  200.         // line 141
  201.         $context['_parent'] = $context;
  202.         $context['_seq'] = twig_ensure_traversable((isset($context["Blogs"]) || array_key_exists("Blogs"$context) ? $context["Blogs"] : (function () { throw new RuntimeError('Variable "Blogs" does not exist.'141$this->source); })()));
  203.         foreach ($context['_seq'] as $context["key"] => $context["blog"]) {
  204.             // line 142
  205.             echo "          <div class=\"item slick-slide\">
  206.             <a href=\"";
  207.             // line 143
  208.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_view", ["id" => twig_get_attribute($this->env$this->source$context["blog"], "ID", [], "any"falsefalsefalse143)]), "html"nulltrue);
  209.             echo "\">
  210.              <img src=\"";
  211.             // line 144
  212.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["blog"], "img_src", [], "any"falsefalsefalse144), "sizes", [], "any"falsefalsefalse144), "large", [], "any"falsefalsefalse144), "html"nulltrue);
  213.             echo "\" alt=\"";
  214.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["blog"], "post_title", [], "any"falsefalsefalse144), "html"nulltrue);
  215.             echo "\">
  216.             </a>
  217.           </div>
  218.           ";
  219.         }
  220.         $_parent $context['_parent'];
  221.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['blog'], $context['_parent'], $context['loop']);
  222.         $context array_intersect_key($context$_parent) + $_parent;
  223.         // line 148
  224.         echo "        </div>
  225.     </div>
  226.             
  227. ";
  228.         
  229.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  230.         
  231.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  232.     }
  233.     public function getTemplateName()
  234.     {
  235.         return "index.twig";
  236.     }
  237.     public function isTraitable()
  238.     {
  239.         return false;
  240.     }
  241.     public function getDebugInfo()
  242.     {
  243.         return array (  257 => 148,  245 => 144,  241 => 143,  238 => 142,  234 => 141,  229 => 138,  219 => 137,  170 => 96,  160 => 95,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  244.     }
  245.     public function getSourceContext()
  246.     {
  247.         return new Source("{#
  248. This file is part of EC-CUBE
  249. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  250. http://www.ec-cube.co.jp/
  251. For the full copyright and license information, please view the LICENSE
  252. file that was distributed with this source code.
  253. #}
  254. {% extends 'default_frame.twig' %}
  255. {% set body_class = 'front_page' %}
  256. {% block stylesheet %}
  257.     <style>
  258.         .slick-slider {
  259.             margin-bottom: 30px;
  260.         }
  261.         .slick-dots {
  262.             position: absolute;
  263.             bottom: -45px;
  264.             display: block;
  265.             width: 100%;
  266.             padding: 0;
  267.             list-style: none;
  268.             text-align: center;
  269.         }
  270.         .slick-dots li {
  271.             position: relative;
  272.             display: inline-block;
  273.             width: 20px;
  274.             height: 20px;
  275.             margin: 0 5px;
  276.             padding: 0;
  277.             cursor: pointer;
  278.         }
  279.         .slick-dots li button {
  280.             font-size: 0;
  281.             line-height: 0;
  282.             display: block;
  283.             width: 20px;
  284.             height: 20px;
  285.             padding: 5px;
  286.             cursor: pointer;
  287.             color: transparent;
  288.             border: 0;
  289.             outline: none;
  290.             background: transparent;
  291.         }
  292.         .slick-dots li button:hover,
  293.         .slick-dots li button:focus {
  294.             outline: none;
  295.         }
  296.         .slick-dots li button:hover:before,
  297.         .slick-dots li button:focus:before {
  298.             opacity: 1;
  299.         }
  300.         .front_page .slick-dots li button::before{
  301.           border: 0;
  302.         }
  303.         .slick-dots li button:before {
  304.             content: \" \";
  305.             line-height: 20px;
  306.             position: absolute;
  307.             top: 0;
  308.             left: 0;
  309.             width: 12px;
  310.             height: 12px;
  311.             text-align: center;
  312.             opacity: 1;
  313.             background-color: #CCC;
  314.             border-radius: 50%;
  315.         }
  316.         .slick-dots li.slick-active button:before {
  317.             opacity: 1;
  318.             background-color: #cee1d0;
  319.         }
  320.         .slick-dots li button.thumbnail img {
  321.             width: 0;
  322.             height: 0;
  323.         }
  324.     </style>
  325. {% endblock %}
  326. {% block javascript %}
  327.     <script>
  328.         \$(function() {
  329.           
  330.           \$(window).scroll(function () {
  331.             var now = \$(window).scrollTop();
  332.             var pos = 50 - now;
  333.             if(pos < 8){
  334.               pos = 8;
  335.             }
  336.             \$('.ec-headerNavSP').css('top', pos);
  337.           });
  338.           
  339.             \$('.main_visual').slick({
  340.               centerMode: true,
  341.               centerPadding: '25vw',
  342.               infinite: true,
  343.               dots: true,
  344.               arrows: false,
  345.               autoplay: true,
  346.               speed: 300,
  347.               responsive: [
  348.                 {
  349.                   breakpoint: 600,
  350.                   settings: {
  351.                     centerMode: true,
  352.                     centerPadding: '5vw'
  353.                   }
  354.                 },
  355.                 {
  356.                   breakpoint: 1281,
  357.                   settings: {
  358.                     centerMode: true,
  359.                     centerPadding: '18vw'
  360.                   }
  361.                 }
  362.               ]
  363.             });
  364.         });
  365.     </script>
  366. {% endblock javascript %}
  367. {% block main %}
  368.   
  369.     <div class=\"ec-sliderRole\">
  370.         <div class=\"main_visual\">
  371.           {% for key, blog in Blogs %}
  372.           <div class=\"item slick-slide\">
  373.             <a href=\"{{ url(\"blog_view\", { id : blog.ID}) }}\">
  374.              <img src=\"{{ blog.img_src.sizes.large }}\" alt=\"{{ blog.post_title }}\">
  375.             </a>
  376.           </div>
  377.           {% endfor %}
  378.         </div>
  379.     </div>
  380.             
  381. {% endblock %}
  382. ""index.twig""/home/univfukuoka3/web-srv.biz/public_html/kaiino/app/template/kaiino/index.twig");
  383.     }
  384. }