var/cache/dev/twig/f7/f7a2278e82b3ee413cc5f6c6f324a530.php line 42

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. /* Special/detail.twig */
  14. class __TwigTemplate_dc8970ffda45a1bf8e0897494474b444 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 1
  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""Special/detail.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""Special/detail.twig"));
  42.         // line 2
  43.         $context["breadcrumbs"] = [=> ["name" => "SPECIAL""route" => "special"], => ["name" => twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'2$this->source); })()), "title", [], "any"falsefalsetrue2)]];
  44.         // line 4
  45.         $context["share_url"] = twig_urlencode_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'4$this->source); })()), "request", [], "any"falsefalsetrue4), "getUri", [], "any"falsefalsetrue4), 4$this->source));
  46.         // line 5
  47.         $context["share_title"] = twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'5$this->source); })()), "title", [], "any"falsefalsetrue5), 5$this->source));
  48.         // line 6
  49.         if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'6$this->source); })()), "special_kv_pc", [], "any"falsefalsetrue6), "url", [], "any"falsefalsetrue6))) {
  50.             // line 7
  51.             $context["share_media"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'7$this->source); })()), "special_kv_pc", [], "any"falsefalsetrue7), "url", [], "any"falsefalsetrue7), 7$this->source), "save_image");
  52.         } else {
  53.             // line 9
  54.             $context["share_media"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top-page/FV.webp");
  55.         }
  56.         // line 1
  57.         $this->parent $this->loadTemplate("default_frame.twig""Special/detail.twig"1);
  58.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  59.         
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.     }
  64.     // line 12
  65.     public function block_stylesheet($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  72.         // line 13
  73.         echo "\t<link rel=\"stylesheet\" href=\"/html/template/default/assets/css/content.css\">
  74.     <link rel=\"stylesheet\" href=\"/html/template/default/assets/css/frame03.css\">
  75. ";
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.         
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80.     }
  81.     // line 17
  82.     public function block_javascript($context, array $blocks = [])
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  89.         // line 18
  90.         echo "\t<script>
  91. \t\t\$(function () {
  92.             \$('#js-button-copy').click(function () {
  93.                 const url = \$(this).data('url');
  94.                 navigator.clipboard.writeText(url);
  95.             });
  96.         });
  97. \t</script>
  98.     <script>
  99. \t\t\$(function(){
  100. \t\t\t\$('.slide-img:not(\".slide-img-slow\")').slick({
  101.                 autoplay: true,
  102.                 autoplaySpeed: 3000,
  103.                 arrows: false,
  104.                 dots: false,
  105.                 infinite: true,
  106.                 speed: 800,
  107.                 slidesToShow: 1,
  108.                 variableWidth: true,
  109.                 centerMode: true,
  110.                 responsive: [
  111.                     {
  112.                         breakpoint: 750,
  113.                         settings: {
  114.                         variableWidth: true,
  115.                         centerMode: true,
  116.                         }
  117.                     }
  118.                 ]
  119. \t\t    });
  120.             \$('.slide-img-slow').not('.slick-initialized').slick({
  121.                 autoplay: true,
  122.                 autoplaySpeed: 0,
  123.                 arrows: false,
  124.                 dots: false,
  125.                 speed: 18000,
  126.                 infinite: true,
  127.                 cssEase: 'linear',
  128.                 slidesToShow: 1,
  129.                 variableWidth: true,
  130.                 centerMode: true,
  131.                 draggable: false,
  132.                 touchMove: false,
  133.                 pauseOnFocus: false,
  134.                 pauseOnHover: false,
  135.             });
  136.             \$('.slide-img-slow').css('opacity',1);
  137.             \$('.slide-img-slow').find('img').each(function(){
  138.                 var ctrl = \$(this);
  139.                 console.log(ctrl);
  140.                 ctrl.attr('src',ctrl.data('src'));
  141.             });
  142.             });
  143. \t</script>
  144. ";
  145.         
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  147.         
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  149.     }
  150.     // line 74
  151.     public function block_main($context, array $blocks = [])
  152.     {
  153.         $macros $this->macros;
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  158.         // line 75
  159.         echo "\t<section>
  160. \t\t<div class=\"w-full\">
  161.             <div class=\"flex flex-col items-center w-full mb-6\">
  162.                 <img src=\"";
  163.         // line 78
  164.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'78$this->source); })()), "special_kv_pc", [], "any"falsefalsetrue78), "url", [], "any"falsefalsetrue78), 78$this->source), "html"nulltrue);
  165.         echo "\" class=\"object-cover h-[640px] w-full overflow-hidden md:h-[450px]\" alt=\"サムネイル\">
  166. \t\t\t\t<div class=\"max-w-[880px] w-full lg:w-[86.6vw]  md:mx-6 bg-black bg-opacity-80 text-white px-12 py-14 md:py-8 md:px-6 flex-col flex mt-[-24px] relative\">
  167.                     <time datetime=\"";
  168.         // line 80
  169.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'80$this->source); })()), "post_date", [], "any"falsefalsetrue80), 80$this->source), "Y-m-d"), "html"nulltrue);
  170.         echo "\" class=\"text-end text-[#B0B0B0] text-sm md:text-xs absolute top-[4px] right-[8px] \"><span>";
  171.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'80$this->source); })()), "post_date", [], "any"falsefalsetrue80), 80$this->source), "Y.m.d"), "html"nulltrue);
  172.         echo "</span></time>
  173.                     <div class=\"flex items-center border border-white w-fit mb-3 text-sm sm:text-xs px-3 py-[2px] text-white\">
  174.                         ";
  175.         // line 82
  176.         $context['_parent'] = $context;
  177.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'82$this->source); })()), "categories", [], "any"falsefalsetrue82));
  178.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  179.             // line 83
  180.             echo "                            <a href=\"";
  181.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("special_posts", ["category" => twig_get_attribute($this->env$this->source$context["category"], "term_id", [], "any"falsefalsetrue83)]), "html"nulltrue);
  182.             echo "\"><span class=\"text-white\">";
  183.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsetrue83), 83$this->source), "html"nulltrue);
  184.             echo "</span></a>
  185.                         ";
  186.         }
  187.         $_parent $context['_parent'];
  188.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  189.         $context array_intersect_key($context$_parent) + $_parent;
  190.         // line 85
  191.         echo "                    </div>
  192.                     <h1 class=\"text-3xl md:text-xl leading-loose tracking-[5px]\">";
  193.         // line 86
  194.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'86$this->source); })()), "title", [], "any"falsefalsetrue86), 86$this->source), "html"nulltrue);
  195.         echo "</h1>
  196.                 </div>
  197.             </div>
  198. \t\t\t<div class=\"col-span-2 md:col-span-1 md:row-start-2 md:row-end-3\">
  199. \t\t\t\t";
  200.         // line 90
  201.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/breadcrumb.twig");
  202.         echo "
  203. \t\t\t</div>
  204. \t\t</div>
  205. \t</section>
  206. \t<section id=\"page_special_detail\" class=\"bg-essay px-6 pb-[7.5rem] md:pb-20 text-black\">
  207. \t\t<div class=\"section-cont text-[10px] tracking-wide leading-4\">
  208. \t\t\t";
  209.         // line 96
  210.         echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'96$this->source); })()), "content", [], "any"falsefalsetrue96), 96$this->source));
  211.         echo "
  212. \t\t</div>
  213. \t</section>
  214. \t";
  215.         // line 115
  216.         echo "\t<section class=\"px-6 py-[7.5rem] md:py-20\">
  217. \t\t<div class=\"\">
  218. \t\t\t<h2 class=\"font-medium leading-normal text-center text-base\">記事をシェアする</h2>
  219. \t\t\t<div class=\"flex justify-center items-center mt-6 gap-6\">
  220. \t\t\t\t<a href=\"https://social-plugins.line.me/lineit/share?url=";
  221.         // line 119
  222.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["share_url"]) || array_key_exists("share_url"$context) ? $context["share_url"] : (function () { throw new RuntimeError('Variable "share_url" does not exist.'119$this->source); })()), 119$this->source), "html"nulltrue);
  223.         echo "%0a";
  224.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["share_title"]) || array_key_exists("share_title"$context) ? $context["share_title"] : (function () { throw new RuntimeError('Variable "share_title" does not exist.'119$this->source); })()), 119$this->source), "html"nulltrue);
  225.         echo "\" target=\"_blank\" class=\"hover\">
  226. \t\t\t\t\t<img src=\"";
  227.         // line 121
  228.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/LINE_LOGO.svg"), "html"nulltrue);
  229.         echo "\" alt=\"LINEのロゴ\" class=\"w-[2.1rem]\">
  230. \t\t\t\t</a>
  231. \t\t\t\t<a href=\"https://twitter.com/intent/tweet?url=";
  232.         // line 123
  233.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["share_url"]) || array_key_exists("share_url"$context) ? $context["share_url"] : (function () { throw new RuntimeError('Variable "share_url" does not exist.'123$this->source); })()), 123$this->source), "html"nulltrue);
  234.         echo "&text=";
  235.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["share_title"]) || array_key_exists("share_title"$context) ? $context["share_title"] : (function () { throw new RuntimeError('Variable "share_title" does not exist.'123$this->source); })()), 123$this->source), "html"nulltrue);
  236.         echo "\" rel=\"nofollow noopener\" target=\"_blank\" class=\"hover\">
  237. \t\t\t\t\t<img src=\"";
  238.         // line 124
  239.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/X_LOGO.svg"), "html"nulltrue);
  240.         echo "\" alt=\"Xのロゴ\" class=\"w-7\">
  241. \t\t\t\t</a>
  242. \t\t\t\t<a href=\"https://www.facebook.com/sharer/sharer.php?u=";
  243.         // line 126
  244.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["share_url"]) || array_key_exists("share_url"$context) ? $context["share_url"] : (function () { throw new RuntimeError('Variable "share_url" does not exist.'126$this->source); })()), 126$this->source), "html"nulltrue);
  245.         echo "\" rel=\"nofollow noopener\" target=\"_blank\" class=\"hover\">
  246. \t\t\t\t\t<img src=\"";
  247.         // line 127
  248.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/FB_LOGO.svg"), "html"nulltrue);
  249.         echo "\" alt=\"FaceBookのロゴ\" class=\"w-[2.1rem]\">
  250. \t\t\t\t</a>
  251. \t\t\t\t<a href=\"http://pinterest.com/pin/create/button/?url=";
  252.         // line 129
  253.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["share_url"]) || array_key_exists("share_url"$context) ? $context["share_url"] : (function () { throw new RuntimeError('Variable "share_url" does not exist.'129$this->source); })()), 129$this->source), "html"nulltrue);
  254.         echo "&media=";
  255.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["share_media"]) || array_key_exists("share_media"$context) ? $context["share_media"] : (function () { throw new RuntimeError('Variable "share_media" does not exist.'129$this->source); })()), 129$this->source), "html"nulltrue);
  256.         echo "&description=";
  257.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["share_title"]) || array_key_exists("share_title"$context) ? $context["share_title"] : (function () { throw new RuntimeError('Variable "share_title" does not exist.'129$this->source); })()), 129$this->source), "html"nulltrue);
  258.         echo "\" rel=\"nofollow\" target=\"_blank\" class=\"hover\">
  259. \t\t\t\t\t<img src=\"";
  260.         // line 130
  261.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/Pinterest_LOGO.svg"), "html"nulltrue);
  262.         echo "\" alt=\"Pinterestのロゴ\" class=\"w-[2.1rem]\">
  263. \t\t\t\t</a>
  264. \t\t\t\t<button id=\"js-button-copy\" data-url=\"";
  265.         // line 132
  266.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'132$this->source); })()), "request", [], "any"falsefalsetrue132), "getUri", [], "any"falsefalsetrue132), 132$this->source), "html"nulltrue);
  267.         echo "\" class=\"relative hover\">
  268. \t\t\t\t\t<img src=\"";
  269.         // line 133
  270.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/share.svg"), "html"nulltrue);
  271.         echo "\" alt=\"コピー\" class=\"w-[2.1rem]\">
  272. \t\t\t\t</button>
  273. \t\t\t</div>
  274. \t\t\t<a href=\"";
  275.         // line 136
  276.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("special_posts");
  277.         echo "\" class=\"md:w-full w-80 border grid place-items-center h-11 mx-auto mt-20 text-sm rounded-[0.18rem] hover\">SPECIAL一覧に戻る</a>
  278. \t\t</div>
  279. \t</section>
  280. ";
  281.         
  282.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  283.         
  284.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  285.     }
  286.     public function getTemplateName()
  287.     {
  288.         return "Special/detail.twig";
  289.     }
  290.     public function isTraitable()
  291.     {
  292.         return false;
  293.     }
  294.     public function getDebugInfo()
  295.     {
  296.         return array (  301 => 136,  295 => 133,  291 => 132,  286 => 130,  278 => 129,  273 => 127,  269 => 126,  264 => 124,  258 => 123,  253 => 121,  246 => 119,  240 => 115,  234 => 96,  225 => 90,  218 => 86,  215 => 85,  204 => 83,  200 => 82,  193 => 80,  188 => 78,  183 => 75,  173 => 74,  109 => 18,  99 => 17,  87 => 13,  77 => 12,  66 => 1,  63 => 9,  60 => 7,  58 => 6,  56 => 5,  54 => 4,  52 => 2,  39 => 1,);
  297.     }
  298.     public function getSourceContext()
  299.     {
  300.         return new Source("{% extends 'default_frame.twig' %}
  301. {% set breadcrumbs = [{'name': 'SPECIAL', 'route': 'special'}, {'name': post.title }] %}
  302. {% set share_url =  app.request.getUri|url_encode()  %}
  303. {% set share_title = post.title|raw|nl2br %}
  304. {% if post.special_kv_pc.url is not empty %}
  305. \t{% set share_media = asset(post.special_kv_pc.url,'save_image') %}
  306. {% else %}
  307. \t{% set share_media = asset('assets/img/top-page/FV.webp') %}
  308. {% endif %}
  309. {% block stylesheet %}
  310. \t<link rel=\"stylesheet\" href=\"/html/template/default/assets/css/content.css\">
  311.     <link rel=\"stylesheet\" href=\"/html/template/default/assets/css/frame03.css\">
  312. {% endblock %}
  313. {% block javascript %}
  314. \t<script>
  315. \t\t\$(function () {
  316.             \$('#js-button-copy').click(function () {
  317.                 const url = \$(this).data('url');
  318.                 navigator.clipboard.writeText(url);
  319.             });
  320.         });
  321. \t</script>
  322.     <script>
  323. \t\t\$(function(){
  324. \t\t\t\$('.slide-img:not(\".slide-img-slow\")').slick({
  325.                 autoplay: true,
  326.                 autoplaySpeed: 3000,
  327.                 arrows: false,
  328.                 dots: false,
  329.                 infinite: true,
  330.                 speed: 800,
  331.                 slidesToShow: 1,
  332.                 variableWidth: true,
  333.                 centerMode: true,
  334.                 responsive: [
  335.                     {
  336.                         breakpoint: 750,
  337.                         settings: {
  338.                         variableWidth: true,
  339.                         centerMode: true,
  340.                         }
  341.                     }
  342.                 ]
  343. \t\t    });
  344.             \$('.slide-img-slow').not('.slick-initialized').slick({
  345.                 autoplay: true,
  346.                 autoplaySpeed: 0,
  347.                 arrows: false,
  348.                 dots: false,
  349.                 speed: 18000,
  350.                 infinite: true,
  351.                 cssEase: 'linear',
  352.                 slidesToShow: 1,
  353.                 variableWidth: true,
  354.                 centerMode: true,
  355.                 draggable: false,
  356.                 touchMove: false,
  357.                 pauseOnFocus: false,
  358.                 pauseOnHover: false,
  359.             });
  360.             \$('.slide-img-slow').css('opacity',1);
  361.             \$('.slide-img-slow').find('img').each(function(){
  362.                 var ctrl = \$(this);
  363.                 console.log(ctrl);
  364.                 ctrl.attr('src',ctrl.data('src'));
  365.             });
  366.             });
  367. \t</script>
  368. {% endblock javascript %}
  369. {% block main %}
  370. \t<section>
  371. \t\t<div class=\"w-full\">
  372.             <div class=\"flex flex-col items-center w-full mb-6\">
  373.                 <img src=\"{{ post.special_kv_pc.url }}\" class=\"object-cover h-[640px] w-full overflow-hidden md:h-[450px]\" alt=\"サムネイル\">
  374. \t\t\t\t<div class=\"max-w-[880px] w-full lg:w-[86.6vw]  md:mx-6 bg-black bg-opacity-80 text-white px-12 py-14 md:py-8 md:px-6 flex-col flex mt-[-24px] relative\">
  375.                     <time datetime=\"{{ post.post_date|date('Y-m-d') }}\" class=\"text-end text-[#B0B0B0] text-sm md:text-xs absolute top-[4px] right-[8px] \"><span>{{ post.post_date|date('Y.m.d') }}</span></time>
  376.                     <div class=\"flex items-center border border-white w-fit mb-3 text-sm sm:text-xs px-3 py-[2px] text-white\">
  377.                         {% for category in post.categories %}
  378.                             <a href=\"{{ url('special_posts', { category: category.term_id }) }}\"><span class=\"text-white\">{{ category.name }}</span></a>
  379.                         {% endfor %}
  380.                     </div>
  381.                     <h1 class=\"text-3xl md:text-xl leading-loose tracking-[5px]\">{{ post.title }}</h1>
  382.                 </div>
  383.             </div>
  384. \t\t\t<div class=\"col-span-2 md:col-span-1 md:row-start-2 md:row-end-3\">
  385. \t\t\t\t{{ include('Block/breadcrumb.twig') }}
  386. \t\t\t</div>
  387. \t\t</div>
  388. \t</section>
  389. \t<section id=\"page_special_detail\" class=\"bg-essay px-6 pb-[7.5rem] md:pb-20 text-black\">
  390. \t\t<div class=\"section-cont text-[10px] tracking-wide leading-4\">
  391. \t\t\t{{ post.content|raw|nl2br }}
  392. \t\t</div>
  393. \t</section>
  394. \t{# <section class=\"py-20 bg-sub-beige-pale text-center text-black text-sm leading-normal\">
  395. \t\t<div class=\"w-[20rem] mx-auto\">
  396. \t\t\t<h2 class=\"text-lg font-medium\">関連商品</h2>
  397. \t\t\t<div class=\"grid mt-6 gap-6\">
  398. \t\t\t\t<hgroup class=\"font-light font-notoserif\">
  399. \t\t\t\t\t<h3 class=\" text-[2rem] tracking-[0.2em]\">warm</h3>
  400. \t\t\t\t\t<p class=\"tracking-wider\">ウォーム</p>
  401. \t\t\t\t</hgroup>
  402. \t\t\t\t<a href=\"#\" class=\"grid place-items-center w-64 border border-black rounded-[0.18rem] tracking-wider mx-auto h-11 mt-4 hover\">詳しくはこちら</a>
  403. \t\t\t\t<div class=\"aspect-square row-start-1 row-end-2\">
  404. \t\t\t\t\t<img src=\"{{ asset('assets/img/top/img_item01_01.jpg') }}\" class=\"size-full object-cover\">
  405. \t\t\t\t</div>
  406. \t\t\t</div>
  407. \t\t</div>
  408. \t</section> #}
  409. \t<section class=\"px-6 py-[7.5rem] md:py-20\">
  410. \t\t<div class=\"\">
  411. \t\t\t<h2 class=\"font-medium leading-normal text-center text-base\">記事をシェアする</h2>
  412. \t\t\t<div class=\"flex justify-center items-center mt-6 gap-6\">
  413. \t\t\t\t<a href=\"https://social-plugins.line.me/lineit/share?url={{share_url}}%0a{{share_title}}\" target=\"_blank\" class=\"hover\">
  414. \t\t\t\t\t<img src=\"{{asset('assets/icon/LINE_LOGO.svg')}}\" alt=\"LINEのロゴ\" class=\"w-[2.1rem]\">
  415. \t\t\t\t</a>
  416. \t\t\t\t<a href=\"https://twitter.com/intent/tweet?url={{share_url}}&text={{share_title}}\" rel=\"nofollow noopener\" target=\"_blank\" class=\"hover\">
  417. \t\t\t\t\t<img src=\"{{asset('assets/icon/X_LOGO.svg')}}\" alt=\"Xのロゴ\" class=\"w-7\">
  418. \t\t\t\t</a>
  419. \t\t\t\t<a href=\"https://www.facebook.com/sharer/sharer.php?u={{share_url}}\" rel=\"nofollow noopener\" target=\"_blank\" class=\"hover\">
  420. \t\t\t\t\t<img src=\"{{asset('assets/icon/FB_LOGO.svg')}}\" alt=\"FaceBookのロゴ\" class=\"w-[2.1rem]\">
  421. \t\t\t\t</a>
  422. \t\t\t\t<a href=\"http://pinterest.com/pin/create/button/?url={{share_url}}&media={{share_media}}&description={{share_title}}\" rel=\"nofollow\" target=\"_blank\" class=\"hover\">
  423. \t\t\t\t\t<img src=\"{{asset('assets/icon/Pinterest_LOGO.svg')}}\" alt=\"Pinterestのロゴ\" class=\"w-[2.1rem]\">
  424. \t\t\t\t</a>
  425. \t\t\t\t<button id=\"js-button-copy\" data-url=\"{{app.request.getUri}}\" class=\"relative hover\">
  426. \t\t\t\t\t<img src=\"{{asset('assets/icon/share.svg')}}\" alt=\"コピー\" class=\"w-[2.1rem]\">
  427. \t\t\t\t</button>
  428. \t\t\t</div>
  429. \t\t\t<a href=\"{{ url('special_posts') }}\" class=\"md:w-full w-80 border grid place-items-center h-11 mx-auto mt-20 text-sm rounded-[0.18rem] hover\">SPECIAL一覧に戻る</a>
  430. \t\t</div>
  431. \t</section>
  432. {% endblock %}
  433. ""Special/detail.twig""/home/xs545372/itsukushi-store.com/public_html/stg.itsukushi-store.com/app/template/default/Special/detail.twig");
  434.     }
  435.     
  436.     public function checkSecurity()
  437.     {
  438.         static $tags = array("set" => 2"if" => 6"for" => 82);
  439.         static $filters = array("url_encode" => 4"nl2br" => 5"raw" => 5"escape" => 78"date" => 80);
  440.         static $functions = array("asset" => 7"url" => 83"include" => 90);
  441.         try {
  442.             $this->sandbox->checkSecurity(
  443.                 ['set''if''for'],
  444.                 ['url_encode''nl2br''raw''escape''date'],
  445.                 ['asset''url''include']
  446.             );
  447.         } catch (SecurityError $e) {
  448.             $e->setSourceContext($this->source);
  449.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  450.                 $e->setTemplateLine($tags[$e->getTagName()]);
  451.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  452.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  453.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  454.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  455.             }
  456.             throw $e;
  457.         }
  458.     }
  459. }