var/cache/dev/twig/1d/1d0e99653b8c5b2e212ad38505f4e0a2.php line 57

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_b2797e06df71b66f3cfaaf29a14770c4 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 15
  45.         $context["NewsList"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\News"), "getList", [], "method"falsefalsetrue15);
  46.         // line 11
  47.         $this->parent $this->loadTemplate("default_frame.twig""index.twig"11);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 18
  55.     public function block_stylesheet($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  62.         // line 19
  63.         echo "    <style>
  64.         .slick-slider{
  65.           height:100%;
  66.           width: 100%;
  67.           overflow: hidden;
  68.         }
  69.         .main_visual.slick-slider .slick-list,
  70.         .main_visual.slick-slider .slick-track,
  71.         .main_visual.slick-slider .slick-slide,
  72.         .main_visual.slick-slider .slick-track > .slick-slide > div,
  73.         .main_visual.slick-slider .slick-slide img{
  74.           height:100%;
  75.         }
  76.         .main_visual.slick-slider .slick-slide{
  77.           overflow:hidden;
  78.         }
  79. \t\t\t\t.main_visual.slick-slider .slick-cloned img,
  80.         .main_visual.slick-slider .slick-slide img{
  81.           opacity:0.8;
  82. \t\t\t\t\tscale: 1.7;
  83. \t\t\t\t\ttranslate: -5% 0;
  84. \t        margin-left:auto;
  85.           transition: scale 6.5s cubic-bezier(0.1, 1, 0.2, 1) , translate 6.5s;
  86.         }
  87.         .main_visual.slick-slider:before {
  88.           background: rgba(60, 20, 0, .2);
  89.           content: '';
  90.           display: block;
  91.           height: 100%;
  92.           left: 0;
  93.           opacity: .6;
  94.           position: absolute;
  95.           top: 0;
  96.           width: 100%;
  97.           z-index: 10;
  98.         }
  99.         .main_visual.slick-slider:after {
  100.           background: linear-gradient(217deg, rgba(110, 72, 51, .6), rgba(255, 0, 0, 0) 70.71%), linear-gradient(127deg, rgba(241, 234, 230, .6), rgba(0, 255, 0, 0) 70.71%), linear-gradient(336deg, rgba(249, 247, 245, .6), rgba(0, 0, 255, 0) 70.71%);
  101.           content: '';
  102.           display: block;
  103.           height: 100%;
  104.           left: 0;
  105.           opacity: .6;
  106.           position: absolute;
  107.           top: 0;
  108.           width: 100%;
  109.           z-index: 5;
  110.         }
  111.         .slick-slide{
  112.           position:relative;
  113.         }
  114.       /* ¥Æ¥­¥¹¥È¤Î¥Õ¥§©`¥É¥¤¥ó¤È¥¹¥é¥¤¥É¥¤¥ó */
  115.       .main {
  116.           opacity: 0;
  117.           transform: translateX(10vw); /* ÓÒ¤«¤é¥¹¥é¥¤¥É¥¤¥ó */
  118.           transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  119.       }
  120.       .sub {
  121.           opacity: 0;
  122.           transform: translateX(10vw); /* ÓÒ¤«¤é¥¹¥é¥¤¥É¥¤¥ó */
  123.           transition: opacity 0.5s ease-in-out 0.3s, transform 0.5s ease-in-out 0.2s; /* 0.2ÃëßW¤ì */
  124.       }
  125.       .fade-in .main {
  126.           opacity: 1;
  127.           transform: translateX(0); /* Ôª¤ÎλÖäˑø¤ë */
  128.       }
  129.       .fade-in .sub {
  130.           opacity: 1;
  131.           transform: translateX(0); /* Ôª¤ÎλÖäˑø¤ë */
  132.       }
  133. /* ±³¾°»­Ïñ¤ÎÔO¶¨ */
  134. .slick-slide {
  135.   overflow:hidden;
  136. }
  137. @-webkit-keyframes fadezoom {
  138.     0% {
  139.         transform: scale(1);
  140.     }
  141.     100% {
  142.         transform: scale(1.25);
  143.     }
  144. }
  145. @keyframes fadezoom {
  146.     0% {
  147.         transform: scale(1);
  148.     }
  149.     100% {
  150.         transform: scale(1.25);
  151.     }
  152. }
  153. .slick-animation {
  154. \t\t\tscale: 1.1 !important;
  155. \t\t\ttranslate: 5% 0 !important;
  156. /*    animation: fadezoom 20s linear 0s normal both; */
  157. }
  158.     </style>
  159. ";
  160.         
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  162.         
  163.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  164.     }
  165.     // line 134
  166.     public function block_javascript($context, array $blocks = [])
  167.     {
  168.         $macros $this->macros;
  169.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  171.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  173.         // line 135
  174.         echo "
  175.     <script>
  176. \t\t\t\$(function() {
  177. \t\t\t\t// ¥á¥¤¥ó¥¹¥é¥¤¥À©`¤Î³õÆÚ»¯•r¤Î¥¤¥Ù¥ó¥È
  178. \t\t\t  \$('.main_visual').on('init', function () {
  179. \t\t\t    // ×î³õ¤Î¥¹¥é¥¤¥É¤Ë¥¢¥Ë¥á©`¥·¥ç¥ó¤òßmÓÃ
  180. \t\t\t    \$('.main_visual .slick-slide[data-slick-index=\"0\"] img').addClass('slick-animation');
  181. \t\t\t  });
  182. \t\t\t  // ¥á¥¤¥ó¥¹¥é¥¤¥À©`¤ÎÔO¶¨
  183. \t\t\t  \$('.main_visual').slick({
  184. \t\t\t    autoplay: true,          // ×Ô„ÓÔÙÉú
  185. \t\t\t    infinite: true,          // ŸoÏÞ¥ë©`¥×
  186. \t\t\t    slidesToShow: 1,         // 1¤Ä¤Î¥¹¥é¥¤¥É¤ò±íʾ
  187. \t\t\t    slidesToScroll: 1,       // ¥¹¥é¥¤¥É¤ò1¤Ä¤º¤Ä¥¹¥¯¥í©`¥ë
  188. \t\t\t    arrows: false,           // Ê¸Ó¡¤ò·Ç±íʾ
  189. \t\t\t    speed: 2000,             // ¥Õ¥§©`¥É¥¢¥Ë¥á©`¥·¥ç¥ó¤ÎËÙ¶È
  190. \t\t\t    autoplaySpeed: 5000,     // ¥¹¥é¥¤¥É¤¬ÇФêÌæ¤ï¤ëég¸ô
  191. \t\t\t    pauseOnFocus: false,     // ¥Õ¥©©`¥«¥¹•r¤Ë¥¹¥é¥¤¥É¤òÒ»•rÍ£Ö¹¤·¤Ê¤¤
  192. \t\t\t    pauseOnHover: false,     // ¥Û¥Ð©`•r¤Ë¥¹¥é¥¤¥É¤òÒ»•rÍ£Ö¹¤·¤Ê¤¤
  193. \t\t\t    asNavFor: '.text_slider' // .text_slider ¤ÈͬÆÚ
  194. \t\t\t  })
  195. \t\t\t  .on({
  196. \t\t\t    beforeChange: function(event, slick, currentSlide, nextSlide) {
  197. \t\t\t      // ¤¹¤Ù¤Æ¤Î¥¹¥é¥¤¥É¤Î¥¢¥Ë¥á©`¥·¥ç¥ó¤ò¥ê¥»¥Ã¥È
  198. \t\t\t      \$(\".main_visual .slick-slide img\").removeClass(\"slick-animation\");
  199. \t\t\t      // ´Î¤Î¥¹¥é¥¤¥É¤Ë¥¢¥Ë¥á©`¥·¥ç¥ó¤òßmÓÃ
  200. \t\t\t      \$(\".main_visual .slick-slide[data-slick-index='\" + nextSlide + \"'] img\").addClass(\"slick-animation\");
  201. \t\t\t      // ´Î¤Î¥¹¥é¥¤¥É¤Ë¥¢¥Ë¥á©`¥·¥ç¥ó¤òßmÓÃ
  202. \t\t\t      \$(\".main_visual .slick-cloned img\").addClass(\"slick-animation\");
  203. \t\t\t    },
  204. \t\t\t    afterChange: function(event, slick, currentSlide) {
  205. \t\t\t      // Ç°¤Î¥¹¥é¥¤¥É¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤òÓ‹Ëã
  206. \t\t\t      var prevSlide = (currentSlide === 0) ? slick.slideCount - 1 : currentSlide - 1;
  207. \t\t\t      // Ç°¤Î¥¹¥é¥¤¥É¤Î¥¢¥Ë¥á©`¥·¥ç¥ó¤ò¥ê¥»¥Ã¥È
  208. \t\t\t      \$(\".main_visual .slick-slide[data-slick-index='\" + prevSlide + \"'] img\").removeClass(\"slick-animation\");
  209. \t\t\t      \$(\".main_visual .slick-cloned img\").removeClass(\"slick-animation\");
  210. \t\t\t    }
  211. \t\t\t  });
  212.         // ¥Æ¥­¥¹¥È¥¹¥é¥¤¥À©`¤Î³õÆÚ»¯•r¤Î¥¤¥Ù¥ó¥È
  213.         \$('.text_slider').on('init', function () {
  214.           // ×î³õ¤Î¥¹¥é¥¤¥É¤Ë 'fade-in' ¥¯¥é¥¹¤òßmÓÃ
  215.           \$('.slick-slide[data-slick-index=\"0\"]').addClass('fade-in');
  216.         });
  217.         // ¥Æ¥­¥¹¥È¥¹¥é¥¤¥À©`¤ÎÔO¶¨£¨¥á¥¤¥ó¥¹¥é¥¤¥À©`¤ÈͬÆÚ£©
  218.         \$('.text_slider').slick({
  219.           autoplay: true,          // ×Ô„ÓÔÙÉú
  220.           infinite: true,          // ŸoÏÞ¥ë©`¥×
  221.           slidesToShow: 1,         // 1¤Ä¤Î¥¹¥é¥¤¥É¤ò±íʾ
  222.           slidesToScroll: 1,       // ¥¹¥é¥¤¥É¤ò1¤Ä¤º¤Ä¥¹¥¯¥í©`¥ë
  223.           fade: true,
  224.           speed: 1000,
  225.           autoplaySpeed: 5000,
  226.           arrows: false,
  227.           pauseOnFocus: false,
  228.           pauseOnHover: false,
  229.           pauseOnDotsHover: false,
  230.           asNavFor: '.main_visual' // .main_visual ¤ÈͬÆÚ
  231.         })
  232.         .on({
  233.           beforeChange: function(event, slick, currentSlide, nextSlide) {
  234.             // ´Î¤Î¥¹¥é¥¤¥É¤Ë 'fade-in' ¥¯¥é¥¹¤ò×·¼Ó
  235.             \$(\".text_slider .slick-slide[data-slick-index='\" + nextSlide + \"']\").addClass(\"fade-in\");
  236.           },
  237.           afterChange: function(event, slick, currentSlide) {
  238.             // ¬FÔڤΥ¹¥é¥¤¥ÉÒÔÍâ¤Î¤¹¤Ù¤Æ¤Î¥¹¥é¥¤¥É¤«¤é 'fade-in' ¥¯¥é¥¹¤òÏ÷³ý
  239.             \$(\".text_slider .slick-slide\").not(\"[data-slick-index='\" + currentSlide + \"']\").not(\".slick-cloned\").removeClass(\"fade-in\");
  240.             // ¬FÔڤΥ¹¥é¥¤¥É¤Ë¥¯¥é¥¹¤ò´_Œg¤Ë×·¼Ó
  241.            \$(\".text_slider .slick-slide[data-slick-index='\" + currentSlide + \"']\").addClass(\"fade-in\");
  242.           }
  243.         });
  244.       });
  245.       \$(function() {
  246.           \$('.topic_slider').slick({
  247.               vertical: true,
  248.               autoplay: true,
  249.               autoplaySpeed: 3800,
  250.               speed: 800,
  251.               arrows: true,
  252.               pauseOnFocus: false,
  253.               pauseOnHover: false,
  254.               pauseOnDotsHover: false
  255.           });
  256.           \$('.ec-sliderRole__news').each(function() {
  257.               var listLength = \$(this).find('.ec-sliderRole__newsItem').length;
  258.               if (listLength > 5) {
  259.                   \$(this).find('.ec-sliderRole__newsItem:gt(4)').each(function() {
  260.                       \$(this).hide();
  261.                   });
  262.                   \$(this).append('<a id=\"news_readmore\" class=\"ec-inlineBtn--top\">";
  263.         // line 237
  264.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("more"), "html"nulltrue);
  265.         echo "</a>');
  266.                   var dispNum = 5;
  267.                   \$(this).find('#news_readmore').click(function() {
  268.                       dispNum += 5;
  269.                       \$(this).parent().find('.ec-sliderRole__newsItem:lt(' + dispNum + ')').show();
  270.                       if (dispNum >= listLength) {
  271.                           \$(this).hide();
  272.                       }
  273.                   })
  274.               }
  275.           });
  276.       });
  277.     </script>
  278. ";
  279.         
  280.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  281.         
  282.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  283.     }
  284.     // line 253
  285.     public function block_main($context, array $blocks = [])
  286.     {
  287.         $macros $this->macros;
  288.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  289.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  290.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  291.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  292.         // line 254
  293.         echo "    <div class=\"ec-sliderRole\">
  294.       <div class=\"ec-sliderRole__wrap\">
  295.         <div class=\"mv__wrap\">
  296.           <div class=\"main_visual\">
  297.               <div class=\"item slick-slide\">
  298.                 <img src=\"";
  299.         // line 260
  300.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/01.jpg"), "html"nulltrue);
  301.         echo "\" class=\"outset\">
  302.               </div>
  303.               <div class=\"item slick-slide\">
  304.                 <img src=\"";
  305.         // line 263
  306.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/02.jpg"), "html"nulltrue);
  307.         echo "\" class=\"outset\">
  308.               </div>
  309.               <div class=\"item slick-slide\">
  310.                 <img src=\"";
  311.         // line 266
  312.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/03.jpg"), "html"nulltrue);
  313.         echo "\" class=\"outset\">
  314.               </div>
  315.               <div class=\"item slick-slide\">
  316.                 <img src=\"";
  317.         // line 269
  318.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/04.jpg"), "html"nulltrue);
  319.         echo "\" class=\"outset\">
  320.               </div>
  321.           </div>
  322.           <div class=\"text_slider\">
  323.             <div class=\"ec-sliderRole__title\">
  324.               <div class=\"main\">Lillie and</div>
  325.               <div class=\"sub\">Garcello</div>
  326.             </div>
  327.             <div class=\"ec-sliderRole__title\">
  328.               <div class=\"main\">ORIGINAL</div>
  329.               <div class=\"sub\">GOODS</div>
  330.             </div>
  331.             <div class=\"ec-sliderRole__title\">
  332.               <div class=\"main\">SELECT</div>
  333.               <div class=\"sub\">SHOP</div>
  334.             </div>
  335.             <div class=\"ec-sliderRole__title\">
  336.               <div class=\"main\">RECOMMENDED</div>
  337.               <div class=\"sub\">ITEM</div>
  338.             </div>
  339.           </div>
  340.         </div>
  341.         <div class=\"ec-sliderRole__news topic_slider\">
  342.             ";
  343.         // line 296
  344.         $context['_parent'] = $context;
  345.         $context['_seq'] = twig_ensure_traversable((isset($context["NewsList"]) || array_key_exists("NewsList"$context) ? $context["NewsList"] : (function () { throw new RuntimeError('Variable "NewsList" does not exist.'296$this->source); })()));
  346.         foreach ($context['_seq'] as $context["_key"] => $context["News"]) {
  347.             // line 297
  348.             echo "                <a href=";
  349.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_detail", ["id" => twig_get_attribute($this->env$this->source$context["News"], "id", [], "any"falsefalsetrue297)]), "html"nulltrue);
  350.             echo " class=\"ec-sliderRole__newsItem\" target=\"_blank\">
  351.                     <div class=\"ec-sliderRole__newsHeading\">
  352.                         <div class=\"ec-sliderRole__newsDate\">
  353.                             ";
  354.             // line 300
  355.             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["News"], "publish_date", [], "any"falsefalsetrue300), 300$this->source)), "html"nulltrue);
  356.             echo "
  357.                         </div>
  358.                         <div class=\"ec-sliderRole__newsColumn\">
  359.                             <div class=\"ec-sliderRole__newsTitle\">
  360.                                 ";
  361.             // line 304
  362.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["News"], "title", [], "any"falsefalsetrue304), 304$this->source), "html"nulltrue);
  363.             echo "
  364.                             </div>
  365.                             ";
  366.             // line 313
  367.             echo "                        </div>
  368.                     </div>
  369.                     ";
  370.             // line 322
  371.             echo "                </a>
  372.             ";
  373.         }
  374.         $_parent $context['_parent'];
  375.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['News'], $context['_parent'], $context['loop']);
  376.         $context array_intersect_key($context$_parent) + $_parent;
  377.         // line 324
  378.         echo "        </div>
  379.       </div>
  380.     </div>
  381. ";
  382.         
  383.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  384.         
  385.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  386.     }
  387.     public function getTemplateName()
  388.     {
  389.         return "index.twig";
  390.     }
  391.     public function isTraitable()
  392.     {
  393.         return false;
  394.     }
  395.     public function getDebugInfo()
  396.     {
  397.         return array (  439 => 324,  432 => 322,  428 => 313,  423 => 304,  416 => 300,  409 => 297,  405 => 296,  375 => 269,  369 => 266,  363 => 263,  357 => 260,  349 => 254,  339 => 253,  314 => 237,  210 => 135,  200 => 134,  77 => 19,  67 => 18,  56 => 11,  54 => 15,  52 => 13,  39 => 11,);
  398.     }
  399.     public function getSourceContext()
  400.     {
  401.         return new Source("{#
  402. This file is part of EC-CUBE
  403. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  404. http://www.ec-cube.co.jp/
  405. For the full copyright and license information, please view the LICENSE
  406. file that was distributed with this source code.
  407. #}
  408. {% extends 'default_frame.twig' %}
  409. {% set body_class = 'front_page' %}
  410. {% set NewsList = repository('Eccube\\\\Entity\\\\News').getList() %}
  411. {% block stylesheet %}
  412.     <style>
  413.         .slick-slider{
  414.           height:100%;
  415.           width: 100%;
  416.           overflow: hidden;
  417.         }
  418.         .main_visual.slick-slider .slick-list,
  419.         .main_visual.slick-slider .slick-track,
  420.         .main_visual.slick-slider .slick-slide,
  421.         .main_visual.slick-slider .slick-track > .slick-slide > div,
  422.         .main_visual.slick-slider .slick-slide img{
  423.           height:100%;
  424.         }
  425.         .main_visual.slick-slider .slick-slide{
  426.           overflow:hidden;
  427.         }
  428. \t\t\t\t.main_visual.slick-slider .slick-cloned img,
  429.         .main_visual.slick-slider .slick-slide img{
  430.           opacity:0.8;
  431. \t\t\t\t\tscale: 1.7;
  432. \t\t\t\t\ttranslate: -5% 0;
  433. \t        margin-left:auto;
  434.           transition: scale 6.5s cubic-bezier(0.1, 1, 0.2, 1) , translate 6.5s;
  435.         }
  436.         .main_visual.slick-slider:before {
  437.           background: rgba(60, 20, 0, .2);
  438.           content: '';
  439.           display: block;
  440.           height: 100%;
  441.           left: 0;
  442.           opacity: .6;
  443.           position: absolute;
  444.           top: 0;
  445.           width: 100%;
  446.           z-index: 10;
  447.         }
  448.         .main_visual.slick-slider:after {
  449.           background: linear-gradient(217deg, rgba(110, 72, 51, .6), rgba(255, 0, 0, 0) 70.71%), linear-gradient(127deg, rgba(241, 234, 230, .6), rgba(0, 255, 0, 0) 70.71%), linear-gradient(336deg, rgba(249, 247, 245, .6), rgba(0, 0, 255, 0) 70.71%);
  450.           content: '';
  451.           display: block;
  452.           height: 100%;
  453.           left: 0;
  454.           opacity: .6;
  455.           position: absolute;
  456.           top: 0;
  457.           width: 100%;
  458.           z-index: 5;
  459.         }
  460.         .slick-slide{
  461.           position:relative;
  462.         }
  463.       /* ¥Æ¥­¥¹¥È¤Î¥Õ¥§©`¥É¥¤¥ó¤È¥¹¥é¥¤¥É¥¤¥ó */
  464.       .main {
  465.           opacity: 0;
  466.           transform: translateX(10vw); /* ÓÒ¤«¤é¥¹¥é¥¤¥É¥¤¥ó */
  467.           transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  468.       }
  469.       .sub {
  470.           opacity: 0;
  471.           transform: translateX(10vw); /* ÓÒ¤«¤é¥¹¥é¥¤¥É¥¤¥ó */
  472.           transition: opacity 0.5s ease-in-out 0.3s, transform 0.5s ease-in-out 0.2s; /* 0.2ÃëßW¤ì */
  473.       }
  474.       .fade-in .main {
  475.           opacity: 1;
  476.           transform: translateX(0); /* Ôª¤ÎλÖäˑø¤ë */
  477.       }
  478.       .fade-in .sub {
  479.           opacity: 1;
  480.           transform: translateX(0); /* Ôª¤ÎλÖäˑø¤ë */
  481.       }
  482. /* ±³¾°»­Ïñ¤ÎÔO¶¨ */
  483. .slick-slide {
  484.   overflow:hidden;
  485. }
  486. @-webkit-keyframes fadezoom {
  487.     0% {
  488.         transform: scale(1);
  489.     }
  490.     100% {
  491.         transform: scale(1.25);
  492.     }
  493. }
  494. @keyframes fadezoom {
  495.     0% {
  496.         transform: scale(1);
  497.     }
  498.     100% {
  499.         transform: scale(1.25);
  500.     }
  501. }
  502. .slick-animation {
  503. \t\t\tscale: 1.1 !important;
  504. \t\t\ttranslate: 5% 0 !important;
  505. /*    animation: fadezoom 20s linear 0s normal both; */
  506. }
  507.     </style>
  508. {% endblock %}
  509. {% block javascript %}
  510.     <script>
  511. \t\t\t\$(function() {
  512. \t\t\t\t// ¥á¥¤¥ó¥¹¥é¥¤¥À©`¤Î³õÆÚ»¯•r¤Î¥¤¥Ù¥ó¥È
  513. \t\t\t  \$('.main_visual').on('init', function () {
  514. \t\t\t    // ×î³õ¤Î¥¹¥é¥¤¥É¤Ë¥¢¥Ë¥á©`¥·¥ç¥ó¤òßmÓÃ
  515. \t\t\t    \$('.main_visual .slick-slide[data-slick-index=\"0\"] img').addClass('slick-animation');
  516. \t\t\t  });
  517. \t\t\t  // ¥á¥¤¥ó¥¹¥é¥¤¥À©`¤ÎÔO¶¨
  518. \t\t\t  \$('.main_visual').slick({
  519. \t\t\t    autoplay: true,          // ×Ô„ÓÔÙÉú
  520. \t\t\t    infinite: true,          // ŸoÏÞ¥ë©`¥×
  521. \t\t\t    slidesToShow: 1,         // 1¤Ä¤Î¥¹¥é¥¤¥É¤ò±íʾ
  522. \t\t\t    slidesToScroll: 1,       // ¥¹¥é¥¤¥É¤ò1¤Ä¤º¤Ä¥¹¥¯¥í©`¥ë
  523. \t\t\t    arrows: false,           // Ê¸Ó¡¤ò·Ç±íʾ
  524. \t\t\t    speed: 2000,             // ¥Õ¥§©`¥É¥¢¥Ë¥á©`¥·¥ç¥ó¤ÎËÙ¶È
  525. \t\t\t    autoplaySpeed: 5000,     // ¥¹¥é¥¤¥É¤¬ÇФêÌæ¤ï¤ëég¸ô
  526. \t\t\t    pauseOnFocus: false,     // ¥Õ¥©©`¥«¥¹•r¤Ë¥¹¥é¥¤¥É¤òÒ»•rÍ£Ö¹¤·¤Ê¤¤
  527. \t\t\t    pauseOnHover: false,     // ¥Û¥Ð©`•r¤Ë¥¹¥é¥¤¥É¤òÒ»•rÍ£Ö¹¤·¤Ê¤¤
  528. \t\t\t    asNavFor: '.text_slider' // .text_slider ¤ÈͬÆÚ
  529. \t\t\t  })
  530. \t\t\t  .on({
  531. \t\t\t    beforeChange: function(event, slick, currentSlide, nextSlide) {
  532. \t\t\t      // ¤¹¤Ù¤Æ¤Î¥¹¥é¥¤¥É¤Î¥¢¥Ë¥á©`¥·¥ç¥ó¤ò¥ê¥»¥Ã¥È
  533. \t\t\t      \$(\".main_visual .slick-slide img\").removeClass(\"slick-animation\");
  534. \t\t\t      // ´Î¤Î¥¹¥é¥¤¥É¤Ë¥¢¥Ë¥á©`¥·¥ç¥ó¤òßmÓÃ
  535. \t\t\t      \$(\".main_visual .slick-slide[data-slick-index='\" + nextSlide + \"'] img\").addClass(\"slick-animation\");
  536. \t\t\t      // ´Î¤Î¥¹¥é¥¤¥É¤Ë¥¢¥Ë¥á©`¥·¥ç¥ó¤òßmÓÃ
  537. \t\t\t      \$(\".main_visual .slick-cloned img\").addClass(\"slick-animation\");
  538. \t\t\t    },
  539. \t\t\t    afterChange: function(event, slick, currentSlide) {
  540. \t\t\t      // Ç°¤Î¥¹¥é¥¤¥É¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤òÓ‹Ëã
  541. \t\t\t      var prevSlide = (currentSlide === 0) ? slick.slideCount - 1 : currentSlide - 1;
  542. \t\t\t      // Ç°¤Î¥¹¥é¥¤¥É¤Î¥¢¥Ë¥á©`¥·¥ç¥ó¤ò¥ê¥»¥Ã¥È
  543. \t\t\t      \$(\".main_visual .slick-slide[data-slick-index='\" + prevSlide + \"'] img\").removeClass(\"slick-animation\");
  544. \t\t\t      \$(\".main_visual .slick-cloned img\").removeClass(\"slick-animation\");
  545. \t\t\t    }
  546. \t\t\t  });
  547.         // ¥Æ¥­¥¹¥È¥¹¥é¥¤¥À©`¤Î³õÆÚ»¯•r¤Î¥¤¥Ù¥ó¥È
  548.         \$('.text_slider').on('init', function () {
  549.           // ×î³õ¤Î¥¹¥é¥¤¥É¤Ë 'fade-in' ¥¯¥é¥¹¤òßmÓÃ
  550.           \$('.slick-slide[data-slick-index=\"0\"]').addClass('fade-in');
  551.         });
  552.         // ¥Æ¥­¥¹¥È¥¹¥é¥¤¥À©`¤ÎÔO¶¨£¨¥á¥¤¥ó¥¹¥é¥¤¥À©`¤ÈͬÆÚ£©
  553.         \$('.text_slider').slick({
  554.           autoplay: true,          // ×Ô„ÓÔÙÉú
  555.           infinite: true,          // ŸoÏÞ¥ë©`¥×
  556.           slidesToShow: 1,         // 1¤Ä¤Î¥¹¥é¥¤¥É¤ò±íʾ
  557.           slidesToScroll: 1,       // ¥¹¥é¥¤¥É¤ò1¤Ä¤º¤Ä¥¹¥¯¥í©`¥ë
  558.           fade: true,
  559.           speed: 1000,
  560.           autoplaySpeed: 5000,
  561.           arrows: false,
  562.           pauseOnFocus: false,
  563.           pauseOnHover: false,
  564.           pauseOnDotsHover: false,
  565.           asNavFor: '.main_visual' // .main_visual ¤ÈͬÆÚ
  566.         })
  567.         .on({
  568.           beforeChange: function(event, slick, currentSlide, nextSlide) {
  569.             // ´Î¤Î¥¹¥é¥¤¥É¤Ë 'fade-in' ¥¯¥é¥¹¤ò×·¼Ó
  570.             \$(\".text_slider .slick-slide[data-slick-index='\" + nextSlide + \"']\").addClass(\"fade-in\");
  571.           },
  572.           afterChange: function(event, slick, currentSlide) {
  573.             // ¬FÔڤΥ¹¥é¥¤¥ÉÒÔÍâ¤Î¤¹¤Ù¤Æ¤Î¥¹¥é¥¤¥É¤«¤é 'fade-in' ¥¯¥é¥¹¤òÏ÷³ý
  574.             \$(\".text_slider .slick-slide\").not(\"[data-slick-index='\" + currentSlide + \"']\").not(\".slick-cloned\").removeClass(\"fade-in\");
  575.             // ¬FÔڤΥ¹¥é¥¤¥É¤Ë¥¯¥é¥¹¤ò´_Œg¤Ë×·¼Ó
  576.            \$(\".text_slider .slick-slide[data-slick-index='\" + currentSlide + \"']\").addClass(\"fade-in\");
  577.           }
  578.         });
  579.       });
  580.       \$(function() {
  581.           \$('.topic_slider').slick({
  582.               vertical: true,
  583.               autoplay: true,
  584.               autoplaySpeed: 3800,
  585.               speed: 800,
  586.               arrows: true,
  587.               pauseOnFocus: false,
  588.               pauseOnHover: false,
  589.               pauseOnDotsHover: false
  590.           });
  591.           \$('.ec-sliderRole__news').each(function() {
  592.               var listLength = \$(this).find('.ec-sliderRole__newsItem').length;
  593.               if (listLength > 5) {
  594.                   \$(this).find('.ec-sliderRole__newsItem:gt(4)').each(function() {
  595.                       \$(this).hide();
  596.                   });
  597.                   \$(this).append('<a id=\"news_readmore\" class=\"ec-inlineBtn--top\">{{ 'more'|trans }}</a>');
  598.                   var dispNum = 5;
  599.                   \$(this).find('#news_readmore').click(function() {
  600.                       dispNum += 5;
  601.                       \$(this).parent().find('.ec-sliderRole__newsItem:lt(' + dispNum + ')').show();
  602.                       if (dispNum >= listLength) {
  603.                           \$(this).hide();
  604.                       }
  605.                   })
  606.               }
  607.           });
  608.       });
  609.     </script>
  610. {% endblock javascript %}
  611. {% block main %}
  612.     <div class=\"ec-sliderRole\">
  613.       <div class=\"ec-sliderRole__wrap\">
  614.         <div class=\"mv__wrap\">
  615.           <div class=\"main_visual\">
  616.               <div class=\"item slick-slide\">
  617.                 <img src=\"{{ asset('assets/img/top/01.jpg') }}\" class=\"outset\">
  618.               </div>
  619.               <div class=\"item slick-slide\">
  620.                 <img src=\"{{ asset('assets/img/top/02.jpg') }}\" class=\"outset\">
  621.               </div>
  622.               <div class=\"item slick-slide\">
  623.                 <img src=\"{{ asset('assets/img/top/03.jpg') }}\" class=\"outset\">
  624.               </div>
  625.               <div class=\"item slick-slide\">
  626.                 <img src=\"{{ asset('assets/img/top/04.jpg') }}\" class=\"outset\">
  627.               </div>
  628.           </div>
  629.           <div class=\"text_slider\">
  630.             <div class=\"ec-sliderRole__title\">
  631.               <div class=\"main\">Lillie and</div>
  632.               <div class=\"sub\">Garcello</div>
  633.             </div>
  634.             <div class=\"ec-sliderRole__title\">
  635.               <div class=\"main\">ORIGINAL</div>
  636.               <div class=\"sub\">GOODS</div>
  637.             </div>
  638.             <div class=\"ec-sliderRole__title\">
  639.               <div class=\"main\">SELECT</div>
  640.               <div class=\"sub\">SHOP</div>
  641.             </div>
  642.             <div class=\"ec-sliderRole__title\">
  643.               <div class=\"main\">RECOMMENDED</div>
  644.               <div class=\"sub\">ITEM</div>
  645.             </div>
  646.           </div>
  647.         </div>
  648.         <div class=\"ec-sliderRole__news topic_slider\">
  649.             {% for News in NewsList %}
  650.                 <a href={{ url('news_detail',  {'id': News.id}) }} class=\"ec-sliderRole__newsItem\" target=\"_blank\">
  651.                     <div class=\"ec-sliderRole__newsHeading\">
  652.                         <div class=\"ec-sliderRole__newsDate\">
  653.                             {{ News.publish_date|date_day }}
  654.                         </div>
  655.                         <div class=\"ec-sliderRole__newsColumn\">
  656.                             <div class=\"ec-sliderRole__newsTitle\">
  657.                                 {{ News.title }}
  658.                             </div>
  659.                             {# {% if News.description or News.url %}
  660.                                 <div class=\"ec-sliderRole__newsClose\">
  661.                                     <a class=\"ec-sliderRole__newsCloseBtn\">
  662.                                         <i class=\"fas fa-angle-down\"></i>
  663.                                     </a>
  664.                                 </div>
  665.                             {% endif %} #}
  666.                         </div>
  667.                     </div>
  668.                     {# <div class=\"ec-sliderRole__newsDescription\">
  669.                         {{ News.description|raw|nl2br }}
  670.                         {% if News.url %}
  671.                             <br>
  672.                             <a href=\"{{ News.url }}\" {% if News.link_method == '1' %}target=\"_blank\"{% endif %}>{{ 'Ô”¤·¤¯¤Ï¤³¤Á¤é'|trans }}</a>
  673.                         {% endif %}
  674.                     </div> #}
  675.                 </a>
  676.             {% endfor %}
  677.         </div>
  678.       </div>
  679.     </div>
  680. {% endblock %}
  681. ""index.twig""/home/egonet/c-bcl.com/public_html/shop/app/template/lag/index.twig");
  682.     }
  683.     
  684.     public function checkSecurity()
  685.     {
  686.         static $tags = array("set" => 13"for" => 296);
  687.         static $filters = array("escape" => 237"trans" => 237"date_day" => 300);
  688.         static $functions = array("repository" => 15"asset" => 260"url" => 297);
  689.         try {
  690.             $this->sandbox->checkSecurity(
  691.                 ['set''for'],
  692.                 ['escape''trans''date_day'],
  693.                 ['repository''asset''url']
  694.             );
  695.         } catch (SecurityError $e) {
  696.             $e->setSourceContext($this->source);
  697.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  698.                 $e->setTemplateLine($tags[$e->getTagName()]);
  699.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  700.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  701.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  702.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  703.             }
  704.             throw $e;
  705.         }
  706.     }
  707. }