<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Block/mob_cat_nav.twig */
class __TwigTemplate_3a79b638ec4412864b1b8c0ba8581a7f5ba3c6ee130a75e1ec2d60b5a6cd567f extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/mob_cat_nav.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/mob_cat_nav.twig"));
// line 1
$context["hasCategory"] = false;
// line 2
echo "
";
// line 3
$context["request_uri"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "server", [], "any", false, false, false, 3), "get", [0 => "REQUEST_URI"], "method", false, false, false, 3);
// line 4
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.', 4, $this->source); })()))) {
// line 5
echo " ";
$context["hasCategory"] = false;
// line 6
echo " ";
$context["RootCategory"] = "";
} elseif ((twig_in_filter("name=", // line 7
(isset($context["request_uri"]) || array_key_exists("request_uri", $context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.', 7, $this->source); })())) && ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 7, $this->source); })()) != ""))) {
// line 8
echo " ";
$context["hasCategory"] = true;
// line 9
echo " ";
$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.', 9, $this->source); })()), "RootCategory", [], "any", false, false, false, 9);
} elseif (( // line 10
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 10, $this->source); })()) != "")) {
// line 11
echo " ";
$context["hasCategory"] = true;
// line 12
echo " ";
$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.', 12, $this->source); })()), "RootCategory", [], "any", false, false, false, 12);
} else {
// line 14
echo " ";
$context["hasCategory"] = false;
// line 15
echo " ";
$context["RootCategory"] = "";
}
// line 17
echo "
";
// line 19
if (((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 19, $this->source); })()) != "")) {
// line 20
echo " ";
$this->displayBlock('javascript', $context, $blocks);
// line 35
echo "
";
// line 37
$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.', 37, $this->source); })()), "RootCategory", [], "any", false, false, false, 37);
// line 38
echo "
";
// line 39
if ((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 39, $this->source); })()) == "新入荷") || ((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 39, $this->source); })()) == "おすすめ商品"))) {
// line 40
echo " <div class=\"mob-topnav\">
<div class=\"title-box\">
<a href=\"";
// line 42
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html", null, true);
echo "\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"";
// line 46
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"";
// line 52
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=219\">売る</a>
</div>
</div>
</div>
</div>
<div class=\"title-box\">
<a href=\"";
// line 59
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html", null, true);
echo "\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"";
// line 63
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=8\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"";
// line 69
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=218\">売る</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"mob-topnsearch\">
";
// line 78
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch"));
echo "
</div>
";
} elseif (( // line 82
(isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 82, $this->source); })()) == "販売")) {
// line 83
echo " <!--現在のカテゴリID取得-->
";
// line 84
$context["now_id"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 84, $this->source); })()), "request", [], "any", false, false, false, 84), "query", [], "any", false, false, false, 84), "get", [0 => "category_id"], "method", false, false, false, 84);
// line 85
echo " <!--買い取り配下のカテゴリ取得-->
";
// line 86
$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.', 86, $this->source); })()), "getDescendants", [], "any", false, false, false, 86);
// line 87
echo " <!--ルート表示-->
<!-- 現在カテゴリーから、親カテゴリに遡り「買い取り>ポケモンまで遡りたい」 -->
<!--現在カテゴリの上のカテゴリを取得 -->
";
// line 92
$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.', 92, $this->source); })()), "getParent", [], "method", false, false, false, 92);
// line 93
echo " ";
$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.', 93, $this->source); })()), "hierarchy", [], "any", false, false, false, 93) - 1);
// line 94
echo "
<!--孫カテゴリ時に子カテゴリが表示された場合は親カテゴリへ -->
";
// line 96
if ((((isset($context["nowparent"]) || array_key_exists("nowparent", $context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.', 96, $this->source); })()) == "シュヴァルツサイド") || ((isset($context["nowparent"]) || array_key_exists("nowparent", $context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.', 96, $this->source); })()) == "ヴァイスサイド"))) {
// line 97
echo " ";
$context["nowparent"] = "ヴァイスシュヴァルツ";
// line 98
echo " ";
}
// line 99
echo "
";
// line 100
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["cate_childs"]) || array_key_exists("cate_childs", $context) ? $context["cate_childs"] : (function () { throw new RuntimeError('Variable "cate_childs" does not exist.', 100, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["cate"]) {
// line 101
echo " ";
if (((isset($context["h"]) || array_key_exists("h", $context) ? $context["h"] : (function () { throw new RuntimeError('Variable "h" does not exist.', 101, $this->source); })()) == twig_get_attribute($this->env, $this->source, $context["cate"], "hierarchy", [], "any", false, false, false, 101))) {
// line 102
echo " ";
// line 103
echo " ";
}
// line 104
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cate'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 105
echo "
";
// line 106
if ((((isset($context["nowparent"]) || array_key_exists("nowparent", $context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.', 106, $this->source); })()) == "ポケモン") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 106, $this->source); })()) == "ポケモン"))) {
// line 107
echo " ";
$context["cnt"] = 7;
// line 108
echo "
";
// line 109
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch"));
echo "
";
// line 113
echo " ";
$context["Categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [0 => 7], "method", false, false, false, 113);
// line 114
echo "
";
// line 117
echo " ";
$macros["__internal_parse_0"] = $this->macros["__internal_parse_0"] = $this;
// line 118
echo "
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"";
// line 123
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\">ポケモン</a>
<ul>
";
// line 125
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories", $context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.', 125, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
// line 126
echo " <li>";
echo twig_call_macro($macros["__internal_parse_0"], "macro_tree", [$context["Category"]], 126, $context, $this->getSourceContext());
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 128
echo " </ul>
</div>
</div>
";
} elseif ((( // line 133
(isset($context["nowparent"]) || array_key_exists("nowparent", $context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.', 133, $this->source); })()) == "ヴァイスシュヴァルツ") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 133, $this->source); })()) == "ヴァイスシュヴァルツ"))) {
// line 134
echo "
";
// line 135
$context["cnt"] = 7;
// line 136
echo "
";
// line 137
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch"));
echo "
";
// line 141
echo " ";
$context["Categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [0 => 9], "method", false, false, false, 141);
// line 142
echo "
";
// line 145
echo " ";
$macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this;
// line 146
echo "
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"";
// line 151
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=9\">シュヴァルツサイド</a>
<ul>
";
// line 153
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories", $context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.', 153, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
// line 154
echo " <li>";
echo twig_call_macro($macros["__internal_parse_1"], "macro_tree", [$context["Category"]], 154, $context, $this->getSourceContext());
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 156
echo " </ul>
</div>
</div>
";
// line 163
echo " ";
$context["Categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [0 => 10], "method", false, false, false, 163);
// line 164
echo " ";
// line 165
echo " ";
$macros["__internal_parse_2"] = $this->macros["__internal_parse_2"] = $this;
// line 166
echo "
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"";
// line 170
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=10\">ヴァイスサイド</a>
<ul>
";
// line 172
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories", $context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.', 172, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
// line 173
echo " <li>";
echo twig_call_macro($macros["__internal_parse_2"], "macro_tree", [$context["Category"]], 173, $context, $this->getSourceContext());
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 175
echo " </ul>
</div>
</div>
";
} else {
// line 181
echo " <div class=\"mob-topnav\">
<div class=\"title-box\">
<a href=\"";
// line 183
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html", null, true);
echo "\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"";
// line 187
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"";
// line 193
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=219\">売る</a>
</div>
</div>
</div>
</div>
<div class=\"title-box\">
<a href=\"";
// line 200
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html", null, true);
echo "\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"";
// line 204
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=8\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"";
// line 210
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=218\">売る</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"mob-topnsearch\">
";
// line 219
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch"));
echo "
</div>
";
}
// line 224
echo "
";
} elseif (( // line 226
(isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 226, $this->source); })()) == "買い取り")) {
// line 227
echo "
<!--現在のカテゴリID取得-->
";
// line 230
$context["now_id"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 230, $this->source); })()), "request", [], "any", false, false, false, 230), "query", [], "any", false, false, false, 230), "get", [0 => "category_id"], "method", false, false, false, 230);
// line 231
echo " <!--買い取り配下のカテゴリ取得-->
";
// line 232
$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.', 232, $this->source); })()), "getDescendants", [], "any", false, false, false, 232);
// line 233
echo " <!--ルート表示-->
<!-- 現在カテゴリーから、親カテゴリに遡り「買い取り>ポケモンまで遡りたい」 -->
<!--現在カテゴリの上のカテゴリを取得 -->
";
// line 238
$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.', 238, $this->source); })()), "getParent", [], "method", false, false, false, 238);
// line 239
echo " ";
$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.', 239, $this->source); })()), "hierarchy", [], "any", false, false, false, 239) - 1);
// line 240
echo "
<!--孫カテゴリ時に子カテゴリが表示された場合は親カテゴリへ -->
";
// line 242
if ((((isset($context["nowparent"]) || array_key_exists("nowparent", $context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.', 242, $this->source); })()) == "シュヴァルツサイド") || ((isset($context["nowparent"]) || array_key_exists("nowparent", $context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.', 242, $this->source); })()) == "ヴァイスサイド"))) {
// line 243
echo " ";
$context["nowparent"] = "ヴァイスシュヴァルツ";
// line 244
echo " ";
}
// line 245
echo "
";
// line 246
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["cate_childs"]) || array_key_exists("cate_childs", $context) ? $context["cate_childs"] : (function () { throw new RuntimeError('Variable "cate_childs" does not exist.', 246, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["cate"]) {
// line 247
echo " ";
if (((isset($context["h"]) || array_key_exists("h", $context) ? $context["h"] : (function () { throw new RuntimeError('Variable "h" does not exist.', 247, $this->source); })()) == twig_get_attribute($this->env, $this->source, $context["cate"], "hierarchy", [], "any", false, false, false, 247))) {
// line 248
echo " ";
// line 249
echo " ";
}
// line 250
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cate'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 251
echo "
";
// line 252
if ((((isset($context["nowparent"]) || array_key_exists("nowparent", $context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.', 252, $this->source); })()) == "ポケモン") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 252, $this->source); })()) == "ポケモン"))) {
// line 253
echo "
";
// line 254
$context["cnt"] = 7;
// line 255
echo "
";
// line 256
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch_buy"));
echo "
";
// line 258
echo " ";
$context["Categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [0 => 219], "method", false, false, false, 258);
// line 259
echo "
";
// line 261
echo " ";
$macros["__internal_parse_3"] = $this->macros["__internal_parse_3"] = $this;
// line 262
echo "
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"";
// line 265
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\">ポケモン</a>
<ul>
";
// line 267
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories", $context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.', 267, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
// line 268
echo " <li>";
echo twig_call_macro($macros["__internal_parse_3"], "macro_tree", [$context["Category"]], 268, $context, $this->getSourceContext());
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 270
echo " </ul>
</div>
</div>
";
} elseif ((( // line 277
(isset($context["nowparent"]) || array_key_exists("nowparent", $context) ? $context["nowparent"] : (function () { throw new RuntimeError('Variable "nowparent" does not exist.', 277, $this->source); })()) == "ヴァイスシュヴァルツ") || ((isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 277, $this->source); })()) == "ヴァイスシュヴァルツ"))) {
// line 278
echo " ";
$context["cnt"] = 7;
// line 279
echo "
";
// line 280
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch_buy"));
echo "
";
// line 284
echo " ";
$context["Categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [0 => 221], "method", false, false, false, 284);
// line 285
echo "
";
// line 288
echo " ";
$macros["__internal_parse_4"] = $this->macros["__internal_parse_4"] = $this;
// line 289
echo "
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"";
// line 294
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=9\">シュヴァルツサイド</a>
<ul>
";
// line 296
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories", $context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.', 296, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
// line 297
echo " <li>";
echo twig_call_macro($macros["__internal_parse_4"], "macro_tree", [$context["Category"]], 297, $context, $this->getSourceContext());
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 299
echo " </ul>
</div>
</div>
";
// line 306
echo " ";
$context["Categories"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "findByParentSorted", [0 => 220], "method", false, false, false, 306);
// line 307
echo " ";
// line 308
echo " ";
$macros["__internal_parse_5"] = $this->macros["__internal_parse_5"] = $this;
// line 309
echo "
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"";
// line 313
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=10\">ヴァイスサイド</a>
<ul>
";
// line 315
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Categories"]) || array_key_exists("Categories", $context) ? $context["Categories"] : (function () { throw new RuntimeError('Variable "Categories" does not exist.', 315, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
// line 316
echo " <li>";
echo twig_call_macro($macros["__internal_parse_5"], "macro_tree", [$context["Category"]], 316, $context, $this->getSourceContext());
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 318
echo " </ul>
</div>
</div>
";
// line 340
echo "
";
} else {
// line 342
echo " <div class=\"mob-topnav\">
<div class=\"title-box\">
<a href=\"";
// line 344
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html", null, true);
echo "\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"";
// line 348
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"";
// line 354
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=219\">売る</a>
</div>
</div>
</div>
</div>
<div class=\"title-box\">
<a href=\"";
// line 361
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html", null, true);
echo "\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"";
// line 365
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=8\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"";
// line 371
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=218\">売る</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"mob-topnsearch\">
";
// line 380
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch_buy"));
echo "
</div>
";
}
// line 383
echo " ";
} else {
// line 384
echo "\t<div class=\"mob-topnav\">
\t<div class=\"title-box\">
<a href=\"";
// line 386
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=708\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/box.png"), "html", null, true);
echo "\" alt=\"新品&中古box\"></a>
<div class=\"sbbtn-box\">
<div class=\"nbbtn\">
<div>
<a href=\"";
// line 390
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=708\">新品BOX</a>
</div>
</div>
<div class=\"ubbtn\">
<div>
<a href=\"";
// line 396
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=708\">予約BOX</a>
</div>
</div>
</div>
</div>
<div class=\"title-box\">
<a href=\"";
// line 404
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html", null, true);
echo "\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"";
// line 408
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"";
// line 414
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=219\">売る</a>
</div>
</div>
</div>
</div>
\t\t\t\t\t
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t<div class=\"mob-topnav mob-topnav_sec\">
\t\t\t\t\t
<div class=\"title-box\">
<a href=\"";
// line 426
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html", null, true);
echo "\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"";
// line 430
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=8\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"";
// line 436
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=218\">売る</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"mob-topnsearch\">
";
// line 445
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch_buy"));
echo "
</div>
";
}
} else {
// line 450
echo " <div class=\"mob-topnav\">
<div class=\"title-box\">
<a href=\"";
// line 452
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/poke.png"), "html", null, true);
echo "\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"";
// line 456
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=7\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"";
// line 462
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=219\">売る</a>
</div>
</div>
</div>
</div>
<div class=\"title-box\">
<a href=\"";
// line 469
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=8\" class=\"titlebtn\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/weis.png"), "html", null, true);
echo "\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"";
// line 473
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=8\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"";
// line 479
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "products/list?category_id=218\">売る</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"mob-topnsearch\">
";
// line 488
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_side_serch"));
echo "
</div>
";
}
// line 491
echo "
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 20
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 21
echo "
<script>
\$(function() {
";
// line 25
if (((((isset($context["RootCategory"]) || array_key_exists("RootCategory", $context) ? $context["RootCategory"] : (function () { throw new RuntimeError('Variable "RootCategory" does not exist.', 25, $this->source); })()) == "買い取り") || twig_in_filter("id=217", (isset($context["request_uri"]) || array_key_exists("request_uri", $context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.', 25, $this->source); })()))) || twig_in_filter("id=218", (isset($context["request_uri"]) || array_key_exists("request_uri", $context) ? $context["request_uri"] : (function () { throw new RuntimeError('Variable "request_uri" does not exist.', 25, $this->source); })())))) {
// line 26
echo "
\$('.cat_mob_top-content-box').css('background-color','#22b573');
\$('.mob_top-content-box').css('background-color','#22b573');
";
}
// line 30
echo "
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 492
public function macro_tree($__Category__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"Category" => $__Category__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
// line 493
echo " ";
$macros["__internal_parse_7"] = $this;
// line 494
echo "
<a href=\"";
// line 495
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, 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.', 495, $this->source); })()), "id", [], "any", false, false, false, 495), "html", null, true);
echo "\">
";
// line 496
echo twig_escape_filter($this->env, 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.', 496, $this->source); })()), "name", [], "any", false, false, false, 496), "html", null, true);
echo "
</a>
";
// line 498
if ((twig_length_filter($this->env, 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.', 498, $this->source); })()), "children", [], "any", false, false, false, 498)) > 0)) {
// line 499
echo " <ul>
";
// line 500
$context['_parent'] = $context;
$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.', 500, $this->source); })()), "children", [], "any", false, false, false, 500));
foreach ($context['_seq'] as $context["_key"] => $context["ChildCategory"]) {
// line 501
echo " <li>
";
// line 502
echo twig_call_macro($macros["__internal_parse_7"], "macro_tree", [$context["ChildCategory"]], 502, $context, $this->getSourceContext());
echo "
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ChildCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 505
echo " </ul>
";
}
// line 507
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "Block/mob_cat_nav.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1031 => 507, 1027 => 505, 1018 => 502, 1015 => 501, 1011 => 500, 1008 => 499, 1006 => 498, 1001 => 496, 995 => 495, 992 => 494, 989 => 493, 970 => 492, 956 => 30, 950 => 26, 948 => 25, 942 => 21, 932 => 20, 921 => 491, 915 => 488, 903 => 479, 894 => 473, 885 => 469, 875 => 462, 866 => 456, 857 => 452, 853 => 450, 845 => 445, 833 => 436, 824 => 430, 815 => 426, 800 => 414, 791 => 408, 782 => 404, 771 => 396, 762 => 390, 753 => 386, 749 => 384, 746 => 383, 740 => 380, 728 => 371, 719 => 365, 710 => 361, 700 => 354, 691 => 348, 682 => 344, 678 => 342, 674 => 340, 667 => 318, 658 => 316, 654 => 315, 649 => 313, 643 => 309, 640 => 308, 638 => 307, 635 => 306, 627 => 299, 618 => 297, 614 => 296, 609 => 294, 602 => 289, 599 => 288, 595 => 285, 592 => 284, 586 => 280, 583 => 279, 580 => 278, 578 => 277, 569 => 270, 560 => 268, 556 => 267, 551 => 265, 546 => 262, 543 => 261, 540 => 259, 537 => 258, 533 => 256, 530 => 255, 528 => 254, 525 => 253, 523 => 252, 520 => 251, 514 => 250, 511 => 249, 509 => 248, 506 => 247, 502 => 246, 499 => 245, 496 => 244, 493 => 243, 491 => 242, 487 => 240, 484 => 239, 482 => 238, 475 => 233, 473 => 232, 470 => 231, 468 => 230, 463 => 227, 461 => 226, 457 => 224, 449 => 219, 437 => 210, 428 => 204, 419 => 200, 409 => 193, 400 => 187, 391 => 183, 387 => 181, 379 => 175, 370 => 173, 366 => 172, 361 => 170, 355 => 166, 352 => 165, 350 => 164, 347 => 163, 339 => 156, 330 => 154, 326 => 153, 321 => 151, 314 => 146, 311 => 145, 307 => 142, 304 => 141, 298 => 137, 295 => 136, 293 => 135, 290 => 134, 288 => 133, 281 => 128, 272 => 126, 268 => 125, 263 => 123, 256 => 118, 253 => 117, 249 => 114, 246 => 113, 240 => 109, 237 => 108, 234 => 107, 232 => 106, 229 => 105, 223 => 104, 220 => 103, 218 => 102, 215 => 101, 211 => 100, 208 => 99, 205 => 98, 202 => 97, 200 => 96, 196 => 94, 193 => 93, 191 => 92, 184 => 87, 182 => 86, 179 => 85, 177 => 84, 174 => 83, 172 => 82, 165 => 78, 153 => 69, 144 => 63, 135 => 59, 125 => 52, 116 => 46, 107 => 42, 103 => 40, 101 => 39, 98 => 38, 96 => 37, 92 => 35, 89 => 20, 87 => 19, 83 => 17, 79 => 15, 76 => 14, 72 => 12, 69 => 11, 67 => 10, 64 => 9, 61 => 8, 59 => 7, 56 => 6, 53 => 5, 51 => 4, 49 => 3, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% set hasCategory = false %}
{% set request_uri = app.request.server.get('REQUEST_URI') %}
{% if 'name=' in request_uri %}
{% set hasCategory = false %}
{% set RootCategory = \"\" %}
{% elseif 'name=' in request_uri and Category != \"\" %}
{% set hasCategory = true %}
{% set RootCategory = Category.RootCategory %}
{% elseif Category != \"\" %}
{% set hasCategory = true %}
{% set RootCategory = Category.RootCategory %}
{% else %}
{% set hasCategory = false %}
{% set RootCategory = \"\" %}
{% endif %}
{% if Category != \"\" %}
{% block javascript %}
<script>
\$(function() {
{% if RootCategory == \"買い取り\" or 'id=217' in request_uri or 'id=218' in request_uri%}
\$('.cat_mob_top-content-box').css('background-color','#22b573');
\$('.mob_top-content-box').css('background-color','#22b573');
{% endif %}
});
</script>
{% endblock %}
{% set RootCategory = Category.RootCategory %}
{% if RootCategory == '新入荷' or RootCategory == \"おすすめ商品\" %}
<div class=\"mob-topnav\">
<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
</div>
</div>
</div>
</div>
<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"mob-topnsearch\">
{{ render(path('block_side_serch')) }}
</div>
{% elseif RootCategory == '販売' %}
<!--現在のカテゴリID取得-->
{% set now_id = app.request.query.get('category_id') %}
<!--買い取り配下のカテゴリ取得-->
{% set cate_childs = RootCategory.getDescendants %}
<!--ルート表示-->
<!-- 現在カテゴリーから、親カテゴリに遡り「買い取り>ポケモンまで遡りたい」 -->
<!--現在カテゴリの上のカテゴリを取得 -->
{% set nowparent = Category.getParent() %}
{% set h = Category.hierarchy - 1 %}
<!--孫カテゴリ時に子カテゴリが表示された場合は親カテゴリへ -->
{% if nowparent == \"シュヴァルツサイド\" or nowparent == \"ヴァイスサイド\" %}
{% set nowparent = \"ヴァイスシュヴァルツ\" %}
{% endif %}
{% for cate in cate_childs %}
{% if h == cate.hierarchy %}
{# cate.name #}
{% endif %}
{% endfor %}
{% if nowparent == \"ポケモン\" or Category == \"ポケモン\" %}
{% set cnt = 7 %}
{{ render(path('block_side_serch')) }}
{# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 7}) #}
{% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(7) %}
{# @see https://github.com/bolt/bolt/pull/2388 #}
{% from _self import tree %}
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"{{url('homepage')}}products/list?category_id=7\">ポケモン</a>
<ul>
{% for Category in Categories %}
<li>{{ tree(Category) }}</li>
{% endfor %}
</ul>
</div>
</div>
{% elseif nowparent == \"ヴァイスシュヴァルツ\" or Category == \"ヴァイスシュヴァルツ\" %}
{% set cnt = 7 %}
{{ render(path('block_side_serch')) }}
{# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 9}) #}
{% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(9) %}
{# @see https://github.com/bolt/bolt/pull/2388 #}
{% from _self import tree %}
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"{{url('homepage')}}products/list?category_id=9\">シュヴァルツサイド</a>
<ul>
{% for Category in Categories %}
<li>{{ tree(Category) }}</li>
{% endfor %}
</ul>
</div>
</div>
{# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 10}) #}
{% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(10) %}
{# @see https://github.com/bolt/bolt/pull/2388 #}
{% from _self import tree %}
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"{{url('homepage')}}products/list?category_id=10\">ヴァイスサイド</a>
<ul>
{% for Category in Categories %}
<li>{{ tree(Category) }}</li>
{% endfor %}
</ul>
</div>
</div>
{% else %}
<div class=\"mob-topnav\">
<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
</div>
</div>
</div>
</div>
<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"mob-topnsearch\">
{{ render(path('block_side_serch')) }}
</div>
{% endif %}
{% elseif RootCategory == '買い取り' %}
<!--現在のカテゴリID取得-->
{% set now_id = app.request.query.get('category_id') %}
<!--買い取り配下のカテゴリ取得-->
{% set cate_childs = RootCategory.getDescendants %}
<!--ルート表示-->
<!-- 現在カテゴリーから、親カテゴリに遡り「買い取り>ポケモンまで遡りたい」 -->
<!--現在カテゴリの上のカテゴリを取得 -->
{% set nowparent = Category.getParent() %}
{% set h = Category.hierarchy - 1 %}
<!--孫カテゴリ時に子カテゴリが表示された場合は親カテゴリへ -->
{% if nowparent == \"シュヴァルツサイド\" or nowparent == \"ヴァイスサイド\" %}
{% set nowparent = \"ヴァイスシュヴァルツ\" %}
{% endif %}
{% for cate in cate_childs %}
{% if h == cate.hierarchy %}
{# cate.name #}
{% endif %}
{% endfor %}
{% if nowparent == \"ポケモン\" or Category == \"ポケモン\" %}
{% set cnt = 7 %}
{{ render(path('block_side_serch_buy')) }}
{# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 219}) #}
{% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(219) %}
{# @see https://github.com/bolt/bolt/pull/2388 #}
{% from _self import tree %}
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"{{url('homepage')}}products/list?category_id=7\">ポケモン</a>
<ul>
{% for Category in Categories %}
<li>{{ tree(Category) }}</li>
{% endfor %}
</ul>
</div>
</div>
{% elseif nowparent == \"ヴァイスシュヴァルツ\" or Category == \"ヴァイスシュヴァルツ\" %}
{% set cnt = 7 %}
{{ render(path('block_side_serch_buy')) }}
{# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 221}) #}
{% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(221) %}
{# @see https://github.com/bolt/bolt/pull/2388 #}
{% from _self import tree %}
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"{{url('homepage')}}products/list?category_id=9\">シュヴァルツサイド</a>
<ul>
{% for Category in Categories %}
<li>{{ tree(Category) }}</li>
{% endfor %}
</ul>
</div>
</div>
{# set Categories = repository('Eccube\\\\Entity\\\\Category').findBy({'Parent' : 220}) #}
{% set Categories = repository('Eccube\\\\Entity\\\\Category').findByParentSorted(220) %}
{# @see https://github.com/bolt/bolt/pull/2388 #}
{% from _self import tree %}
<div class=\"side-cat1\">
<div class=\"side-cat-smallbox\">
<a href=\"{{url('homepage')}}products/list?category_id=10\">ヴァイスサイド</a>
<ul>
{% for Category in Categories %}
<li>{{ tree(Category) }}</li>
{% endfor %}
</ul>
</div>
</div>
{% macro tree(Category) %}
{% from _self import tree %}
<a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
{{ Category.name }}
</a>
{% if Category.children|length > 0 %}
<ul>
{% for ChildCategory in Category.children %}
<li>
{{ tree(ChildCategory) }}
</li>
{% endfor %}
</ul>
{% endif %}
{% endmacro %}
{% else %}
<div class=\"mob-topnav\">
<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
</div>
</div>
</div>
</div>
<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"mob-topnsearch\">
{{ render(path('block_side_serch_buy')) }}
</div>
{% endif %}
{% else %}
\t<div class=\"mob-topnav\">
\t<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=708\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/box.png') }}\" alt=\"新品&中古box\"></a>
<div class=\"sbbtn-box\">
<div class=\"nbbtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=708\">新品BOX</a>
</div>
</div>
<div class=\"ubbtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=708\">予約BOX</a>
</div>
</div>
</div>
</div>
<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
</div>
</div>
</div>
</div>
\t\t\t\t\t
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t\t<div class=\"mob-topnav mob-topnav_sec\">
\t\t\t\t\t
<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"mob-topnsearch\">
{{ render(path('block_side_serch_buy')) }}
</div>
{% endif %}
{% else %}
<div class=\"mob-topnav\">
<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=7\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/poke.png') }}\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=7\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=219\">売る</a>
</div>
</div>
</div>
</div>
<div class=\"title-box\">
<a href=\"{{url('homepage')}}products/list?category_id=8\" class=\"titlebtn\"><img src=\"{{ asset('/html/user_data/assets/img/weis.png') }}\" alt=\"\"></a>
<div class=\"sbbtn-box\">
<div class=\"salebtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=8\">買う</a>
</div>
</div>
<div class=\"buybtn\">
<div>
<a href=\"{{url('homepage')}}products/list?category_id=218\">売る</a>
</div>
</div>
</div>
</div>
</div>
<div class=\"mob-topnsearch\">
{{ render(path('block_side_serch')) }}
</div>
{% endif %}
{% macro tree(Category) %}
{% from _self import tree %}
<a href=\"{{ url('product_list') }}?category_id={{ Category.id }}\">
{{ Category.name }}
</a>
{% if Category.children|length > 0 %}
<ul>
{% for ChildCategory in Category.children %}
<li>
{{ tree(ChildCategory) }}
</li>
{% endfor %}
</ul>
{% endif %}
{% endmacro %}", "Block/mob_cat_nav.twig", "/home/northserver/tcg-mana.com/public_html/app/template/default/Block/mob_cat_nav.twig");
}
}