var/cache/dev/twig/2a/2ab91b8a67e1d78a62ddfd0674bf5dce6aaabcd4378d5800ab3b05ceb74d648b.php line 16

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. /* @user_data/news.twig */
  14. class __TwigTemplate_c15faaad0381e60560438981b61e771f217c670b786a6a43a3c87efc231fe30d 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.             'main' => [$this'block_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@user_data/news.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@user_data/news.twig"));
  38.         $this->parent $this->loadTemplate("default_frame.twig""@user_data/news.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_main($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  53.         // line 4
  54.         echo "
  55. ";
  56.         // line 5
  57.         $context["page"] = "post";
  58.         // line 6
  59.         echo "
  60. ";
  61.         // line 7
  62.         if ($this->extensions['Customize\Twig\Extension\MyExtension']->array_key_exists("type", (isset($context["get"]) || array_key_exists("get"$context) ? $context["get"] : (function () { throw new RuntimeError('Variable "get" does not exist.'7$this->source); })()))) {
  63.             // line 8
  64.             $context["page"] = twig_get_attribute($this->env$this->source, (isset($context["get"]) || array_key_exists("get"$context) ? $context["get"] : (function () { throw new RuntimeError('Variable "get" does not exist.'8$this->source); })()), "type", [], "any"falsefalsefalse8);
  65.         }
  66.         // line 10
  67.         echo "
  68. <section class=\"news-topic\">
  69. <div class=\"wrap\">
  70. <div class=\"news\">
  71. ";
  72.         // line 15
  73.         if (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'15$this->source); })()) == "post")) {
  74.             // line 16
  75.             echo "<h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>N</i>ews</strong>新着情報</h2>
  76. ";
  77.         } else {
  78.             // line 18
  79.             echo "<h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>E</i>xample</strong>施工事例</h2>
  80. ";
  81.         }
  82.         // line 20
  83.         echo "
  84. <div class=\"inner\">
  85. <div class=\"left-box\">
  86. ";
  87.         // line 23
  88.         $context["content"] = $this->extensions['Customize\Twig\Extension\MyExtension']->wp_news((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'23$this->source); })()));
  89.         // line 24
  90.         if ((isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'24$this->source); })())) {
  91.             // line 25
  92.             echo "<h2 class=\"left-title\">";
  93.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'25$this->source); })()), "title", [], "any"falsefalsefalse25), "html"nulltrue);
  94.             echo "</h2>
  95. <p class=\"txtR\"><time datetime=\"";
  96.             // line 26
  97.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'26$this->source); })()), "time", [], "any"falsefalsefalse26), "html"nulltrue);
  98.             echo "\">";
  99.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'26$this->source); })()), "time", [], "any"falsefalsefalse26), "html"nulltrue);
  100.             echo "</time></p>
  101. ";
  102.             // line 28
  103.             if (twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'28$this->source); })()), "term", [], "any"falsefalsefalse28)) {
  104.                 // line 29
  105.                 echo "<ul class=\"cat\">
  106. ";
  107.                 // line 30
  108.                 $context['_parent'] = $context;
  109.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'30$this->source); })()), "term", [], "any"falsefalsefalse30));
  110.                 foreach ($context['_seq'] as $context["_key"] => $context["cav"]) {
  111.                     // line 31
  112.                     echo "<li><span>";
  113.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cav"], "name", [], "any"falsefalsefalse31), "html"nulltrue);
  114.                     echo "</span></li>
  115. ";
  116.                 }
  117.                 $_parent $context['_parent'];
  118.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cav'], $context['_parent'], $context['loop']);
  119.                 $context array_intersect_key($context$_parent) + $_parent;
  120.                 // line 33
  121.                 echo "</ul>
  122. ";
  123.             }
  124.             // line 35
  125.             if (twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'35$this->source); })()), "cat", [], "any"falsefalsefalse35)) {
  126.                 // line 36
  127.                 echo "<ul class=\"cat\">
  128. ";
  129.                 // line 37
  130.                 $context['_parent'] = $context;
  131.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'37$this->source); })()), "cat", [], "any"falsefalsefalse37));
  132.                 foreach ($context['_seq'] as $context["_key"] => $context["cav"]) {
  133.                     // line 38
  134.                     echo "<li><span>";
  135.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cav"], "name", [], "any"falsefalsefalse38), "html"nulltrue);
  136.                     echo "</span></li>
  137. ";
  138.                 }
  139.                 $_parent $context['_parent'];
  140.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cav'], $context['_parent'], $context['loop']);
  141.                 $context array_intersect_key($context$_parent) + $_parent;
  142.                 // line 40
  143.                 echo "</ul>
  144. ";
  145.             }
  146.             // line 42
  147.             echo "<section class=\"left-content\">
  148. ";
  149.             // line 43
  150.             if (twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'43$this->source); })()), "digest", [], "any"falsefalsefalse43)) {
  151.                 // line 44
  152.                 echo "<p style=\"font-weight: bold; color: #1A552E;\">";
  153.                 echo twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'44$this->source); })()), "digest", [], "any"falsefalsefalse44);
  154.                 echo "</p>
  155. ";
  156.             }
  157.             // line 46
  158.             echo "
  159. ";
  160.             // line 47
  161.             echo twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'47$this->source); })()), "contents", [], "any"falsefalsefalse47);
  162.             echo "
  163. </section>
  164. <div class=\"post-pager\">
  165. <ul class=\"post-link-list\">
  166. ";
  167.             // line 52
  168.             echo twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'52$this->source); })()), "peger", [], "any"falsefalsefalse52);
  169.             echo "
  170. </ul>
  171. </div>
  172. ";
  173.         } else {
  174.             // line 57
  175.             echo "<p style=\"margin: 5em auto; text-align: center;\">記事はありません</p>
  176. ";
  177.         }
  178.         // line 59
  179.         echo "</div>
  180. <div class=\"right-box\">
  181. <h2>新着情報</h2>
  182. <ul class=\"newslist\">
  183. ";
  184.         // line 63
  185.         $context["pages"] = [=> "post"];
  186.         // line 64
  187.         $context['_parent'] = $context;
  188.         $context['_seq'] = twig_ensure_traversable($this->extensions['Customize\Twig\Extension\MyExtension']->wp_news_list(5, (isset($context["pages"]) || array_key_exists("pages"$context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.'64$this->source); })())));
  189.         foreach ($context['_seq'] as $context["_key"] => $context["newslist"]) {
  190.             // line 65
  191.             echo "    <li><time datetime=\"";
  192.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["newslist"], "post_date", [], "any"falsefalsefalse65), "Y-m-d"), "html"nulltrue);
  193.             echo "\">";
  194.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["newslist"], "post_date", [], "any"falsefalsefalse65), "Y年m月d日"), "html"nulltrue);
  195.             echo "</time><a href=\"/information/news?id=";
  196.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["newslist"], "ID", [], "any"falsefalsefalse65), "html"nulltrue);
  197.             echo "&type=";
  198.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["newslist"], "type", [], "any"falsefalsefalse65), "html"nulltrue);
  199.             echo "\">";
  200.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["newslist"], "title", [], "any"falsefalsefalse65), "html"nulltrue);
  201.             echo "</a></li>
  202. ";
  203.         }
  204.         $_parent $context['_parent'];
  205.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['newslist'], $context['_parent'], $context['loop']);
  206.         $context array_intersect_key($context$_parent) + $_parent;
  207.         // line 67
  208.         echo "</ul>
  209. <h2>施工事例</h2>
  210. <ul class=\"newslist\">
  211. ";
  212.         // line 71
  213.         $context["pages"] = [=> "topic"];
  214.         // line 72
  215.         $context['_parent'] = $context;
  216.         $context['_seq'] = twig_ensure_traversable($this->extensions['Customize\Twig\Extension\MyExtension']->wp_news_list(5, (isset($context["pages"]) || array_key_exists("pages"$context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.'72$this->source); })())));
  217.         foreach ($context['_seq'] as $context["_key"] => $context["newslist"]) {
  218.             // line 73
  219.             echo "    <li><time datetime=\"";
  220.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["newslist"], "post_date", [], "any"falsefalsefalse73), "Y-m-d"), "html"nulltrue);
  221.             echo "\">";
  222.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["newslist"], "post_date", [], "any"falsefalsefalse73), "Y年m月d日"), "html"nulltrue);
  223.             echo "</time><a href=\"/information/news?id=";
  224.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["newslist"], "ID", [], "any"falsefalsefalse73), "html"nulltrue);
  225.             echo "&type=";
  226.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["newslist"], "type", [], "any"falsefalsefalse73), "html"nulltrue);
  227.             echo "\">";
  228.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["newslist"], "title", [], "any"falsefalsefalse73), "html"nulltrue);
  229.             echo "</a></li>
  230. ";
  231.         }
  232.         $_parent $context['_parent'];
  233.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['newslist'], $context['_parent'], $context['loop']);
  234.         $context array_intersect_key($context$_parent) + $_parent;
  235.         // line 75
  236.         echo "</ul>
  237. <h2>カテゴリ</h2>
  238. <ul class=\"newslist\">
  239. ";
  240.         // line 79
  241.         $context["cates"] = $this->extensions['Customize\Twig\Extension\MyExtension']->wp_cates("");
  242.         // line 80
  243.         $context['_parent'] = $context;
  244.         $context['_seq'] = twig_ensure_traversable((isset($context["cates"]) || array_key_exists("cates"$context) ? $context["cates"] : (function () { throw new RuntimeError('Variable "cates" does not exist.'80$this->source); })()));
  245.         foreach ($context['_seq'] as $context["_key"] => $context["catelist"]) {
  246.             // line 81
  247.             echo "    <li><a href=\"/information/newslist?tax=";
  248.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["catelist"], "taxonomy", [], "any"falsefalsefalse81), "html"nulltrue);
  249.             echo "&slug=";
  250.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["catelist"], "slug", [], "any"falsefalsefalse81), "html"nulltrue);
  251.             echo "\">";
  252.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["catelist"], "name", [], "any"falsefalsefalse81), "html"nulltrue);
  253.             echo "</a></li>
  254. ";
  255.         }
  256.         $_parent $context['_parent'];
  257.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['catelist'], $context['_parent'], $context['loop']);
  258.         $context array_intersect_key($context$_parent) + $_parent;
  259.         // line 83
  260.         echo "</ul>
  261. </div>
  262. </div>
  263. </div>
  264. </div>
  265. </section>
  266. ";
  267.         
  268.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  269.         
  270.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  271.     }
  272.     public function getTemplateName()
  273.     {
  274.         return "@user_data/news.twig";
  275.     }
  276.     public function isTraitable()
  277.     {
  278.         return false;
  279.     }
  280.     public function getDebugInfo()
  281.     {
  282.         return array (  280 => 83,  267 => 81,  263 => 80,  261 => 79,  255 => 75,  238 => 73,  234 => 72,  232 => 71,  226 => 67,  209 => 65,  205 => 64,  203 => 63,  197 => 59,  193 => 57,  185 => 52,  177 => 47,  174 => 46,  168 => 44,  166 => 43,  163 => 42,  159 => 40,  150 => 38,  146 => 37,  143 => 36,  141 => 35,  137 => 33,  128 => 31,  124 => 30,  121 => 29,  119 => 28,  112 => 26,  107 => 25,  105 => 24,  103 => 23,  98 => 20,  94 => 18,  90 => 16,  88 => 15,  81 => 10,  78 => 8,  76 => 7,  73 => 6,  71 => 5,  68 => 4,  58 => 3,  35 => 1,);
  283.     }
  284.     public function getSourceContext()
  285.     {
  286.         return new Source("{% extends 'default_frame.twig' %}
  287. {% block main %}
  288. {%set page=\"post\"%}
  289. {%if \"type\"|array_key_exists(get) %}
  290. {%set page=get.type%}
  291. {%endif%}
  292. <section class=\"news-topic\">
  293. <div class=\"wrap\">
  294. <div class=\"news\">
  295. {%if page==\"post\"%}
  296. <h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>N</i>ews</strong>新着情報</h2>
  297. {%else%}
  298. <h2 class=\"subtitle\"><strong class=\"fadein active top\"><i>E</i>xample</strong>施工事例</h2>
  299. {%endif%}
  300. <div class=\"inner\">
  301. <div class=\"left-box\">
  302. {% set content= page|wp_news %}
  303. {%if content%}
  304. <h2 class=\"left-title\">{{content.title}}</h2>
  305. <p class=\"txtR\"><time datetime=\"{{content.time}}\">{{content.time}}</time></p>
  306. {%if content.term%}
  307. <ul class=\"cat\">
  308. {% for cav in content.term%}
  309. <li><span>{{cav.name}}</span></li>
  310. {% endfor %}
  311. </ul>
  312. {%endif%}
  313. {%if content.cat%}
  314. <ul class=\"cat\">
  315. {% for cav in content.cat%}
  316. <li><span>{{cav.name}}</span></li>
  317. {% endfor %}
  318. </ul>
  319. {%endif%}
  320. <section class=\"left-content\">
  321. {%if content.digest%}
  322. <p style=\"font-weight: bold; color: #1A552E;\">{{content.digest|raw}}</p>
  323. {%endif%}
  324. {{content.contents|raw}}
  325. </section>
  326. <div class=\"post-pager\">
  327. <ul class=\"post-link-list\">
  328. {{content.peger|raw}}
  329. </ul>
  330. </div>
  331. {%else%}
  332. <p style=\"margin: 5em auto; text-align: center;\">記事はありません</p>
  333. {%endif%}
  334. </div>
  335. <div class=\"right-box\">
  336. <h2>新着情報</h2>
  337. <ul class=\"newslist\">
  338. {%set pages = ['post']%}
  339. {% for newslist in 5|wp_news_list(pages) %}
  340.     <li><time datetime=\"{{newslist.post_date|date('Y-m-d')}}\">{{newslist.post_date|date('Y年m月d日')}}</time><a href=\"/information/news?id={{newslist.ID}}&type={{newslist.type}}\">{{newslist.title}}</a></li>
  341. {% endfor %}
  342. </ul>
  343. <h2>施工事例</h2>
  344. <ul class=\"newslist\">
  345. {%set pages = ['topic']%}
  346. {% for newslist in 5|wp_news_list(pages) %}
  347.     <li><time datetime=\"{{newslist.post_date|date('Y-m-d')}}\">{{newslist.post_date|date('Y年m月d日')}}</time><a href=\"/information/news?id={{newslist.ID}}&type={{newslist.type}}\">{{newslist.title}}</a></li>
  348. {% endfor %}
  349. </ul>
  350. <h2>カテゴリ</h2>
  351. <ul class=\"newslist\">
  352. {%set cates =\"\"|wp_cates%}
  353. {% for catelist in cates %}
  354.     <li><a href=\"/information/newslist?tax={{catelist.taxonomy}}&slug={{catelist.slug}}\">{{catelist.name}}</a></li>
  355. {% endfor %}
  356. </ul>
  357. </div>
  358. </div>
  359. </div>
  360. </div>
  361. </section>
  362. {% endblock %}""@user_data/news.twig""/home/ny-paradisa/public_html/app/template/user_data/news.twig");
  363.     }
  364. }