var/cache/dev/twig/fe/fe9e155ce903222ec373040f129cab48cc899c3b8241abe81829313355067ff9.php line 33

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. /* Block/mob_list_news.twig */
  14. class __TwigTemplate_ff25315c7e4478125bf76029dd96505faaf36ab2bfa1a826df6a268aa5a6bb3e 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/mob_list_news.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/mob_list_news.twig"));
  33.         // line 11
  34.         echo "
  35. ";
  36.         // line 12
  37.         $context["hasCategory"] = false;
  38.         // line 13
  39.         echo "
  40. ";
  41.         // line 14
  42.         $context["request_uri"] = twig_get_attribute($this->env$this->sourcetwig_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.'14$this->source); })()), "request", [], "any"falsefalsefalse14), "server", [], "any"falsefalsefalse14), "get", [=> "REQUEST_URI"], "method"falsefalsefalse14);
  43.         // line 15
  44.         if (twig_in_filter("name=", (isset($context["request_uri"]) || array_key_exists("request_uri"$context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.'15$this->source); })()))) {
  45.             // line 16
  46.             echo "  
  47. ";
  48.         } else {
  49.             // line 18
  50.             echo "    ";
  51.             $context["hasCategory"] = true;
  52.         }
  53.         // line 20
  54.         echo "
  55. ";
  56.         // line 21
  57.         if ((isset($context["hasCategory"]) || array_key_exists("hasCategory"$context) ? $context["hasCategory"] : (function () { throw new RuntimeError('Variable "hasCategory" does not exist.'21$this->source); })())) {
  58.             // line 22
  59.             $context["RootCategory"] = twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'22$this->source); })()), "RootCategory", [], "any"falsefalsefalse22);
  60.             // line 23
  61.             echo "
  62. ";
  63.             // line 24
  64.             $context["NewsList"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\News"), "getList", [], "method"falsefalsefalse24);
  65.             // line 25
  66.             echo "
  67. <!--現在のカテゴリID取得-->
  68. ";
  69.             // line 27
  70.             $context["now_id"] = twig_get_attribute($this->env$this->sourcetwig_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.'27$this->source); })()), "request", [], "any"falsefalsefalse27), "query", [], "any"falsefalsefalse27), "get", [=> "category_id"], "method"falsefalsefalse27);
  71.             // line 28
  72.             echo "<!--買い取り配下のカテゴリ取得-->
  73. ";
  74.             // line 29
  75.             $context["cate_childs"] = twig_get_attribute($this->env$this->source, (isset($context["RootCategory"]) || array_key_exists("RootCategory"$context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.'29$this->source); })()), "getDescendants", [], "any"falsefalsefalse29);
  76.             // line 30
  77.             echo "<!--ルート表示-->
  78. <!-- 現在カテゴリーから、親カテゴリに遡り「買い取り>ポケモンまで遡りたい」 -->
  79. <!--現在カテゴリの上のカテゴリを取得 -->
  80. ";
  81.             // line 35
  82.             $context["nowparent"] = twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'35$this->source); })()), "getParent", [], "method"falsefalsefalse35);
  83.             // line 36
  84.             $context["h"] = (twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'36$this->source); })()), "hierarchy", [], "any"falsefalsefalse36) - 1);
  85.             // line 37
  86.             echo "
  87. <!--孫カテゴリ時に子カテゴリが表示された場合は親カテゴリへ -->
  88. ";
  89.             // line 39
  90.             if ((((isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'39$this->source); })()) == "シュヴァルツサイド") || ((isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'39$this->source); })()) == "ヴァイスサイド"))) {
  91.                 // line 40
  92.                 $context["nowparent"] = "ヴァイスシュヴァルツ";
  93.             }
  94.             // line 42
  95.             echo "
  96. <div class=\"mob_top-content-box\">
  97. ";
  98.             // line 45
  99.             if (((((isset($context["nowparent"]) || array_key_exists("nowparent"$context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.'45$this->source); })()) == "ヴァイスシュヴァルツ") || ((isset($context["now_id"]) || array_key_exists("now_id"$context) ? $context["now_id"] : (function () { throw new RuntimeError('Variable "now_id" does not exist.'45$this->source); })()) == 8)) || ((isset($context["now_id"]) || array_key_exists("now_id"$context) ? $context["now_id"] : (function () { throw new RuntimeError('Variable "now_id" does not exist.'45$this->source); })()) == 218))) {
  100.                 echo 
  101.     <h2>
  102.         ";
  103.                 // line 48
  104.                 echo "        ";
  105.                 $context['_parent'] = $context;
  106.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'48$this->source); })()), "path", [], "any"falsefalsefalse48));
  107.                 $context['loop'] = [
  108.                   'parent' => $context['_parent'],
  109.                   'index0' => 0,
  110.                   'index'  => 1,
  111.                   'first'  => true,
  112.                 ];
  113.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  114.                     $length count($context['_seq']);
  115.                     $context['loop']['revindex0'] = $length 1;
  116.                     $context['loop']['revindex'] = $length;
  117.                     $context['loop']['length'] = $length;
  118.                     $context['loop']['last'] = === $length;
  119.                 }
  120.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  121.                     // line 49
  122.                     echo "            ";
  123.                     if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse49)) {
  124.                         // line 50
  125.                         echo "            ";
  126.                         echo "ヴァイスシュヴァルツ
  127.             ";
  128.                     }
  129.                     // line 52
  130.                     echo "        ";
  131.                     ++$context['loop']['index0'];
  132.                     ++$context['loop']['index'];
  133.                     $context['loop']['first'] = false;
  134.                     if (isset($context['loop']['length'])) {
  135.                         --$context['loop']['revindex0'];
  136.                         --$context['loop']['revindex'];
  137.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  138.                     }
  139.                 }
  140.                 $_parent $context['_parent'];
  141.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  142.                 $context array_intersect_key($context$_parent) + $_parent;
  143.                 // line 53
  144.                 echo "        ";
  145.                 // line 54
  146.                 echo "        に関するニュース</h2>
  147.     <div class=\"news-box\">
  148.         ";
  149.                 // line 58
  150.                 $context['_parent'] = $context;
  151.                 $context['_seq'] = twig_ensure_traversable((isset($context["NewsList"]) || array_key_exists("NewsList"$context) ? $context["NewsList"] : (function () { throw new RuntimeError('Variable "NewsList" does not exist.'58$this->source); })()));
  152.                 foreach ($context['_seq'] as $context["_key"] => $context["News"]) {
  153.                     // line 59
  154.                     echo "            
  155.             ";
  156.                     // line 60
  157.                     if ((twig_get_attribute($this->env$this->source$context["News"], "category_id", [], "any"falsefalsefalse60) == 8)) {
  158.                         // line 61
  159.                         echo "                ";
  160.                         if (twig_get_attribute($this->env$this->source$context["News"], "url", [], "any"falsefalsefalse61)) {
  161.                             // line 62
  162.                             echo "                    <div class=\"news-smallbox\">
  163.                     <a href=\"";
  164.                             // line 63
  165.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["News"], "url", [], "any"falsefalsefalse63), "html"nulltrue);
  166.                             echo "\" ";
  167.                             if ((twig_get_attribute($this->env$this->source$context["News"], "link_method", [], "any"falsefalsefalse63) == "1")) {
  168.                                 echo "target=\"_blank\"";
  169.                             }
  170.                             echo ">
  171.                     <div class=\"news-1\">
  172.                         <div class=\"inter\">
  173.                             ";
  174.                             // line 66
  175.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->envtwig_get_attribute($this->env$this->source$context["News"], "publish_date", [], "any"falsefalsefalse66)), "html"nulltrue);
  176.                             echo "
  177.                         </div>
  178.     
  179.                         <div class=\"\">
  180.                             ";
  181.                             // line 70
  182.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["News"], "title", [], "any"falsefalsefalse70), "html"nulltrue);
  183.                             echo "<span class=\"news-desc\">";
  184.                             echo twig_nl2br(twig_get_attribute($this->env$this->source$context["News"], "description", [], "any"falsefalsefalse70));
  185.                             echo "</span>
  186.                         </div>
  187.     
  188.                     </div>
  189.                     </a>
  190.                      </div>
  191.                 ";
  192.                         } else {
  193.                             // line 77
  194.                             echo "                 <div class=\"news-smallbox\">
  195.                     <a href=";
  196.                             // line 78
  197.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_detail", ["id" => twig_get_attribute($this->env$this->source$context["News"], "id", [], "any"falsefalsefalse78)]), "html"nulltrue);
  198.                             echo " >
  199.                     <div class=\"news-1\">
  200.                         <div class=\"inter\">
  201.                             ";
  202.                             // line 81
  203.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->envtwig_get_attribute($this->env$this->source$context["News"], "publish_date", [], "any"falsefalsefalse81)), "html"nulltrue);
  204.                             echo "
  205.                         </div>
  206.     
  207.                         <div class=\"\">
  208.                             ";
  209.                             // line 85
  210.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["News"], "title", [], "any"falsefalsefalse85), "html"nulltrue);
  211.                             echo "<span class=\"news-desc\">詳細はこちらをクリック</span>
  212.                         </div>
  213.                     </div>
  214.                     </a>
  215.                  </div>
  216.                 ";
  217.                         }
  218.                         // line 91
  219.                         echo "            ";
  220.                     }
  221.                     // line 92
  222.                     echo "       
  223.         ";
  224.                 }
  225.                 $_parent $context['_parent'];
  226.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['News'], $context['_parent'], $context['loop']);
  227.                 $context array_intersect_key($context$_parent) + $_parent;
  228.                 // line 94
  229.                 echo "
  230.     </div>
  231. ";
  232.             } else {
  233.                 // line 99
  234.                 echo "    <h2>
  235.         ";
  236.                 // line 101
  237.                 echo "        ";
  238.                 $context['_parent'] = $context;
  239.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'101$this->source); })()), "path", [], "any"falsefalsefalse101));
  240.                 $context['loop'] = [
  241.                   'parent' => $context['_parent'],
  242.                   'index0' => 0,
  243.                   'index'  => 1,
  244.                   'first'  => true,
  245.                 ];
  246.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  247.                     $length count($context['_seq']);
  248.                     $context['loop']['revindex0'] = $length 1;
  249.                     $context['loop']['revindex'] = $length;
  250.                     $context['loop']['length'] = $length;
  251.                     $context['loop']['last'] = === $length;
  252.                 }
  253.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  254.                     // line 102
  255.                     echo "            ";
  256.                     if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse102)) {
  257.                         // line 103
  258.                         echo "            ";
  259.                         echo "ポケモン
  260.             ";
  261.                     }
  262.                     // line 105
  263.                     echo "        ";
  264.                     ++$context['loop']['index0'];
  265.                     ++$context['loop']['index'];
  266.                     $context['loop']['first'] = false;
  267.                     if (isset($context['loop']['length'])) {
  268.                         --$context['loop']['revindex0'];
  269.                         --$context['loop']['revindex'];
  270.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  271.                     }
  272.                 }
  273.                 $_parent $context['_parent'];
  274.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  275.                 $context array_intersect_key($context$_parent) + $_parent;
  276.                 // line 106
  277.                 echo "        ";
  278.                 // line 107
  279.                 echo "        に関するニュース</h2>
  280.         ";
  281.                 // line 108
  282.                 $context['_parent'] = $context;
  283.                 $context['_seq'] = twig_ensure_traversable((isset($context["NewsList"]) || array_key_exists("NewsList"$context) ? $context["NewsList"] : (function () { throw new RuntimeError('Variable "NewsList" does not exist.'108$this->source); })()));
  284.                 foreach ($context['_seq'] as $context["_key"] => $context["News"]) {
  285.                     // line 109
  286.                     echo "            
  287.                 ";
  288.                     // line 110
  289.                     if ((twig_get_attribute($this->env$this->source$context["News"], "category_id", [], "any"falsefalsefalse110) == 7)) {
  290.                         // line 111
  291.                         echo "                 
  292.                 ";
  293.                         // line 112
  294.                         if (twig_get_attribute($this->env$this->source$context["News"], "url", [], "any"falsefalsefalse112)) {
  295.                             // line 113
  296.                             echo "                <div class=\"news-smallbox\">
  297.                     <a href=\"";
  298.                             // line 114
  299.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["News"], "url", [], "any"falsefalsefalse114), "html"nulltrue);
  300.                             echo "\" ";
  301.                             if ((twig_get_attribute($this->env$this->source$context["News"], "link_method", [], "any"falsefalsefalse114) == "1")) {
  302.                                 echo "target=\"_blank\"";
  303.                             }
  304.                             echo ">
  305.                     <div class=\"news-1\">
  306.                         <div class=\"inter\">
  307.                             ";
  308.                             // line 117
  309.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->envtwig_get_attribute($this->env$this->source$context["News"], "publish_date", [], "any"falsefalsefalse117)), "html"nulltrue);
  310.                             echo "
  311.                         </div>
  312.     
  313.                         <div class=\"\">
  314.                             ";
  315.                             // line 121
  316.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["News"], "title", [], "any"falsefalsefalse121), "html"nulltrue);
  317.                             echo "<span class=\"news-desc\">";
  318.                             echo twig_nl2br(twig_get_attribute($this->env$this->source$context["News"], "description", [], "any"falsefalsefalse121));
  319.                             echo "</span>
  320.                         </div>
  321.     
  322.                     </div>
  323.                     </a>
  324.                 </div>
  325.                 ";
  326.                         } else {
  327.                             // line 128
  328.                             echo "                <div class=\"news-smallbox\">
  329.                     <a href=";
  330.                             // line 129
  331.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_detail", ["id" => twig_get_attribute($this->env$this->source$context["News"], "id", [], "any"falsefalsefalse129)]), "html"nulltrue);
  332.                             echo " >
  333.                     <div class=\"news-1\">
  334.                         <div class=\"inter\">
  335.                             ";
  336.                             // line 132
  337.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->envtwig_get_attribute($this->env$this->source$context["News"], "publish_date", [], "any"falsefalsefalse132)), "html"nulltrue);
  338.                             echo "
  339.                         </div>
  340.     
  341.                         <div class=\"\">
  342.                             ";
  343.                             // line 136
  344.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["News"], "title", [], "any"falsefalsefalse136), "html"nulltrue);
  345.                             echo "<span class=\"news-desc\">詳細はこちらをクリック</span>
  346.                         </div>
  347.                     </div>
  348.                     </a>
  349.                 </div>
  350.                 ";
  351.                         }
  352.                         // line 142
  353.                         echo "            ";
  354.                     }
  355.                     // line 143
  356.                     echo "        </div>
  357.         ";
  358.                 }
  359.                 $_parent $context['_parent'];
  360.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['News'], $context['_parent'], $context['loop']);
  361.                 $context array_intersect_key($context$_parent) + $_parent;
  362.             }
  363.             // line 146
  364.             echo "
  365. </div>
  366. ";
  367.         }
  368.         
  369.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  370.         
  371.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  372.     }
  373.     public function getTemplateName()
  374.     {
  375.         return "Block/mob_list_news.twig";
  376.     }
  377.     public function isTraitable()
  378.     {
  379.         return false;
  380.     }
  381.     public function getDebugInfo()
  382.     {
  383.         return array (  380 => 146,  372 => 143,  369 => 142,  360 => 136,  353 => 132,  347 => 129,  344 => 128,  332 => 121,  325 => 117,  315 => 114,  312 => 113,  310 => 112,  307 => 111,  305 => 110,  302 => 109,  298 => 108,  295 => 107,  293 => 106,  279 => 105,  274 => 103,  271 => 102,  253 => 101,  250 => 99,  243 => 94,  236 => 92,  233 => 91,  224 => 85,  217 => 81,  211 => 78,  208 => 77,  196 => 70,  189 => 66,  179 => 63,  176 => 62,  173 => 61,  171 => 60,  168 => 59,  164 => 58,  158 => 54,  156 => 53,  142 => 52,  137 => 50,  134 => 49,  116 => 48,  111 => 45,  106 => 42,  103 => 40,  101 => 39,  97 => 37,  95 => 36,  93 => 35,  86 => 30,  84 => 29,  81 => 28,  79 => 27,  75 => 25,  73 => 24,  70 => 23,  68 => 22,  66 => 21,  63 => 20,  59 => 18,  55 => 16,  53 => 15,  51 => 14,  48 => 13,  46 => 12,  43 => 11,);
  384.     }
  385.     public function getSourceContext()
  386.     {
  387.         return new Source("{#
  388. This file is part of EC-CUBE
  389. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  390. http://www.ec-cube.co.jp/
  391. For the full copyright and license information, please view the LICENSE
  392. file that was distributed with this source code.
  393. #}
  394. {% set hasCategory = false %}
  395. {% set request_uri = app.request.server.get('REQUEST_URI') %}
  396. {% if 'name=' in request_uri %}
  397.   
  398. {% else %}
  399.     {% set hasCategory = true %}
  400. {% endif %}
  401. {% if hasCategory %}
  402. {% set RootCategory = Category.RootCategory %}
  403. {% set NewsList = repository('Eccube\\\\Entity\\\\News').getList() %}
  404. <!--現在のカテゴリID取得-->
  405. {% set now_id = app.request.query.get('category_id') %}
  406. <!--買い取り配下のカテゴリ取得-->
  407. {% set cate_childs = RootCategory.getDescendants %}
  408. <!--ルート表示-->
  409. <!-- 現在カテゴリーから、親カテゴリに遡り「買い取り>ポケモンまで遡りたい」 -->
  410. <!--現在カテゴリの上のカテゴリを取得 -->
  411. {% set nowparent = Category.getParent() %}
  412. {% set h = Category.hierarchy - 1 %}
  413. <!--孫カテゴリ時に子カテゴリが表示された場合は親カテゴリへ -->
  414. {% if nowparent == \"シュヴァルツサイド\" or nowparent == \"ヴァイスサイド\" %}
  415. {% set nowparent = \"ヴァイスシュヴァルツ\" %}
  416. {% endif %}
  417. <div class=\"mob_top-content-box\">
  418. {% if nowparent == \"ヴァイスシュヴァルツ\" or now_id == 8 or now_id == 218  %} 
  419.     <h2>
  420.         {# use loop.first #}
  421.         {% for Path in Category.path %}
  422.             {% if loop.first %}
  423.             {# Path.name #}ヴァイスシュヴァルツ
  424.             {% endif %}
  425.         {% endfor %}
  426.         {# result #}
  427.         に関するニュース</h2>
  428.     <div class=\"news-box\">
  429.         {% for News in NewsList %}
  430.             
  431.             {% if News.category_id == 8 %}
  432.                 {% if News.url %}
  433.                     <div class=\"news-smallbox\">
  434.                     <a href=\"{{ News.url }}\" {% if News.link_method == '1' %}target=\"_blank\"{% endif %}>
  435.                     <div class=\"news-1\">
  436.                         <div class=\"inter\">
  437.                             {{ News.publish_date|date_day }}
  438.                         </div>
  439.     
  440.                         <div class=\"\">
  441.                             {{ News.title }}<span class=\"news-desc\">{{ News.description|raw|nl2br }}</span>
  442.                         </div>
  443.     
  444.                     </div>
  445.                     </a>
  446.                      </div>
  447.                 {% else %}
  448.                  <div class=\"news-smallbox\">
  449.                     <a href={{ url('news_detail',  {'id': News.id}) }} >
  450.                     <div class=\"news-1\">
  451.                         <div class=\"inter\">
  452.                             {{ News.publish_date|date_day }}
  453.                         </div>
  454.     
  455.                         <div class=\"\">
  456.                             {{ News.title }}<span class=\"news-desc\">詳細はこちらをクリック</span>
  457.                         </div>
  458.                     </div>
  459.                     </a>
  460.                  </div>
  461.                 {% endif %}
  462.             {% endif %}
  463.        
  464.         {% endfor %}
  465.     </div>
  466. {% else %}
  467.     <h2>
  468.         {# use loop.first #}
  469.         {% for Path in Category.path %}
  470.             {% if loop.first %}
  471.             {# Path.name #}ポケモン
  472.             {% endif %}
  473.         {% endfor %}
  474.         {# result #}
  475.         に関するニュース</h2>
  476.         {% for News in NewsList %}
  477.             
  478.                 {% if News.category_id == 7 %}
  479.                  
  480.                 {% if News.url %}
  481.                 <div class=\"news-smallbox\">
  482.                     <a href=\"{{ News.url }}\" {% if News.link_method == '1' %}target=\"_blank\"{% endif %}>
  483.                     <div class=\"news-1\">
  484.                         <div class=\"inter\">
  485.                             {{ News.publish_date|date_day }}
  486.                         </div>
  487.     
  488.                         <div class=\"\">
  489.                             {{ News.title }}<span class=\"news-desc\">{{ News.description|raw|nl2br }}</span>
  490.                         </div>
  491.     
  492.                     </div>
  493.                     </a>
  494.                 </div>
  495.                 {% else %}
  496.                 <div class=\"news-smallbox\">
  497.                     <a href={{ url('news_detail',  {'id': News.id}) }} >
  498.                     <div class=\"news-1\">
  499.                         <div class=\"inter\">
  500.                             {{ News.publish_date|date_day }}
  501.                         </div>
  502.     
  503.                         <div class=\"\">
  504.                             {{ News.title }}<span class=\"news-desc\">詳細はこちらをクリック</span>
  505.                         </div>
  506.                     </div>
  507.                     </a>
  508.                 </div>
  509.                 {% endif %}
  510.             {% endif %}
  511.         </div>
  512.         {% endfor %}
  513. {% endif %}
  514. </div>
  515. {% endif %}""Block/mob_list_news.twig""/home/northserver/tcg-mana.com/public_html/app/template/default/Block/mob_list_news.twig");
  516.     }
  517. }