var/cache/dev/twig/4e/4e7f11399d4c91bc8485a6037a76c1df.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_2f0c3455158c94c9c65921217e20dc00 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 8
  43.         $context["categories"] = [=> "essay"=> "interview"=> "report"=> "guide"=> "philosophy"];
  44.         // line 1
  45.         $this->parent $this->loadTemplate("default_frame.twig""Special/detail.twig"1);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 3
  53.     public function block_stylesheet($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  60.         // line 4
  61.         echo "\t<link rel=\"stylesheet\" href=\"/html/template/default/assets/css/content.css\">
  62.     <link rel=\"stylesheet\" href=\"/html/template/default/assets/css/frame03.css\">
  63. ";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.     }
  69.     // line 17
  70.     public function block_javascript($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  77.         // line 18
  78.         echo "\t<script>
  79. \t\t\$(function(){
  80. \t\t\t\$('.slide-img:not(\".slide-img-slow\")').slick({
  81. \t\t\tautoplay: true,
  82. \t\t\tautoplaySpeed: 3000,
  83. \t\t\tarrows: false,
  84. \t\t\tdots: false,
  85. \t\t\tinfinite: true,
  86. \t\t\tspeed: 800,
  87. \t\t\tslidesToShow: 1,
  88. \t\t\tvariableWidth: true,
  89. \t\t\tcenterMode: true,
  90. \t\t\tresponsive: [
  91. \t\t\t{
  92. \t\t\t\tbreakpoint: 750,
  93. \t\t\t\tsettings: {
  94. \t\t\t\tvariableWidth: true,
  95. \t\t\t\tcenterMode: true,
  96. \t\t\t\t}
  97. \t\t\t}
  98. \t\t\t]
  99. \t\t});
  100. \t\t\$('.slide-img-slow > li:last-child > img').on('load',function(){
  101. \t\t\tsetTimeout(function(){
  102. \t\t\t\$('.slide-img-slow').not('.slick-initialized').slick({
  103. \t\t\t\tautoplay: true,
  104. \t\t\t\tautoplaySpeed: 0,
  105. \t\t\t\tarrows: false,
  106. \t\t\t\tdots: false,
  107. \t\t\t\tspeed: 18000,
  108. \t\t\t\tinfinite: true,
  109. \t\t\t\tcssEase: 'linear',
  110. \t\t\t\tslidesToShow: 1,
  111. \t\t\t\tvariableWidth: true,
  112. \t\t\t\tcenterMode: true,
  113. \t\t\t\tdraggable: false,
  114. \t\t\t\ttouchMove: false,
  115. \t\t\t\tpauseOnFocus: false,
  116. \t\t\t\tpauseOnHover: false,
  117. \t\t\t});
  118. \t\t\t\$('.slide-img-slow').css('opacity',1);
  119. \t\t\t},1000);
  120. \t\t});
  121. \t\t\$('.slide-img-slow > li > img').each(function(){
  122. \t\t\tvar ctrl = \$(this);
  123. \t\t\tctrl.attr('src',ctrl.data('src'));
  124. \t\t});
  125. \t\t});
  126. \t</script>
  127.     ";
  128.         // line 70
  129.         if (twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_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.'70$this->source); })()), "category", [], "any"falsefalsetrue70), 0, [], "array"falsefalsetrue70), "slug", [], "any"falsefalsetrue70), (isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'70$this->source); })()))) {
  130.             // line 71
  131.             echo "        <script>
  132.             \$(document).ready(function () {
  133.                 const postSlug = '";
  134.             // line 73
  135.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'73$this->source); })()), "category", [], "any"falsefalsetrue73), 0, [], "array"falsefalsetrue73), "slug", [], "any"falsefalsetrue73), 73$this->source), "html"nulltrue);
  136.             echo "';
  137. \t\t\t\tconsole.log(postSlug);
  138.                 \$('#page_special_detail').addClass('bg-' + postSlug);
  139.             });
  140.         </script>
  141.     ";
  142.         }
  143.         // line 79
  144.         echo "\t<script>
  145. \t\t\$(function () {
  146.             \$(\"#share-menu-button\").on('click', function () {
  147.                 \$(\"#share-menu\").fadeToggle();
  148.                 copyLinkText('リンクをコピー');
  149.             });
  150.         });
  151.         function copyUrl() {
  152.             const url = location.href;
  153.             navigator.clipboard.writeText(url);
  154.             copyLinkText('コピーしました');
  155.             setTimeout(function () {
  156.             copyLinkText('リンクをコピー');
  157.             }, 2000);
  158.         }
  159.         function openLineShare() {
  160.             const lineUrl = 'https://social-plugins.line.me/lineit/share?url=';
  161.             const url = location.href;
  162.             window.open(`\${lineUrl}\${url}`)
  163.         }
  164.         function openMail() {
  165.             const url = location.href;
  166.             const mailto = `mailto:?body=\${url}`;
  167.             window.open(mailto);
  168.         }
  169.         function copyLinkText(text) {
  170.             \$(\"#copy-link > span\").text(text);
  171.         }
  172. \t</script>
  173. ";
  174.         
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176.         
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178.     }
  179.     // line 114
  180.     public function block_main($context, array $blocks = [])
  181.     {
  182.         $macros $this->macros;
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  185.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  186.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  187.         // line 115
  188.         echo "\t<div
  189. \t\tclass=\"second-wrap white-wrap w-full flex flex-col items-center justify-center font-extralight mx-auto animate-slideIn\">
  190. \t\t<!-- KV -->
  191. \t\t<div id=\"section-kv\" class=\"w-full z-10\">
  192. \t\t\t<div class=\"flex flex-col items-center w-full\">
  193. \t\t\t\t<img src=\"";
  194.         // line 120
  195.         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.'120$this->source); })()), "special_kv_pc", [], "any"falsefalsetrue120), "url", [], "any"falsefalsetrue120), 120$this->source), "html"nulltrue);
  196.         echo "\" alt=\"";
  197.         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.'120$this->source); })()), "special_kv_pc", [], "any"falsefalsetrue120), "alt", [], "any"falsefalsetrue120), 120$this->source), "html"nulltrue);
  198.         echo "\" class=\"sm:hidden object-cover h-[450px] w-full overflow-hidden\">
  199. \t\t\t\t<img src=\"";
  200.         // line 121
  201.         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.'121$this->source); })()), "special_kv_sp", [], "any"falsefalsetrue121), "url", [], "any"falsefalsetrue121), 121$this->source), "html"nulltrue);
  202.         echo "\" alt=\"";
  203.         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.'121$this->source); })()), "special_kv_sp", [], "any"falsefalsetrue121), "alt", [], "any"falsefalsetrue121), 121$this->source), "html"nulltrue);
  204.         echo "\" class=\"hidden sm:block w-full object-cover h-[640px]\">
  205. \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\">
  206. \t\t\t\t\t<p class=\"text-end text-[#B0B0B0] text-sm md:text-xs absolute top-[4px] right-[8px]\">";
  207.         // line 123
  208.         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.'123$this->source); })()), "post_date", [], "any"falsefalsetrue123), 123$this->source), "Y/m/d"), "html"nulltrue);
  209.         echo "</p>
  210. \t\t\t\t\t<div class=\"flex items-center border border-white w-fit mb-3 text-sm sm:text-xs px-3 py-[2px]\">
  211. \t\t\t\t\t\t<p class=\"";
  212.         // line 125
  213.         if ( !twig_test_empty(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.'125$this->source); })()), "sub_category", [], "any"falsefalsetrue125))) {
  214.             echo " after:content-['|'] ";
  215.         }
  216.         echo "\">";
  217.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'125$this->source); })()), "category", [], "any"falsefalsetrue125), 0, [], "array"falsefalsetrue125), "name", [], "any"falsefalsetrue125), 125$this->source), "html"nulltrue);
  218.         echo "
  219. \t\t\t\t\t\t</p>
  220. \t\t\t\t\t\t";
  221.         // line 127
  222.         if ( !twig_test_empty(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.'127$this->source); })()), "sub_category", [], "any"falsefalsetrue127))) {
  223.             // line 128
  224.             echo "\t\t\t\t\t\t\t<span class=\"";
  225.             if ( !twig_test_empty(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.'128$this->source); })()), "sub_category", [], "any"falsefalsetrue128))) {
  226.                 echo " ml-1 ";
  227.             }
  228.             echo "\">";
  229.             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.'128$this->source); })()), "sub_category", [], "any"falsefalsetrue128), "name", [], "any"falsefalsetrue128), 128$this->source), "html"nulltrue);
  230.             echo "</span>
  231. \t\t\t\t\t\t";
  232.         }
  233.         // line 130
  234.         echo "\t\t\t\t\t</div>
  235. \t\t\t\t\t<h1 class=\"text-3xl md:text-xl leading-loose tracking-[5px]\">";
  236.         // line 131
  237.         echo $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.'131$this->source); })()), "post_title", [], "any"falsefalsetrue131), 131$this->source);
  238.         echo "</h1>
  239. \t\t\t\t</div>
  240. \t\t\t</div>
  241. \t\t</div>
  242. \t\t<div id=\"page_special_detail\" class=\"w-[100vw] mx-[-50vw] h-fit relative flex flex-col items-center bg-top mt-[-180px] lg:px-6 md:pt-[100px]\">
  243. \t\t\t<div class=\"section-inner\">
  244. \t\t\t\t<div class=\"section-cont text-[10px]\">
  245. \t\t\t\t\t";
  246.         // line 138
  247.         echo $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.'138$this->source); })()), "filter_content", [], "any"falsefalsetrue138), 138$this->source);
  248.         echo "
  249. \t\t\t\t</div>
  250. \t\t\t</div>
  251. \t\t</div>
  252. \t\t<div class=\"max-w-[880px] w-full mx-auto md:px-3\">
  253. \t\t\t<div class=\"w-full flex justify-between text-sm py-28 items-center\">
  254.             \t";
  255.         // line 144
  256.         if ( !twig_test_empty((isset($context["PrevPost"]) || array_key_exists("PrevPost"$context) ? $context["PrevPost"] : (function () { throw new RuntimeError('Variable "PrevPost" does not exist.'144$this->source); })()))) {
  257.             // line 145
  258.             echo "                    <a href=\"";
  259.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("special_post", ["id" => (isset($context["PrevPost"]) || array_key_exists("PrevPost"$context) ? $context["PrevPost"] : (function () { throw new RuntimeError('Variable "PrevPost" does not exist.'145$this->source); })())]), "html"nulltrue);
  260.             echo "\" class=\"flex items-center gap-4 md:gap-2\">
  261.                         <img src=\"";
  262.             // line 146
  263.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/template/default/assets/img/special/arrow-prev.svg"), "html"nulltrue);
  264.             echo "\" alt=\"\" class=\"mt-1 md:w-10\">
  265.                         <p class=\"whitespace-nowrap text-xs\">前の記事へ</p>
  266.                     </a>
  267.                 ";
  268.         } else {
  269.             // line 150
  270.             echo "                    <div class=\"w-[134px] opacity-0\"></div>
  271.                 ";
  272.         }
  273.         // line 152
  274.         echo "                    <div class=\"md:mt-16 whitespace-nowrap\">
  275.                         <a href=\"";
  276.         // line 153
  277.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("special_posts");
  278.         echo "\" class=\"border border-[#DFDFDF] px-3 py-1 md:text-xs md:px-1 text-center\">記事一覧へ</a>
  279.                     </div>
  280.                 ";
  281.         // line 155
  282.         if ( !twig_test_empty((isset($context["NextPost"]) || array_key_exists("NextPost"$context) ? $context["NextPost"] : (function () { throw new RuntimeError('Variable "NextPost" does not exist.'155$this->source); })()))) {
  283.             // line 156
  284.             echo "                    <a href=\"";
  285.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("special_post", ["id" => (isset($context["NextPost"]) || array_key_exists("NextPost"$context) ? $context["NextPost"] : (function () { throw new RuntimeError('Variable "NextPost" does not exist.'156$this->source); })())]), "html"nulltrue);
  286.             echo "\" class=\"flex items-center gap-4 md:gap-2\">
  287.                         <p class=\"whitespace-nowrap text-xs\">次の記事へ</p>
  288.                         <img src=\"";
  289.             // line 158
  290.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/template/default/assets/img/special/arrow-next.svg"), "html"nulltrue);
  291.             echo "\" alt=\"\" class=\"mt-1 md:w-10\">
  292.                     </a>
  293.                 ";
  294.         } else {
  295.             // line 161
  296.             echo "                    <div class=\"w-[134px] opacity-0\"></div>
  297.                 ";
  298.         }
  299.         // line 163
  300.         echo "\t\t\t</div>
  301. \t\t\t<hr class=\"bg-[#DFDFDF] w-[100vw] mx-[calc(50%-50vw)] px-[calc(50%-50vw)]\">
  302. \t\t\t<div class=\"w-full mt-24 md:mt-8 flex flex-col items-center\">
  303. \t\t\t\t<h2 class=\"text-xl mb-10 md:mb-6 md:text-sm\">SHARE</h2>
  304. \t\t\t\t";
  305.         // line 168
  306.         echo "\t\t\t\t<ul id=\"share-menu\" class=\"flex mb-8 items-center\">
  307. \t\t\t\t\t<li class=\"hover cursor-pointer p-3 \" onclick=\"openLineShare()\">
  308. \t\t\t\t\t\t<img class=\"h-8 w-8\" src=\"";
  309.         // line 170
  310.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/LINE_LOGO.svg"), "html"nulltrue);
  311.         echo "\">
  312. \t\t\t\t\t</li>
  313. \t\t\t\t\t<li class=\"hover cursor-pointer p-3\" onclick=\"openMail()\">
  314. \t\t\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-8\">
  315. \t\t\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75\"/>
  316. \t\t\t\t\t\t</svg>
  317. \t\t\t\t\t</li>
  318. \t\t\t\t\t<li id=\"copy-link\" class=\"hover cursor-pointer p-3\" onclick=\"copyUrl()\">
  319. \t\t\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewbox=\"0 0 24 24\" fill=\"currentColor\" class=\"size-7\">
  320. \t\t\t\t\t\t\t<path fill-rule=\"evenodd\" d=\"M19.902 4.098a3.75 3.75 0 0 0-5.304 0l-4.5 4.5a3.75 3.75 0 0 0 1.035 6.037.75.75 0 0 1-.646 1.353 5.25 5.25 0 0 1-1.449-8.45l4.5-4.5a5.25 5.25 0 1 1 7.424 7.424l-1.757 1.757a.75.75 0 1 1-1.06-1.06l1.757-1.757a3.75 3.75 0 0 0 0-5.304Zm-7.389 4.267a.75.75 0 0 1 1-.353 5.25 5.25 0 0 1 1.449 8.45l-4.5 4.5a5.25 5.25 0 1 1-7.424-7.424l1.757-1.757a.75.75 0 1 1 1.06 1.06l-1.757 1.757a3.75 3.75 0 1 0 5.304 5.304l4.5-4.5a3.75 3.75 0 0 0-1.035-6.037.75.75 0 0 1-.354-1Z\" clip-rule=\"evenodd\"/>
  321. \t\t\t\t\t\t</svg>
  322. \t\t\t\t\t</li>
  323. \t\t\t\t</ul>
  324. \t\t\t</div>
  325. \t\t</div>
  326. \t\t<div class=\"w-full max-w-[1120px] lg:px-12 mt-[130px] md:mt-10 mb-8 md:mb-0\">
  327. \t\t\t<ul id=\"breadcrumbs\" class=\"border-t border-[#EFEFEF] py-5 md:py-4 w-full md:text-xs text-sm tracking-widest flex items-center gap-x-1\">
  328. \t\t\t\t<li>
  329. \t\t\t\t\t<a href=\"";
  330.         // line 188
  331.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  332.         echo "\" class=\"hover\">
  333. \t\t\t\t\t\t<span>HOME</span>
  334. \t\t\t\t\t</a>
  335. \t\t\t\t</li>
  336. \t\t\t\t<span>/</span>
  337. \t\t\t\t<li>
  338. \t\t\t\t\t<a href=";
  339.         // line 194
  340.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("special_posts");
  341.         echo " class=\"hover\">
  342. \t\t\t\t\t\t<span>特集</span>
  343. \t\t\t\t\t</a>
  344. \t\t\t\t</li>
  345. \t\t\t\t<span>/</span>
  346. \t\t\t\t<li>
  347. \t\t\t\t\t<span>";
  348.         // line 200
  349.         echo $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.'200$this->source); })()), "post_title", [], "any"falsefalsetrue200), 200$this->source);
  350.         echo "</span>
  351. \t\t\t\t</li>
  352. \t\t\t</ul>
  353. \t\t</div>
  354. \t</div>
  355. ";
  356.         
  357.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  358.         
  359.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  360.     }
  361.     public function getTemplateName()
  362.     {
  363.         return "Special/detail.twig";
  364.     }
  365.     public function isTraitable()
  366.     {
  367.         return false;
  368.     }
  369.     public function getDebugInfo()
  370.     {
  371.         return array (  380 => 200,  371 => 194,  362 => 188,  341 => 170,  337 => 168,  331 => 163,  327 => 161,  321 => 158,  315 => 156,  313 => 155,  308 => 153,  305 => 152,  301 => 150,  294 => 146,  289 => 145,  287 => 144,  278 => 138,  268 => 131,  265 => 130,  255 => 128,  253 => 127,  244 => 125,  239 => 123,  232 => 121,  226 => 120,  219 => 115,  209 => 114,  166 => 79,  157 => 73,  153 => 71,  151 => 70,  97 => 18,  87 => 17,  75 => 4,  65 => 3,  54 => 1,  52 => 8,  39 => 1,);
  372.     }
  373.     public function getSourceContext()
  374.     {
  375.         return new Source("{% extends 'default_frame.twig' %}
  376. {% block stylesheet %}
  377. \t<link rel=\"stylesheet\" href=\"/html/template/default/assets/css/content.css\">
  378.     <link rel=\"stylesheet\" href=\"/html/template/default/assets/css/frame03.css\">
  379. {% endblock %}
  380. {% set categories = [
  381.         'essay',
  382.         'interview',
  383.         'report',
  384.         'guide',
  385.         'philosophy'
  386.     ]
  387. %}
  388. {% block javascript %}
  389. \t<script>
  390. \t\t\$(function(){
  391. \t\t\t\$('.slide-img:not(\".slide-img-slow\")').slick({
  392. \t\t\tautoplay: true,
  393. \t\t\tautoplaySpeed: 3000,
  394. \t\t\tarrows: false,
  395. \t\t\tdots: false,
  396. \t\t\tinfinite: true,
  397. \t\t\tspeed: 800,
  398. \t\t\tslidesToShow: 1,
  399. \t\t\tvariableWidth: true,
  400. \t\t\tcenterMode: true,
  401. \t\t\tresponsive: [
  402. \t\t\t{
  403. \t\t\t\tbreakpoint: 750,
  404. \t\t\t\tsettings: {
  405. \t\t\t\tvariableWidth: true,
  406. \t\t\t\tcenterMode: true,
  407. \t\t\t\t}
  408. \t\t\t}
  409. \t\t\t]
  410. \t\t});
  411. \t\t\$('.slide-img-slow > li:last-child > img').on('load',function(){
  412. \t\t\tsetTimeout(function(){
  413. \t\t\t\$('.slide-img-slow').not('.slick-initialized').slick({
  414. \t\t\t\tautoplay: true,
  415. \t\t\t\tautoplaySpeed: 0,
  416. \t\t\t\tarrows: false,
  417. \t\t\t\tdots: false,
  418. \t\t\t\tspeed: 18000,
  419. \t\t\t\tinfinite: true,
  420. \t\t\t\tcssEase: 'linear',
  421. \t\t\t\tslidesToShow: 1,
  422. \t\t\t\tvariableWidth: true,
  423. \t\t\t\tcenterMode: true,
  424. \t\t\t\tdraggable: false,
  425. \t\t\t\ttouchMove: false,
  426. \t\t\t\tpauseOnFocus: false,
  427. \t\t\t\tpauseOnHover: false,
  428. \t\t\t});
  429. \t\t\t\$('.slide-img-slow').css('opacity',1);
  430. \t\t\t},1000);
  431. \t\t});
  432. \t\t\$('.slide-img-slow > li > img').each(function(){
  433. \t\t\tvar ctrl = \$(this);
  434. \t\t\tctrl.attr('src',ctrl.data('src'));
  435. \t\t});
  436. \t\t});
  437. \t</script>
  438.     {% if Post.category[0].slug in categories %}
  439.         <script>
  440.             \$(document).ready(function () {
  441.                 const postSlug = '{{ Post.category[0].slug }}';
  442. \t\t\t\tconsole.log(postSlug);
  443.                 \$('#page_special_detail').addClass('bg-' + postSlug);
  444.             });
  445.         </script>
  446.     {% endif %}
  447. \t<script>
  448. \t\t\$(function () {
  449.             \$(\"#share-menu-button\").on('click', function () {
  450.                 \$(\"#share-menu\").fadeToggle();
  451.                 copyLinkText('リンクをコピー');
  452.             });
  453.         });
  454.         function copyUrl() {
  455.             const url = location.href;
  456.             navigator.clipboard.writeText(url);
  457.             copyLinkText('コピーしました');
  458.             setTimeout(function () {
  459.             copyLinkText('リンクをコピー');
  460.             }, 2000);
  461.         }
  462.         function openLineShare() {
  463.             const lineUrl = 'https://social-plugins.line.me/lineit/share?url=';
  464.             const url = location.href;
  465.             window.open(`\${lineUrl}\${url}`)
  466.         }
  467.         function openMail() {
  468.             const url = location.href;
  469.             const mailto = `mailto:?body=\${url}`;
  470.             window.open(mailto);
  471.         }
  472.         function copyLinkText(text) {
  473.             \$(\"#copy-link > span\").text(text);
  474.         }
  475. \t</script>
  476. {% endblock %}
  477. {% block main %}
  478. \t<div
  479. \t\tclass=\"second-wrap white-wrap w-full flex flex-col items-center justify-center font-extralight mx-auto animate-slideIn\">
  480. \t\t<!-- KV -->
  481. \t\t<div id=\"section-kv\" class=\"w-full z-10\">
  482. \t\t\t<div class=\"flex flex-col items-center w-full\">
  483. \t\t\t\t<img src=\"{{ Post.special_kv_pc.url }}\" alt=\"{{ Post.special_kv_pc.alt }}\" class=\"sm:hidden object-cover h-[450px] w-full overflow-hidden\">
  484. \t\t\t\t<img src=\"{{ Post.special_kv_sp.url }}\" alt=\"{{ Post.special_kv_sp.alt }}\" class=\"hidden sm:block w-full object-cover h-[640px]\">
  485. \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\">
  486. \t\t\t\t\t<p class=\"text-end text-[#B0B0B0] text-sm md:text-xs absolute top-[4px] right-[8px]\">{{ Post.post_date|date('Y/m/d') }}</p>
  487. \t\t\t\t\t<div class=\"flex items-center border border-white w-fit mb-3 text-sm sm:text-xs px-3 py-[2px]\">
  488. \t\t\t\t\t\t<p class=\"{% if Post.sub_category is not empty %} after:content-['|'] {% endif %}\">{{ Post.category[0].name }}
  489. \t\t\t\t\t\t</p>
  490. \t\t\t\t\t\t{% if Post.sub_category is not empty %}
  491. \t\t\t\t\t\t\t<span class=\"{% if Post.sub_category is not empty %} ml-1 {% endif %}\">{{ Post.sub_category.name }}</span>
  492. \t\t\t\t\t\t{% endif %}
  493. \t\t\t\t\t</div>
  494. \t\t\t\t\t<h1 class=\"text-3xl md:text-xl leading-loose tracking-[5px]\">{{ Post.post_title|raw }}</h1>
  495. \t\t\t\t</div>
  496. \t\t\t</div>
  497. \t\t</div>
  498. \t\t<div id=\"page_special_detail\" class=\"w-[100vw] mx-[-50vw] h-fit relative flex flex-col items-center bg-top mt-[-180px] lg:px-6 md:pt-[100px]\">
  499. \t\t\t<div class=\"section-inner\">
  500. \t\t\t\t<div class=\"section-cont text-[10px]\">
  501. \t\t\t\t\t{{ Post.filter_content|raw }}
  502. \t\t\t\t</div>
  503. \t\t\t</div>
  504. \t\t</div>
  505. \t\t<div class=\"max-w-[880px] w-full mx-auto md:px-3\">
  506. \t\t\t<div class=\"w-full flex justify-between text-sm py-28 items-center\">
  507.             \t{% if PrevPost is not empty %}
  508.                     <a href=\"{{ path('special_post',{'id':PrevPost}) }}\" class=\"flex items-center gap-4 md:gap-2\">
  509.                         <img src=\"{{asset('/html/template/default/assets/img/special/arrow-prev.svg')}}\" alt=\"\" class=\"mt-1 md:w-10\">
  510.                         <p class=\"whitespace-nowrap text-xs\">前の記事へ</p>
  511.                     </a>
  512.                 {% else %}
  513.                     <div class=\"w-[134px] opacity-0\"></div>
  514.                 {% endif %}
  515.                     <div class=\"md:mt-16 whitespace-nowrap\">
  516.                         <a href=\"{{ path('special_posts') }}\" class=\"border border-[#DFDFDF] px-3 py-1 md:text-xs md:px-1 text-center\">記事一覧へ</a>
  517.                     </div>
  518.                 {% if NextPost is not empty %}
  519.                     <a href=\"{{ path('special_post',{'id':NextPost}) }}\" class=\"flex items-center gap-4 md:gap-2\">
  520.                         <p class=\"whitespace-nowrap text-xs\">次の記事へ</p>
  521.                         <img src=\"{{asset('/html/template/default/assets/img/special/arrow-next.svg')}}\" alt=\"\" class=\"mt-1 md:w-10\">
  522.                     </a>
  523.                 {% else %}
  524.                     <div class=\"w-[134px] opacity-0\"></div>
  525.                 {% endif %}
  526. \t\t\t</div>
  527. \t\t\t<hr class=\"bg-[#DFDFDF] w-[100vw] mx-[calc(50%-50vw)] px-[calc(50%-50vw)]\">
  528. \t\t\t<div class=\"w-full mt-24 md:mt-8 flex flex-col items-center\">
  529. \t\t\t\t<h2 class=\"text-xl mb-10 md:mb-6 md:text-sm\">SHARE</h2>
  530. \t\t\t\t{# TODO:シェアボタン #}
  531. \t\t\t\t<ul id=\"share-menu\" class=\"flex mb-8 items-center\">
  532. \t\t\t\t\t<li class=\"hover cursor-pointer p-3 \" onclick=\"openLineShare()\">
  533. \t\t\t\t\t\t<img class=\"h-8 w-8\" src=\"{{ asset('assets/icon/LINE_LOGO.svg') }}\">
  534. \t\t\t\t\t</li>
  535. \t\t\t\t\t<li class=\"hover cursor-pointer p-3\" onclick=\"openMail()\">
  536. \t\t\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-8\">
  537. \t\t\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75\"/>
  538. \t\t\t\t\t\t</svg>
  539. \t\t\t\t\t</li>
  540. \t\t\t\t\t<li id=\"copy-link\" class=\"hover cursor-pointer p-3\" onclick=\"copyUrl()\">
  541. \t\t\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewbox=\"0 0 24 24\" fill=\"currentColor\" class=\"size-7\">
  542. \t\t\t\t\t\t\t<path fill-rule=\"evenodd\" d=\"M19.902 4.098a3.75 3.75 0 0 0-5.304 0l-4.5 4.5a3.75 3.75 0 0 0 1.035 6.037.75.75 0 0 1-.646 1.353 5.25 5.25 0 0 1-1.449-8.45l4.5-4.5a5.25 5.25 0 1 1 7.424 7.424l-1.757 1.757a.75.75 0 1 1-1.06-1.06l1.757-1.757a3.75 3.75 0 0 0 0-5.304Zm-7.389 4.267a.75.75 0 0 1 1-.353 5.25 5.25 0 0 1 1.449 8.45l-4.5 4.5a5.25 5.25 0 1 1-7.424-7.424l1.757-1.757a.75.75 0 1 1 1.06 1.06l-1.757 1.757a3.75 3.75 0 1 0 5.304 5.304l4.5-4.5a3.75 3.75 0 0 0-1.035-6.037.75.75 0 0 1-.354-1Z\" clip-rule=\"evenodd\"/>
  543. \t\t\t\t\t\t</svg>
  544. \t\t\t\t\t</li>
  545. \t\t\t\t</ul>
  546. \t\t\t</div>
  547. \t\t</div>
  548. \t\t<div class=\"w-full max-w-[1120px] lg:px-12 mt-[130px] md:mt-10 mb-8 md:mb-0\">
  549. \t\t\t<ul id=\"breadcrumbs\" class=\"border-t border-[#EFEFEF] py-5 md:py-4 w-full md:text-xs text-sm tracking-widest flex items-center gap-x-1\">
  550. \t\t\t\t<li>
  551. \t\t\t\t\t<a href=\"{{ url('homepage') }}\" class=\"hover\">
  552. \t\t\t\t\t\t<span>HOME</span>
  553. \t\t\t\t\t</a>
  554. \t\t\t\t</li>
  555. \t\t\t\t<span>/</span>
  556. \t\t\t\t<li>
  557. \t\t\t\t\t<a href={{url('special_posts')}} class=\"hover\">
  558. \t\t\t\t\t\t<span>特集</span>
  559. \t\t\t\t\t</a>
  560. \t\t\t\t</li>
  561. \t\t\t\t<span>/</span>
  562. \t\t\t\t<li>
  563. \t\t\t\t\t<span>{{ Post.post_title|raw }}</span>
  564. \t\t\t\t</li>
  565. \t\t\t</ul>
  566. \t\t</div>
  567. \t</div>
  568. {% endblock %}
  569. ""Special/detail.twig""/home/xs082386/manaka-store.com/public_html/renewal.manaka-store.com/app/template/default/Special/detail.twig");
  570.     }
  571.     
  572.     public function checkSecurity()
  573.     {
  574.         static $tags = array("set" => 8"if" => 70);
  575.         static $filters = array("escape" => 73"date" => 123"raw" => 131);
  576.         static $functions = array("path" => 145"asset" => 146"url" => 188);
  577.         try {
  578.             $this->sandbox->checkSecurity(
  579.                 ['set''if'],
  580.                 ['escape''date''raw'],
  581.                 ['path''asset''url']
  582.             );
  583.         } catch (SecurityError $e) {
  584.             $e->setSourceContext($this->source);
  585.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  586.                 $e->setTemplateLine($tags[$e->getTagName()]);
  587.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  588.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  589.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  590.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  591.             }
  592.             throw $e;
  593.         }
  594.     }
  595. }