<?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;
/* Blog/list.twig */
class __TwigTemplate_b5a9d28b3af375a04237a29945913bc3ad35d27eaea61f487f159526770074d5 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "default_frame.twig";
}
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", "Blog/list.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Blog/list.twig"));
// line 3
$context["body_class"] = "blogs_page";
// line 4
$context["wrap_class"] = "blogWrap";
// line 5
$context["footerBrandListFlg"] = true;
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "Blog/list.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 7
public function block_stylesheet($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", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 8
echo "<link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/contents.css"), "html", null, true);
echo "\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_main($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", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 12
echo "\t";
if (( !(isset($context["shop"]) || array_key_exists("shop", $context)) || (null === (isset($context["shop"]) || array_key_exists("shop", $context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.', 12, $this->source); })())))) {
// line 13
echo "\t";
echo twig_include($this->env, $context, "Block/header.twig");
echo "
\t";
} else {
// line 15
echo "\t";
echo twig_include($this->env, $context, "Block/header_shop.twig");
echo "
\t";
}
// line 17
echo " <!-- BLOG -->
<div class=\"conts\">
<h2 class=\"h2Normal\">BLOG</h2>
<p class=\"txt14 ls6 tarS mt25P\">ブログ</p>
</div>
<section class=\"blog\">
";
// line 23
$context["i"] = 0;
// line 24
echo " ";
if (((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 24, $this->source); })()) == "1")) {
// line 25
echo " <div class=\"lastest-blogs--wrapper over-hidden\">
<ul class=\"lastest-blogs--list flex-list--wrapper\">
";
// line 27
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, 1));
foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
// line 28
echo " ";
$context["i"] = ((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 28, $this->source); })()) + 1);
// line 29
echo " <li>
<a href=\"";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_detail", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["Blogs"]) || array_key_exists("Blogs", $context) ? $context["Blogs"] : (function () { throw new RuntimeError('Variable "Blogs" does not exist.', 30, $this->source); })()), $context["j"], [], "array", false, false, false, 30), "id", [], "any", false, false, false, 30)]), "html", null, true);
echo "\">
";
// line 31
$context["thumbnail_url"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["Blogs"]) || array_key_exists("Blogs", $context) ? $context["Blogs"] : (function () { throw new RuntimeError('Variable "Blogs" does not exist.', 31, $this->source); })()), $context["j"], [], "array", false, false, false, 31), "thumbnail", [], "any", false, false, false, 31);
// line 32
echo " ";
if (twig_test_empty((isset($context["thumbnail_url"]) || array_key_exists("thumbnail_url", $context) ? $context["thumbnail_url"] : (function () { throw new RuntimeError('Variable "thumbnail_url" does not exist.', 32, $this->source); })()))) {
// line 33
echo " ";
$context["thumbnail_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("no_image_product.png", "save_image");
// line 34
echo " ";
}
// line 35
echo " <div class=\"blog-thumbnail\" style=\"background-image:url('";
echo twig_escape_filter($this->env, (isset($context["thumbnail_url"]) || array_key_exists("thumbnail_url", $context) ? $context["thumbnail_url"] : (function () { throw new RuntimeError('Variable "thumbnail_url" does not exist.', 35, $this->source); })()), "html", null, true);
echo "')\"></div>
<h3 class=\"title\">
<span>";
// line 37
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["Blogs"]) || array_key_exists("Blogs", $context) ? $context["Blogs"] : (function () { throw new RuntimeError('Variable "Blogs" does not exist.', 37, $this->source); })()), $context["j"], [], "array", false, false, false, 37), "title", [], "any", false, false, false, 37);
echo "</span>
<span class=\"cat_name\">
";
// line 39
if (( !(isset($context["shop"]) || array_key_exists("shop", $context)) || (null === (isset($context["shop"]) || array_key_exists("shop", $context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.', 39, $this->source); })())))) {
// line 40
echo " ";
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["Blogs"]) || array_key_exists("Blogs", $context) ? $context["Blogs"] : (function () { throw new RuntimeError('Variable "Blogs" does not exist.', 40, $this->source); })()), $context["j"], [], "array", false, false, false, 40), "cat_name", [], "any", false, false, false, 40);
echo "
";
} else {
// line 42
echo " ";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, (isset($context["shop"]) || array_key_exists("shop", $context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.', 42, $this->source); })())), "html", null, true);
echo "
";
}
// line 44
echo " </span>
</h3>
<p class=\"date\">";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["Blogs"]) || array_key_exists("Blogs", $context) ? $context["Blogs"] : (function () { throw new RuntimeError('Variable "Blogs" does not exist.', 46, $this->source); })()), $context["j"], [], "array", false, false, false, 46), "date", [], "any", false, false, false, 46), "html", null, true);
echo "</p>
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 50
echo " </ul>
</div>
";
}
// line 53
echo " <div class=\"spWidth\">
<div class=\"blogs--wrapper over-hidden\">
<ul class=\"blogs--list flex-list--wrapper\">
";
// line 56
$context["continue"] = false;
// line 57
echo " ";
$context["k"] = 0;
// line 58
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Blogs"]) || array_key_exists("Blogs", $context) ? $context["Blogs"] : (function () { throw new RuntimeError('Variable "Blogs" does not exist.', 58, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Blog"]) {
// line 59
echo " ";
$context["continue"] = false;
// line 60
echo " ";
if (((isset($context["k"]) || array_key_exists("k", $context) ? $context["k"] : (function () { throw new RuntimeError('Variable "k" does not exist.', 60, $this->source); })()) < (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 60, $this->source); })()))) {
// line 61
echo " ";
$context["k"] = ((isset($context["k"]) || array_key_exists("k", $context) ? $context["k"] : (function () { throw new RuntimeError('Variable "k" does not exist.', 61, $this->source); })()) + 1);
// line 62
echo " ";
$context["continue"] = true;
// line 63
echo " ";
}
// line 64
echo " ";
if (((isset($context["continue"]) || array_key_exists("continue", $context) ? $context["continue"] : (function () { throw new RuntimeError('Variable "continue" does not exist.', 64, $this->source); })()) == false)) {
// line 65
echo " <li>
<a href=\"";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["Blog"], "id", [], "any", false, false, false, 66)]), "html", null, true);
echo "\">
";
// line 67
$context["thumbnail_url"] = twig_get_attribute($this->env, $this->source, $context["Blog"], "thumbnail", [], "any", false, false, false, 67);
// line 68
echo " ";
if (twig_test_empty((isset($context["thumbnail_url"]) || array_key_exists("thumbnail_url", $context) ? $context["thumbnail_url"] : (function () { throw new RuntimeError('Variable "thumbnail_url" does not exist.', 68, $this->source); })()))) {
// line 69
echo " ";
$context["thumbnail_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("no_image_product.png", "save_image");
// line 70
echo " ";
}
// line 71
echo " <div class=\"blog-thumbnail\" style=\"background-image:url('";
echo twig_escape_filter($this->env, (isset($context["thumbnail_url"]) || array_key_exists("thumbnail_url", $context) ? $context["thumbnail_url"] : (function () { throw new RuntimeError('Variable "thumbnail_url" does not exist.', 71, $this->source); })()), "html", null, true);
echo "')\"></div>
<h3 class=\"title\">
<span>";
// line 73
echo twig_get_attribute($this->env, $this->source, $context["Blog"], "title", [], "any", false, false, false, 73);
echo "</span>
<span class=\"cat_name\">
";
// line 75
if (( !(isset($context["shop"]) || array_key_exists("shop", $context)) || (null === (isset($context["shop"]) || array_key_exists("shop", $context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.', 75, $this->source); })())))) {
// line 76
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["Blog"], "cat_name", [], "any", false, false, false, 76);
echo "
";
} else {
// line 78
echo " ";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, (isset($context["shop"]) || array_key_exists("shop", $context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.', 78, $this->source); })())), "html", null, true);
echo "
";
}
// line 80
echo " </span>
</h3>
<p class=\"date\">";
// line 82
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Blog"], "date", [], "any", false, false, false, 82), "html", null, true);
echo "</p>
</a>
</li>
";
}
// line 86
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Blog'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 87
echo " </ul>
</div>
</section>
";
// line 90
if (((isset($context["max_page_num"]) || array_key_exists("max_page_num", $context) ? $context["max_page_num"] : (function () { throw new RuntimeError('Variable "max_page_num" does not exist.', 90, $this->source); })()) > 1)) {
// line 91
echo " ";
// line 92
echo " ";
$context["extremePagesLimit"] = 3;
// line 93
echo "
";
// line 95
echo " ";
$context["nearbyPagesLimit"] = 2;
// line 96
echo "
<div class=\"pagination\">
";
// line 98
if (((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 98, $this->source); })()) > 1)) {
// line 99
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 99, $this->source); })()), "request", [], "any", false, false, false, 99), "attributes", [], "any", false, false, false, 99), "get", [0 => "_route"], "method", false, false, false, 99), twig_array_merge(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.', 99, $this->source); })()), "request", [], "any", false, false, false, 99), "query", [], "any", false, false, false, 99), "all", [], "any", false, false, false, 99), ["pageno" => 1])), "html", null, true);
echo "\" class=\"first-pagination-link\">
<i class=\"fas fa-angle-double-left\"></i>
</a>
<a href=\"";
// line 102
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 102, $this->source); })()), "request", [], "any", false, false, false, 102), "attributes", [], "any", false, false, false, 102), "get", [0 => "_route"], "method", false, false, false, 102), twig_array_merge(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.', 102, $this->source); })()), "request", [], "any", false, false, false, 102), "query", [], "any", false, false, false, 102), "all", [], "any", false, false, false, 102), ["pageno" => ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 102, $this->source); })()) - 1)])), "html", null, true);
echo "\" class=\"prev-pagination-link\">
<i class=\"fas fa-angle-left\"></i>
</a>
";
// line 106
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, (isset($context["extremePagesLimit"]) || array_key_exists("extremePagesLimit", $context) ? $context["extremePagesLimit"] : (function () { throw new RuntimeError('Variable "extremePagesLimit" does not exist.', 106, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
if (($context["i"] < ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 106, $this->source); })()) - (isset($context["nearbyPagesLimit"]) || array_key_exists("nearbyPagesLimit", $context) ? $context["nearbyPagesLimit"] : (function () { throw new RuntimeError('Variable "nearbyPagesLimit" does not exist.', 106, $this->source); })())))) {
// line 107
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 107, $this->source); })()), "request", [], "any", false, false, false, 107), "attributes", [], "any", false, false, false, 107), "get", [0 => "_route"], "method", false, false, false, 107), twig_array_merge(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.', 107, $this->source); })()), "request", [], "any", false, false, false, 107), "query", [], "any", false, false, false, 107), "all", [], "any", false, false, false, 107), ["pageno" => $context["i"]])), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 109
echo "
";
// line 110
if ((((isset($context["extremePagesLimit"]) || array_key_exists("extremePagesLimit", $context) ? $context["extremePagesLimit"] : (function () { throw new RuntimeError('Variable "extremePagesLimit" does not exist.', 110, $this->source); })()) + 1) < ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 110, $this->source); })()) - (isset($context["nearbyPagesLimit"]) || array_key_exists("nearbyPagesLimit", $context) ? $context["nearbyPagesLimit"] : (function () { throw new RuntimeError('Variable "nearbyPagesLimit" does not exist.', 110, $this->source); })())))) {
// line 111
echo " <span class=\"sep-dots\">...</span>
";
}
// line 113
echo "
";
// line 114
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 114, $this->source); })()) - (isset($context["nearbyPagesLimit"]) || array_key_exists("nearbyPagesLimit", $context) ? $context["nearbyPagesLimit"] : (function () { throw new RuntimeError('Variable "nearbyPagesLimit" does not exist.', 114, $this->source); })())), ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 114, $this->source); })()) - 1)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
if (($context["i"] > 0)) {
// line 115
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 115, $this->source); })()), "request", [], "any", false, false, false, 115), "attributes", [], "any", false, false, false, 115), "get", [0 => "_route"], "method", false, false, false, 115), twig_array_merge(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.', 115, $this->source); })()), "request", [], "any", false, false, false, 115), "query", [], "any", false, false, false, 115), "all", [], "any", false, false, false, 115), ["pageno" => $context["i"]])), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 117
echo " ";
}
// line 118
echo "
<a href=\"";
// line 119
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 119, $this->source); })()), "request", [], "any", false, false, false, 119), "attributes", [], "any", false, false, false, 119), "get", [0 => "_route"], "method", false, false, false, 119), twig_array_merge(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.', 119, $this->source); })()), "request", [], "any", false, false, false, 119), "query", [], "any", false, false, false, 119), "all", [], "any", false, false, false, 119), ["pageno" => (isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 119, $this->source); })())])), "html", null, true);
echo "\"
class=\"active\">";
// line 120
echo twig_escape_filter($this->env, (isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 120, $this->source); })()), "html", null, true);
echo "</a>
";
// line 122
if (((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 122, $this->source); })()) < (isset($context["max_page_num"]) || array_key_exists("max_page_num", $context) ? $context["max_page_num"] : (function () { throw new RuntimeError('Variable "max_page_num" does not exist.', 122, $this->source); })()))) {
// line 123
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 123, $this->source); })()) + 1), ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 123, $this->source); })()) + (isset($context["nearbyPagesLimit"]) || array_key_exists("nearbyPagesLimit", $context) ? $context["nearbyPagesLimit"] : (function () { throw new RuntimeError('Variable "nearbyPagesLimit" does not exist.', 123, $this->source); })()))));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
if (($context["i"] <= (isset($context["max_page_num"]) || array_key_exists("max_page_num", $context) ? $context["max_page_num"] : (function () { throw new RuntimeError('Variable "max_page_num" does not exist.', 123, $this->source); })()))) {
// line 124
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 124, $this->source); })()), "request", [], "any", false, false, false, 124), "attributes", [], "any", false, false, false, 124), "get", [0 => "_route"], "method", false, false, false, 124), twig_array_merge(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.', 124, $this->source); })()), "request", [], "any", false, false, false, 124), "query", [], "any", false, false, false, 124), "all", [], "any", false, false, false, 124), ["pageno" => $context["i"]])), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 126
echo "
";
// line 127
if ((((isset($context["max_page_num"]) || array_key_exists("max_page_num", $context) ? $context["max_page_num"] : (function () { throw new RuntimeError('Variable "max_page_num" does not exist.', 127, $this->source); })()) - (isset($context["extremePagesLimit"]) || array_key_exists("extremePagesLimit", $context) ? $context["extremePagesLimit"] : (function () { throw new RuntimeError('Variable "extremePagesLimit" does not exist.', 127, $this->source); })())) > ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 127, $this->source); })()) + (isset($context["nearbyPagesLimit"]) || array_key_exists("nearbyPagesLimit", $context) ? $context["nearbyPagesLimit"] : (function () { throw new RuntimeError('Variable "nearbyPagesLimit" does not exist.', 127, $this->source); })())))) {
// line 128
echo " <span class=\"sep-dots\">...</span>
";
}
// line 130
echo "
";
// line 131
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range((((isset($context["max_page_num"]) || array_key_exists("max_page_num", $context) ? $context["max_page_num"] : (function () { throw new RuntimeError('Variable "max_page_num" does not exist.', 131, $this->source); })()) - (isset($context["extremePagesLimit"]) || array_key_exists("extremePagesLimit", $context) ? $context["extremePagesLimit"] : (function () { throw new RuntimeError('Variable "extremePagesLimit" does not exist.', 131, $this->source); })())) + 1), (isset($context["max_page_num"]) || array_key_exists("max_page_num", $context) ? $context["max_page_num"] : (function () { throw new RuntimeError('Variable "max_page_num" does not exist.', 131, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
if (($context["i"] > ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 131, $this->source); })()) + (isset($context["nearbyPagesLimit"]) || array_key_exists("nearbyPagesLimit", $context) ? $context["nearbyPagesLimit"] : (function () { throw new RuntimeError('Variable "nearbyPagesLimit" does not exist.', 131, $this->source); })())))) {
// line 132
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 132, $this->source); })()), "request", [], "any", false, false, false, 132), "attributes", [], "any", false, false, false, 132), "get", [0 => "_route"], "method", false, false, false, 132), twig_array_merge(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.', 132, $this->source); })()), "request", [], "any", false, false, false, 132), "query", [], "any", false, false, false, 132), "all", [], "any", false, false, false, 132), ["pageno" => $context["i"]])), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 134
echo "
<a href=\"";
// line 135
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 135, $this->source); })()), "request", [], "any", false, false, false, 135), "attributes", [], "any", false, false, false, 135), "get", [0 => "_route"], "method", false, false, false, 135), twig_array_merge(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.', 135, $this->source); })()), "request", [], "any", false, false, false, 135), "query", [], "any", false, false, false, 135), "all", [], "any", false, false, false, 135), ["pageno" => ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 135, $this->source); })()) + 1)])), "html", null, true);
echo "\" class=\"next-pagination-link\">
<i class=\"fas fa-angle-right\"></i>
</a>
<a href=\"";
// line 138
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 138, $this->source); })()), "request", [], "any", false, false, false, 138), "attributes", [], "any", false, false, false, 138), "get", [0 => "_route"], "method", false, false, false, 138), twig_array_merge(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.', 138, $this->source); })()), "request", [], "any", false, false, false, 138), "query", [], "any", false, false, false, 138), "all", [], "any", false, false, false, 138), ["pageno" => (isset($context["max_page_num"]) || array_key_exists("max_page_num", $context) ? $context["max_page_num"] : (function () { throw new RuntimeError('Variable "max_page_num" does not exist.', 138, $this->source); })())])), "html", null, true);
echo "\" class=\"last-pagination-link\">
<i class=\"fas fa-angle-double-right\"></i>
</a>
";
}
// line 142
echo " </div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Blog/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 457 => 142, 450 => 138, 444 => 135, 441 => 134, 429 => 132, 424 => 131, 421 => 130, 417 => 128, 415 => 127, 412 => 126, 400 => 124, 394 => 123, 392 => 122, 387 => 120, 383 => 119, 380 => 118, 377 => 117, 365 => 115, 360 => 114, 357 => 113, 353 => 111, 351 => 110, 348 => 109, 336 => 107, 331 => 106, 324 => 102, 317 => 99, 315 => 98, 311 => 96, 308 => 95, 305 => 93, 302 => 92, 300 => 91, 298 => 90, 293 => 87, 287 => 86, 280 => 82, 276 => 80, 270 => 78, 264 => 76, 262 => 75, 257 => 73, 251 => 71, 248 => 70, 245 => 69, 242 => 68, 240 => 67, 236 => 66, 233 => 65, 230 => 64, 227 => 63, 224 => 62, 221 => 61, 218 => 60, 215 => 59, 210 => 58, 207 => 57, 205 => 56, 200 => 53, 195 => 50, 185 => 46, 181 => 44, 175 => 42, 169 => 40, 167 => 39, 162 => 37, 156 => 35, 153 => 34, 150 => 33, 147 => 32, 145 => 31, 141 => 30, 138 => 29, 135 => 28, 131 => 27, 127 => 25, 124 => 24, 122 => 23, 114 => 17, 108 => 15, 102 => 13, 99 => 12, 89 => 11, 76 => 8, 66 => 7, 55 => 1, 53 => 5, 51 => 4, 49 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% set body_class = 'blogs_page' %}
{% set wrap_class = 'blogWrap' %}
{% set footerBrandListFlg = true %}
{% block stylesheet %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/contents.css') }}\">
{% endblock stylesheet %}
{% block main %}
\t{% if shop is not defined or shop is null %}
\t{{ include('Block/header.twig') }}
\t{% else %}
\t{{ include('Block/header_shop.twig') }}
\t{% endif %}
<!-- BLOG -->
<div class=\"conts\">
<h2 class=\"h2Normal\">BLOG</h2>
<p class=\"txt14 ls6 tarS mt25P\">ブログ</p>
</div>
<section class=\"blog\">
{% set i = 0 %}
{% if currentPage == '1' %}
<div class=\"lastest-blogs--wrapper over-hidden\">
<ul class=\"lastest-blogs--list flex-list--wrapper\">
{% for j in range(0, 1) %}
{% set i = i + 1 %}
<li>
<a href=\"{{ url('blog_detail', {'id': Blogs[j].id}) }}\">
{% set thumbnail_url = Blogs[j].thumbnail %}
{% if thumbnail_url is empty %}
{% set thumbnail_url = asset('no_image_product.png', 'save_image') %}
{% endif %}
<div class=\"blog-thumbnail\" style=\"background-image:url('{{ thumbnail_url }}')\"></div>
<h3 class=\"title\">
<span>{{ Blogs[j].title|raw }}</span>
<span class=\"cat_name\">
{% if shop is not defined or shop is null %}
{{ Blogs[j].cat_name|raw }}
{% else %}
{{ shop|upper }}
{% endif %}
</span>
</h3>
<p class=\"date\">{{ Blogs[j].date }}</p>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
<div class=\"spWidth\">
<div class=\"blogs--wrapper over-hidden\">
<ul class=\"blogs--list flex-list--wrapper\">
{% set continue = false %}
{% set k = 0 %}
{% for Blog in Blogs %}
{% set continue = false %}
{% if k < i %}
{% set k = k + 1 %}
{% set continue = true %}
{% endif %}
{% if continue == false %}
<li>
<a href=\"{{ url('blog_detail', {'id': Blog.id}) }}\">
{% set thumbnail_url = Blog.thumbnail %}
{% if thumbnail_url is empty %}
{% set thumbnail_url = asset('no_image_product.png', 'save_image') %}
{% endif %}
<div class=\"blog-thumbnail\" style=\"background-image:url('{{ thumbnail_url }}')\"></div>
<h3 class=\"title\">
<span>{{ Blog.title|raw }}</span>
<span class=\"cat_name\">
{% if shop is not defined or shop is null %}
{{ Blog.cat_name|raw }}
{% else %}
{{ shop|upper }}
{% endif %}
</span>
</h3>
<p class=\"date\">{{ Blog.date }}</p>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</section>
{% if max_page_num > 1 %}
{# the number of first and last pages to be displayed #}
{% set extremePagesLimit = 3 %}
{# the number of pages that are displayed around the active page #}
{% set nearbyPagesLimit = 2 %}
<div class=\"pagination\">
{% if currentPage > 1 %}
<a href=\"{{ path( app.request.attributes.get('_route'), app.request.query.all|merge({pageno: 1})) }}\" class=\"first-pagination-link\">
<i class=\"fas fa-angle-double-left\"></i>
</a>
<a href=\"{{ path( app.request.attributes.get('_route'), app.request.query.all|merge({pageno: currentPage-1})) }}\" class=\"prev-pagination-link\">
<i class=\"fas fa-angle-left\"></i>
</a>
{% for i in range(1, extremePagesLimit) if ( i < currentPage - nearbyPagesLimit ) %}
<a href=\"{{ path( app.request.attributes.get('_route'), app.request.query.all|merge({pageno: i})) }}\">{{ i }}</a>
{% endfor %}
{% if extremePagesLimit + 1 < currentPage - nearbyPagesLimit %}
<span class=\"sep-dots\">...</span>
{% endif %}
{% for i in range(currentPage-nearbyPagesLimit, currentPage-1) if ( i > 0 ) %}
<a href=\"{{ path( app.request.attributes.get('_route'), app.request.query.all|merge({pageno: i})) }}\">{{ i }}</a>
{% endfor %}
{% endif %}
<a href=\"{{ path( app.request.attributes.get('_route'), app.request.query.all|merge({ pageno: currentPage })) }}\"
class=\"active\">{{ currentPage }}</a>
{% if currentPage < max_page_num %}
{% for i in range(currentPage+1, currentPage + nearbyPagesLimit) if ( i <= max_page_num ) %}
<a href=\"{{ path( app.request.attributes.get('_route'), app.request.query.all|merge({pageno: i})) }}\">{{ i }}</a>
{% endfor %}
{% if (max_page_num - extremePagesLimit) > (currentPage + nearbyPagesLimit) %}
<span class=\"sep-dots\">...</span>
{% endif %}
{% for i in range(max_page_num - extremePagesLimit+1, max_page_num) if ( i > currentPage + nearbyPagesLimit ) %}
<a href=\"{{ path( app.request.attributes.get('_route'), app.request.query.all|merge({pageno: i})) }}\">{{ i }}</a>
{% endfor %}
<a href=\"{{ path( app.request.attributes.get('_route'), app.request.query.all|merge({pageno: currentPage+1})) }}\" class=\"next-pagination-link\">
<i class=\"fas fa-angle-right\"></i>
</a>
<a href=\"{{ path( app.request.attributes.get('_route'), app.request.query.all|merge({pageno: max_page_num})) }}\" class=\"last-pagination-link\">
<i class=\"fas fa-angle-double-right\"></i>
</a>
{% endif %}
</div>
{% endif %}
{% endblock %}
", "Blog/list.twig", "/home/idealinc/idealinc.xsrv.jp/public_html/online/app/template/idealinc/Blog/list.twig");
}
}