<?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/detail.twig */
class __TwigTemplate_081a8b69724d5d20d0ed26406aba2b167dad624a3a7c89bff56b9729090bcdf4 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'],
'javascript' => [$this, 'block_javascript'],
'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/detail.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Blog/detail.twig"));
// line 3
$context["body_class"] = "blog_page";
// line 4
$context["wrap_class"] = "blogDwrap";
// line 5
$context["footerBrandListFlg"] = true;
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "Blog/detail.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_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 12
echo " <script>
eccube.productsClassCategories = {
";
// line 14
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Pickup"]) || array_key_exists("Pickup", $context) ? $context["Pickup"] : (function () { throw new RuntimeError('Variable "Pickup" does not exist.', 14, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["CategoryRecommendProduct"]) {
// line 15
echo " ";
$context["Product"] = $context["CategoryRecommendProduct"];
// line 16
echo " \"";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 16, $this->source); })()), "id", [], "any", false, false, false, 16), "js"), "html", null, true);
echo "\": ";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson((isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 16, $this->source); })()));
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 16) == false)) {
echo ", ";
}
// line 17
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CategoryRecommendProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
echo " };
\$(function() {
\$('.add-cart').on('click', function(event) {
// 規格1フォームの必須チェック
var \$classcategory = \$(this).parents('form').find('select[name=\"classcategory_id1\"]');
if (\$classcategory.length) {
if (\$classcategory.val() == '__unselected' || \$classcategory.val() == '') {
\$classcategory[0].setCustomValidity('";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html", null, true);
echo "');
return true;
} else {
\$classcategory[0].setCustomValidity('');
}
}
// 規格2フォームの必須チェック
var \$classcategory2 = \$(this).parents('form').find('select[name=\"classcategory_id2\"]');
if (\$classcategory2.length) {
if (\$classcategory2.val() == '__unselected' || \$classcategory2.val() == '') {
\$classcategory2[0].setCustomValidity('";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("項目が選択されていません"), "html", null, true);
echo "');
return true;
} else {
\$classcategory2[0].setCustomValidity('');
}
}
// 個数フォームのチェック
var \$quantity = \$(this).parents('form').find('[name=\"quantity\"]');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
return true;
} else {
\$quantity[0].setCustomValidity('');
}
event.preventDefault();
\$form = \$(this).parents('form');
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').html(this);
});
\$('#ec-modal-checkbox').prop('checked', true);
// カートブロックを更新する
\$.ajax({
url: \"";
// line 74
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "\",
type: 'GET',
dataType: 'html'
}).done(function(response) {
let res = JSON.parse(response);
\$('.cart_number').text(res.totalQuantity);
});
}).fail(function(data) {
alert('";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
echo "');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
\$('.slider').slick({
autoplay: true,
autoplaySpeed: 2000,
dots: false,
loop: true,
slidesToShow: 3,
prevArrow: false,
nextArrow: false,
variableWidth: true,
responsive: [
{
breakpoint: 1179,
settings: {
slidesToShow: 2,
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
}
}]
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 116
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 117
echo twig_include($this->env, $context, "Block/header_shop.twig");
echo "
<div class=\"conts\">
<h2 class=\"h2Normal\">BLOG</h2>
<p class=\"txt14 ls6 tarS mt25P\">ブログ</p>
</div>
<!-- MAINVISUAL -->
";
// line 123
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["Blog"]) || array_key_exists("Blog", $context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.', 123, $this->source); })()), "thumbnail", [], "any", false, false, false, 123))) {
// line 124
echo "<div class=\"mainVisualBlogD pcShow\">
<div class=\"c-blog-thumbnail--wrapper\">
<div class=\"c-blog-thumbnail\" style=\"background-image: url('";
// line 126
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Blog"]) || array_key_exists("Blog", $context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.', 126, $this->source); })()), "thumbnail", [], "any", false, false, false, 126), "html", null, true);
echo "')\"></div>
</div>
</div>
<div class=\"mainVisual spShow\">
<img src=\"";
// line 130
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Blog"]) || array_key_exists("Blog", $context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.', 130, $this->source); })()), "thumbnail", [], "any", false, false, false, 130), "html", null, true);
echo "\" alt=\"\">
</div>
";
}
// line 133
echo "<!-- BLOG -->
<section class=\"blogD\">
<div class=\"conts2\">
<p class=\"txt13 ls10\">";
// line 136
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Blog"]) || array_key_exists("Blog", $context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.', 136, $this->source); })()), "date", [], "any", false, false, false, 136), "html", null, true);
echo "</p>
<p class=\"txtBig mt40P mb40P\">";
// line 137
echo twig_get_attribute($this->env, $this->source, (isset($context["Blog"]) || array_key_exists("Blog", $context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.', 137, $this->source); })()), "title", [], "any", false, false, false, 137);
echo "</p>
<div class=\"txtWrap mb40P blog-content\">
";
// line 139
echo nl2br(twig_get_attribute($this->env, $this->source, (isset($context["Blog"]) || array_key_exists("Blog", $context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.', 139, $this->source); })()), "content", [], "any", false, false, false, 139));
echo "
</div>
</div>
</section>
<div class=\"bgColor\">
<!-- PICKUP ITEMS -->
<section class=\"pickupItems\">
<h2 class=\"h2Normal mt60P mb40\">PICKUP ITEMS</h2>
<div class=\"flexWrap slider\">
";
// line 149
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Pickup"]) || array_key_exists("Pickup", $context) ? $context["Pickup"] : (function () { throw new RuntimeError('Variable "Pickup" does not exist.', 149, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["CategoryRecommendProduct"]) {
if ((isset($context["Pickup"]) || array_key_exists("Pickup", $context) ? $context["Pickup"] : (function () { throw new RuntimeError('Variable "Pickup" does not exist.', 149, $this->source); })())) {
// line 150
echo " ";
$context["Product"] = $context["CategoryRecommendProduct"];
// line 151
echo " <div class=\"flex\">
";
// line 152
$context["pickup_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 152, $this->source); })()), "mainFileName", [], "any", false, false, false, 152)), "save_image");
// line 153
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 153, $this->source); })()), "id", [], "any", false, false, false, 153)]), "html", null, true);
echo "\" class=\"pickup-image\" style=\"background-image:url('";
echo twig_escape_filter($this->env, (isset($context["pickup_url"]) || array_key_exists("pickup_url", $context) ? $context["pickup_url"] : (function () { throw new RuntimeError('Variable "pickup_url" does not exist.', 153, $this->source); })()), "html", null, true);
echo "')\"></a>
";
// line 154
$context["brand"] = "";
// line 155
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 155, $this->source); })()), "ProductCategories", [], "any", false, false, false, 155));
foreach ($context['_seq'] as $context["_key"] => $context["ProductCategory"]) {
// line 156
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 156), "Parent", [], "any", false, false, false, 156) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 156), "Parent", [], "any", false, false, false, 156), "id", [], "any", false, false, false, 156) == "3"))) {
// line 157
echo " ";
$context["brand"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ProductCategory"], "Category", [], "any", false, false, false, 157), "name", [], "any", false, false, false, 157);
// line 158
echo " ";
}
// line 159
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ProductCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 160
echo " <div class=\"flexTxt\">
<p class=\"txt12 ls6\">";
// line 161
echo twig_escape_filter($this->env, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 161, $this->source); })()), "html", null, true);
echo "</p>
<p class=\"txt18 ls6 mt15 mb20\">";
// line 162
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 162, $this->source); })()), "name", [], "any", false, false, false, 162), "html", null, true);
echo "</p>
<p class=\"txt14 ls6\">Price: ";
// line 163
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 163, $this->source); })()), "getPrice02IncTaxMin", [], "any", false, false, false, 163)), "html", null, true);
echo "</p>
<a href=\"";
// line 164
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 164, $this->source); })()), "id", [], "any", false, false, false, 164)]), "html", null, true);
echo "\" class=\"buttonC mt-20\">DETAIL</a>
</div>
</div>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CategoryRecommendProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 168
echo " </div>
<div class=\"ec-modal\">
<input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
<div class=\"ec-modal-overlay\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
<div class=\"ec-modal-wrap\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
// line 174
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html", null, true);
echo "\" alt=\"\"/></span></label>
<div id=\"ec-modal-header\" class=\"text-center\">";
// line 175
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html", null, true);
echo "</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">";
// line 178
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</label>
<a href=\"";
// line 179
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\" class=\"ec-inlineBtn--action\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- NAVIGATION -->
<div class=\"flex nav blog-navigation\">
";
// line 190
if (twig_get_attribute($this->env, $this->source, (isset($context["Blog"]) || array_key_exists("Blog", $context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.', 190, $this->source); })()), "prev_link", [], "any", false, false, false, 190)) {
// line 191
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Blog"]) || array_key_exists("Blog", $context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.', 191, $this->source); })()), "prev_link", [], "any", false, false, false, 191), "html", null, true);
echo "\">
<div class=\"flex button2\">
<div>
<i class=\"fas fa-chevron-left\"></i>
</div>
<div>
<p>前へ</p>
</div>
</div>
</a>
";
}
// line 202
echo " <div>
<a href=\"";
// line 203
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_list", ["shop" => (isset($context["shop"]) || array_key_exists("shop", $context) ? $context["shop"] : (function () { throw new RuntimeError('Variable "shop" does not exist.', 203, $this->source); })())]), "html", null, true);
echo "\" class=\"button2 buttonCustom\">一覧へ戻る</a>
</div>
";
// line 205
if (twig_get_attribute($this->env, $this->source, (isset($context["Blog"]) || array_key_exists("Blog", $context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.', 205, $this->source); })()), "next_link", [], "any", false, false, false, 205)) {
// line 206
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Blog"]) || array_key_exists("Blog", $context) ? $context["Blog"] : (function () { throw new RuntimeError('Variable "Blog" does not exist.', 206, $this->source); })()), "next_link", [], "any", false, false, false, 206), "html", null, true);
echo "\">
<div class=\"flex button2\">
<div>
<p>次へ</p>
</div>
<div>
<i class=\"fas fa-chevron-right\"></i>
</div>
</div>
</a>
";
}
// line 217
echo "</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Blog/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 480 => 217, 465 => 206, 463 => 205, 458 => 203, 455 => 202, 440 => 191, 438 => 190, 422 => 179, 418 => 178, 412 => 175, 408 => 174, 400 => 168, 389 => 164, 385 => 163, 381 => 162, 377 => 161, 374 => 160, 368 => 159, 365 => 158, 362 => 157, 359 => 156, 354 => 155, 352 => 154, 345 => 153, 343 => 152, 340 => 151, 337 => 150, 332 => 149, 319 => 139, 314 => 137, 310 => 136, 305 => 133, 299 => 130, 292 => 126, 288 => 124, 286 => 123, 277 => 117, 267 => 116, 224 => 82, 213 => 74, 183 => 47, 170 => 37, 156 => 26, 146 => 18, 132 => 17, 124 => 16, 121 => 15, 104 => 14, 100 => 12, 90 => 11, 77 => 8, 67 => 7, 56 => 1, 54 => 5, 52 => 4, 50 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% set body_class = 'blog_page' %}
{% set wrap_class = 'blogDwrap' %}
{% set footerBrandListFlg = true %}
{% block stylesheet %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/contents.css') }}\">
{% endblock stylesheet %}
{% block javascript %}
<script>
eccube.productsClassCategories = {
{% for CategoryRecommendProduct in Pickup %}
{% set Product = CategoryRecommendProduct %}
\"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
{% endfor %}
};
\$(function() {
\$('.add-cart').on('click', function(event) {
// 規格1フォームの必須チェック
var \$classcategory = \$(this).parents('form').find('select[name=\"classcategory_id1\"]');
if (\$classcategory.length) {
if (\$classcategory.val() == '__unselected' || \$classcategory.val() == '') {
\$classcategory[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
return true;
} else {
\$classcategory[0].setCustomValidity('');
}
}
// 規格2フォームの必須チェック
var \$classcategory2 = \$(this).parents('form').find('select[name=\"classcategory_id2\"]');
if (\$classcategory2.length) {
if (\$classcategory2.val() == '__unselected' || \$classcategory2.val() == '') {
\$classcategory2[0].setCustomValidity('{{ '項目が選択されていません'|trans }}');
return true;
} else {
\$classcategory2[0].setCustomValidity('');
}
}
// 個数フォームのチェック
var \$quantity = \$(this).parents('form').find('[name=\"quantity\"]');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
return true;
} else {
\$quantity[0].setCustomValidity('');
}
event.preventDefault();
\$form = \$(this).parents('form');
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#ec-modal-header').html(this);
});
\$('#ec-modal-checkbox').prop('checked', true);
// カートブロックを更新する
\$.ajax({
url: \"{{ url('block_cart') }}\",
type: 'GET',
dataType: 'html'
}).done(function(response) {
let res = JSON.parse(response);
\$('.cart_number').text(res.totalQuantity);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
\$('.slider').slick({
autoplay: true,
autoplaySpeed: 2000,
dots: false,
loop: true,
slidesToShow: 3,
prevArrow: false,
nextArrow: false,
variableWidth: true,
responsive: [
{
breakpoint: 1179,
settings: {
slidesToShow: 2,
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
}
}]
});
});
</script>
{% endblock %}
{% block main %}
{{ include('Block/header_shop.twig') }}
<div class=\"conts\">
<h2 class=\"h2Normal\">BLOG</h2>
<p class=\"txt14 ls6 tarS mt25P\">ブログ</p>
</div>
<!-- MAINVISUAL -->
{% if Blog.thumbnail is not empty %}
<div class=\"mainVisualBlogD pcShow\">
<div class=\"c-blog-thumbnail--wrapper\">
<div class=\"c-blog-thumbnail\" style=\"background-image: url('{{ Blog.thumbnail }}')\"></div>
</div>
</div>
<div class=\"mainVisual spShow\">
<img src=\"{{ Blog.thumbnail }}\" alt=\"\">
</div>
{% endif %}
<!-- BLOG -->
<section class=\"blogD\">
<div class=\"conts2\">
<p class=\"txt13 ls10\">{{ Blog.date }}</p>
<p class=\"txtBig mt40P mb40P\">{{ Blog.title|raw }}</p>
<div class=\"txtWrap mb40P blog-content\">
{{ Blog.content|raw|nl2br }}
</div>
</div>
</section>
<div class=\"bgColor\">
<!-- PICKUP ITEMS -->
<section class=\"pickupItems\">
<h2 class=\"h2Normal mt60P mb40\">PICKUP ITEMS</h2>
<div class=\"flexWrap slider\">
{% for CategoryRecommendProduct in Pickup if Pickup %}
{% set Product = CategoryRecommendProduct %}
<div class=\"flex\">
{% set pickup_url = asset(Product.mainFileName|no_image_product, \"save_image\") %}
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"pickup-image\" style=\"background-image:url('{{ pickup_url }}')\"></a>
{% set brand = '' %}
{% for ProductCategory in Product.ProductCategories %}
{% if ProductCategory.Category.Parent and ProductCategory.Category.Parent.id == '3' %}
{% set brand = ProductCategory.Category.name %}
{% endif %}
{% endfor %}
<div class=\"flexTxt\">
<p class=\"txt12 ls6\">{{ brand }}</p>
<p class=\"txt18 ls6 mt15 mb20\">{{ Product.name }}</p>
<p class=\"txt14 ls6\">Price: {{ Product.getPrice02IncTaxMin|price }}</p>
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\" class=\"buttonC mt-20\">DETAIL</a>
</div>
</div>
{% endfor %}
</div>
<div class=\"ec-modal\">
<input type=\"checkbox\" id=\"ec-modal-checkbox\" class=\"checkbox\">
<div class=\"ec-modal-overlay\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-overlay-close\"></label>
<div class=\"ec-modal-wrap\">
<label for=\"ec-modal-checkbox\" class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></label>
<div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
<div class=\"ec-modal-box\">
<div class=\"ec-role\">
<label for=\"ec-modal-checkbox\" class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</label>
<a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- NAVIGATION -->
<div class=\"flex nav blog-navigation\">
{% if Blog.prev_link %}
<a href=\"{{ Blog.prev_link }}\">
<div class=\"flex button2\">
<div>
<i class=\"fas fa-chevron-left\"></i>
</div>
<div>
<p>前へ</p>
</div>
</div>
</a>
{% endif %}
<div>
<a href=\"{{ url('blog_list', {'shop': shop}) }}\" class=\"button2 buttonCustom\">一覧へ戻る</a>
</div>
{% if Blog.next_link %}
<a href=\"{{ Blog.next_link }}\">
<div class=\"flex button2\">
<div>
<p>次へ</p>
</div>
<div>
<i class=\"fas fa-chevron-right\"></i>
</div>
</div>
</a>
{% endif %}
</div>
{% endblock %}
", "Blog/detail.twig", "/home/idealinc/idealinc.xsrv.jp/public_html/online/app/template/idealinc/Blog/detail.twig");
}
}