var/cache/dev/twig/54/5422f8741f6cb41fbaf1ab655d3c79af90d3c10aaa45fa8493dbdf435ba555a2.php line 39

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_01e27adddb4910b9976b41067c6b1c8ce488bdfecd6b70e478b821f28db8ab1e 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.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.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""index.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""index.twig"));
  39.         // line 13
  40.         $context["body_class"] = "front_page";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""index.twig"11);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 17
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 18
  58.         echo "    <script>
  59.         \$(function() {
  60.             \$('.main_visual').slick({
  61.                 dots: true,
  62.                 arrows: false,
  63.                 autoplay: true,
  64.                 speed: 500,
  65.                 autoplaySpeed: 5000,
  66.             });
  67.         });
  68.     </script>
  69.     ";
  70.         // line 31
  71.         echo "    <script>
  72.     document.addEventListener('DOMContentLoaded', function() {
  73.         const popup = document.getElementById('popup-layer');
  74.         if (!popup) return;
  75.         const content = popup.querySelector('.popup_content');
  76.         const closeBtn = popup.querySelector('.popup_close');
  77.         const currentTime = Date.now();
  78.         const hideUntil = parseInt(localStorage.getItem('popupHideUntil'), 10);
  79.         function openPopup() {
  80.             popup.classList.add('active');
  81.             document.body.classList.add('popup_open');
  82.         }
  83.         function closePopup() {
  84.             popup.classList.remove('active');
  85.             document.body.classList.remove('popup_open');
  86.             const currentDate = new Date();
  87.             const nextMidnight = new Date(
  88.                 currentDate.getFullYear(),
  89.                 currentDate.getMonth(),
  90.                 currentDate.getDate() + 30,//30日後の0時に再表示
  91.                 0, 0, 0, 0
  92.             );
  93.             localStorage.setItem('popupHideUntil', nextMidnight.getTime());
  94.         }
  95.         if (!hideUntil || currentTime > hideUntil) {
  96.             setTimeout(openPopup, 500);
  97.         }
  98.         closeBtn.addEventListener('click', closePopup);
  99.         popup.addEventListener('click', function(e) {
  100.             if (!content.contains(e.target)) closePopup();
  101.         });
  102.         document.addEventListener('keydown', function(e) {
  103.             if (e.key === 'Escape' && popup.classList.contains('active')) {
  104.             closePopup();
  105.             }
  106.         });
  107.     });
  108.     </script>
  109. ";
  110.         
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  112.         
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  114.     }
  115.     // line 79
  116.     public function block_main($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  121.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  123.         // line 80
  124.         echo "    <div class=\"ec-sliderRole slide\">
  125.         <div class=\"main_visual slide_img_wrap\">
  126.             <div class=\"item slide_img\">
  127.                 <img src=\"";
  128.         // line 83
  129.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/slide21.jpg"), "html"nulltrue);
  130.         echo "\" alt=\"スタッフトライアルセット\" width=\"843\" height=\"602\" loading=\"lazy\">
  131.             </div>
  132.             <div class=\"item slide_img\">
  133.                 <a href=\"products/list?category_id=127\">
  134.                     <img src=\"";
  135.         // line 87
  136.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/slide20.jpg"), "html"nulltrue);
  137.         echo "\" alt=\"ナノバブルキャンペーン\" width=\"914\" height=\"861\" loading=\"lazy\">
  138.                 </a>
  139.             </div>
  140.             <div class=\"item slide_img\">
  141.                 <a href=\"products/list?category_id=128\">
  142.                     <img src=\"";
  143.         // line 92
  144.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/slide19.jpg"), "html"nulltrue);
  145.         echo "\" alt=\"nyu 販促キャンペーン\" width=\"670\" height=\"723\" loading=\"lazy\">
  146.                 </a>
  147.             </div>
  148.             <div class=\"item slide_img\">
  149.                 <a href=\"products/list?category_id=123\">
  150.                     <img src=\"";
  151.         // line 97
  152.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/slide18.jpg"), "html"nulltrue);
  153.         echo "\" alt=\"R-αリポ酸・スルフォラファン 導入記念企画\" width=\"549\" height=\"551\" loading=\"lazy\">
  154.                 </a>
  155.             </div>
  156.             <div class=\"item slide_img\">
  157.                 <a href=\"products/list?category_id=112\">
  158.                     <img src=\"";
  159.         // line 102
  160.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/slide15.jpg"), "html"nulltrue);
  161.         echo "\" alt=\"水素ガス生成器リタエアー\" width=\"1191\" height=\"680\" loading=\"lazy\">
  162.                 </a>
  163.             </div>
  164.         </div>
  165.     </div>
  166.     <div class=\"youtube\">
  167.         <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/xP9fOOX0gVE?si=cuZxOmby7a3uSniC\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>
  168.     </div>
  169.     <a href=\"products/detail/505\" class=\"block mb02 mr_auto ml_auto\" style=\"width:max-content;\">
  170.         <img src=\"https://oneconcept.jp/html/upload/save_image/0207152236_6986da2c8e248.png\" alt=\"【数量限定】ミニキュア エクセレント\" class=\"block\" width=\"250\" height=\"250\">
  171.     </a>
  172.     <a href=\"https://oneconcept.jp/user_data/haircolor-simulation\" class=\"block text-center mb01 mr_auto ml_auto\" style=\"max-width:720px;\">
  173.         <img src=\"";
  174.         // line 116
  175.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/banner06_2.png"), "html"nulltrue);
  176.         echo "\" alt=\"こんなにコストカットできるの!?気になる原価シミュレーションを試してみよう\" width=\"1350\" height=\"675\">
  177.     </a>
  178.     ";
  179.         // line 120
  180.         echo "    <div id=\"popup-layer\" class=\"popup_layer\">
  181.         <div class=\"popup_content\">
  182.             <button type=\"button\" class=\"popup_close\">×</button>
  183.             <a href=\"products/list?category_id=114\" style=\"display:block; max-width:600px; margin:atuo;\">
  184.                 <img src=\"";
  185.         // line 124
  186.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/popup01.jpg"), "html"nulltrue);
  187.         echo "\" alt=\"UVインナーケア BeHAKU plus11+1 早めに始める!飲む日焼け止め\" width=\"956\" height=\"1200\" class=\"block mr_auto ml_auto\">
  188.             </a>
  189.         </div>
  190.     </div>
  191. ";
  192.         
  193.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  194.         
  195.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  196.     }
  197.     public function getTemplateName()
  198.     {
  199.         return "index.twig";
  200.     }
  201.     public function isTraitable()
  202.     {
  203.         return false;
  204.     }
  205.     public function getDebugInfo()
  206.     {
  207.         return array (  217 => 124,  211 => 120,  205 => 116,  188 => 102,  180 => 97,  172 => 92,  164 => 87,  157 => 83,  152 => 80,  142 => 79,  86 => 31,  72 => 18,  62 => 17,  51 => 11,  49 => 13,  36 => 11,);
  208.     }
  209.     public function getSourceContext()
  210.     {
  211.         return new Source("{#
  212. This file is part of EC-CUBE
  213. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  214. http://www.ec-cube.co.jp/
  215. For the full copyright and license information, please view the LICENSE
  216. file that was distributed with this source code.
  217. #}
  218. {% extends 'default_frame.twig' %}
  219. {% set body_class = 'front_page' %}
  220. {% block javascript %}
  221.     <script>
  222.         \$(function() {
  223.             \$('.main_visual').slick({
  224.                 dots: true,
  225.                 arrows: false,
  226.                 autoplay: true,
  227.                 speed: 500,
  228.                 autoplaySpeed: 5000,
  229.             });
  230.         });
  231.     </script>
  232.     {# ポップアップ モーダル #}
  233.     <script>
  234.     document.addEventListener('DOMContentLoaded', function() {
  235.         const popup = document.getElementById('popup-layer');
  236.         if (!popup) return;
  237.         const content = popup.querySelector('.popup_content');
  238.         const closeBtn = popup.querySelector('.popup_close');
  239.         const currentTime = Date.now();
  240.         const hideUntil = parseInt(localStorage.getItem('popupHideUntil'), 10);
  241.         function openPopup() {
  242.             popup.classList.add('active');
  243.             document.body.classList.add('popup_open');
  244.         }
  245.         function closePopup() {
  246.             popup.classList.remove('active');
  247.             document.body.classList.remove('popup_open');
  248.             const currentDate = new Date();
  249.             const nextMidnight = new Date(
  250.                 currentDate.getFullYear(),
  251.                 currentDate.getMonth(),
  252.                 currentDate.getDate() + 30,//30日後の0時に再表示
  253.                 0, 0, 0, 0
  254.             );
  255.             localStorage.setItem('popupHideUntil', nextMidnight.getTime());
  256.         }
  257.         if (!hideUntil || currentTime > hideUntil) {
  258.             setTimeout(openPopup, 500);
  259.         }
  260.         closeBtn.addEventListener('click', closePopup);
  261.         popup.addEventListener('click', function(e) {
  262.             if (!content.contains(e.target)) closePopup();
  263.         });
  264.         document.addEventListener('keydown', function(e) {
  265.             if (e.key === 'Escape' && popup.classList.contains('active')) {
  266.             closePopup();
  267.             }
  268.         });
  269.     });
  270.     </script>
  271. {% endblock javascript %}
  272. {% block main %}
  273.     <div class=\"ec-sliderRole slide\">
  274.         <div class=\"main_visual slide_img_wrap\">
  275.             <div class=\"item slide_img\">
  276.                 <img src=\"{{ asset('assets/img/top/slide21.jpg') }}\" alt=\"スタッフトライアルセット\" width=\"843\" height=\"602\" loading=\"lazy\">
  277.             </div>
  278.             <div class=\"item slide_img\">
  279.                 <a href=\"products/list?category_id=127\">
  280.                     <img src=\"{{ asset('assets/img/top/slide20.jpg') }}\" alt=\"ナノバブルキャンペーン\" width=\"914\" height=\"861\" loading=\"lazy\">
  281.                 </a>
  282.             </div>
  283.             <div class=\"item slide_img\">
  284.                 <a href=\"products/list?category_id=128\">
  285.                     <img src=\"{{ asset('assets/img/top/slide19.jpg') }}\" alt=\"nyu 販促キャンペーン\" width=\"670\" height=\"723\" loading=\"lazy\">
  286.                 </a>
  287.             </div>
  288.             <div class=\"item slide_img\">
  289.                 <a href=\"products/list?category_id=123\">
  290.                     <img src=\"{{ asset('assets/img/top/slide18.jpg') }}\" alt=\"R-αリポ酸・スルフォラファン 導入記念企画\" width=\"549\" height=\"551\" loading=\"lazy\">
  291.                 </a>
  292.             </div>
  293.             <div class=\"item slide_img\">
  294.                 <a href=\"products/list?category_id=112\">
  295.                     <img src=\"{{ asset('assets/img/top/slide15.jpg') }}\" alt=\"水素ガス生成器リタエアー\" width=\"1191\" height=\"680\" loading=\"lazy\">
  296.                 </a>
  297.             </div>
  298.         </div>
  299.     </div>
  300.     <div class=\"youtube\">
  301.         <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/xP9fOOX0gVE?si=cuZxOmby7a3uSniC\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>
  302.     </div>
  303.     <a href=\"products/detail/505\" class=\"block mb02 mr_auto ml_auto\" style=\"width:max-content;\">
  304.         <img src=\"https://oneconcept.jp/html/upload/save_image/0207152236_6986da2c8e248.png\" alt=\"【数量限定】ミニキュア エクセレント\" class=\"block\" width=\"250\" height=\"250\">
  305.     </a>
  306.     <a href=\"https://oneconcept.jp/user_data/haircolor-simulation\" class=\"block text-center mb01 mr_auto ml_auto\" style=\"max-width:720px;\">
  307.         <img src=\"{{ asset('assets/img/top/banner06_2.png') }}\" alt=\"こんなにコストカットできるの!?気になる原価シミュレーションを試してみよう\" width=\"1350\" height=\"675\">
  308.     </a>
  309.     {# ポップアップ モーダル #}
  310.     <div id=\"popup-layer\" class=\"popup_layer\">
  311.         <div class=\"popup_content\">
  312.             <button type=\"button\" class=\"popup_close\">×</button>
  313.             <a href=\"products/list?category_id=114\" style=\"display:block; max-width:600px; margin:atuo;\">
  314.                 <img src=\"{{ asset('assets/img/top/popup01.jpg') }}\" alt=\"UVインナーケア BeHAKU plus11+1 早めに始める!飲む日焼け止め\" width=\"956\" height=\"1200\" class=\"block mr_auto ml_auto\">
  315.             </a>
  316.         </div>
  317.     </div>
  318. {% endblock %}
  319. ""index.twig""/home/oneconcept/www/ec_b_test/app/template/default/index.twig");
  320.     }
  321. }