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