<?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;
/* index.twig */
class __TwigTemplate_6cb47d61a9dc90c7605f0029536f504586780aee2e7b675d2783dcd90b3536b2 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 11
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", "index.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index.twig"));
// line 13
$context["body_class"] = "front_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "index.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
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 16
echo " <style>
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_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>
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 26
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 27
echo " <article id=\"top\">
<section class=\"visual\">
<div class=\"text\">
<h2>LIFE TIME<br>GEAR<br> SUPPLY</h2>
<div class=\"pc\">
<p>SLAPSは、バイク、自転車、クルマ、キャンプなど</p>
<p>幅広いアウトドアアクティビティを中心に</p>
<p>魅力的な商品を厳選して提供するネットショップです。</p>
</div><!-- /pc -->
<div class=\"sp\">
<p>SLAPSは、バイク、自転車、キャンプなど、</p>
<p>幅広いアウトドアアクティビティを中心に、</p>
<p>魅力的なアイテムを厳選してご提供しています。</p>
</div><!-- /pc -->
</div><!-- /text -->
</section><!-- /visual -->
<section class=\"news\" style=\"display: none\">
<header>
<h3>NEWS</h3>
<div class=\"news-list\">
<ul>
<li>
<article>
<time></time>
<h4></h4>
</article>
</li>
</ul>
</div><!-- /news-list -->
</header>
</section><!-- /news -->
<section class=\"item\">
<div class=\"content\">
<header>
<h2>ALL PRODUCTS</h2>
</header>
";
// line 64
$context["recommend_products"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Plugin\\Recommend42\\Entity\\RecommendProduct"), "getRecommendProduct", [], "any", false, false, false, 64);
// line 65
echo "
<!-- ▼item_list▼ -->
<div class=\"item-list\">
<ul>
";
// line 69
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["recommend_products"]) || array_key_exists("recommend_products", $context) ? $context["recommend_products"] : (function () { throw new RuntimeError('Variable "recommend_products" does not exist.', 69, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["RecommendProduct"]) {
// line 70
echo " <li class=\"ec-shelfGrid__item\">
<article>
<a href=\"";
// line 72
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RecommendProduct"], "Product", [], "any", false, false, false, 72), "id", [], "any", false, false, false, 72)]), "html", null, true);
echo "\">
<div class=\"image\">
<img src=\"";
// line 74
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RecommendProduct"], "Product", [], "any", false, false, false, 74), "mainFileName", [], "any", false, false, false, 74), "save_image"), "html", null, true);
echo "\">
</div><!-- /image -->
<div class=\"text\">
";
// line 78
echo $this->env->getRuntime('Exercise\HTMLPurifierBundle\Twig\HTMLPurifierRuntime')->purify(twig_get_attribute($this->env, $this->source, $context["RecommendProduct"], "comment", [], "any", false, false, false, 78));
echo "
<span class=\"price\">
";
// line 80
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RecommendProduct"], "Product", [], "any", false, false, false, 80), "hasProductClass", [], "any", false, false, false, 80)) {
// line 81
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RecommendProduct"], "Product", [], "any", false, false, false, 81), "getPrice02Min", [], "any", false, false, false, 81) == twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RecommendProduct"], "Product", [], "any", false, false, false, 81), "getPrice02Max", [], "any", false, false, false, 81))) {
// line 82
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RecommendProduct"], "Product", [], "any", false, false, false, 82), "getPrice02IncTaxMin", [], "any", false, false, false, 82)), "html", null, true);
echo "
";
} else {
// line 84
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RecommendProduct"], "Product", [], "any", false, false, false, 84), "getPrice02IncTaxMin", [], "any", false, false, false, 84)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RecommendProduct"], "Product", [], "any", false, false, false, 84), "getPrice02IncTaxMax", [], "any", false, false, false, 84)), "html", null, true);
echo "
";
}
// line 86
echo " ";
} else {
// line 87
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["RecommendProduct"], "Product", [], "any", false, false, false, 87), "getPrice02IncTaxMin", [], "any", false, false, false, 87)), "html", null, true);
echo "
";
}
// line 89
echo " </span><!-- /price -->
<span class=\"button\">ITEM PAGE</span>
</div><!-- /text -->
</a>
</article>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RecommendProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 96
echo " </ul>
</div><!--/item-list -->
<!-- ▲item_list▲ -->
</div><!-- /content -->
</section>
<section class=\"sns\" style=\"display: none;\">
<header>
<h2>INSTAGRAM</h2>
</header>
インスタのフィードが入る
</section><!-- /sns -->
</article><!-- /top -->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 230 => 96, 218 => 89, 212 => 87, 209 => 86, 201 => 84, 195 => 82, 192 => 81, 190 => 80, 185 => 78, 178 => 74, 173 => 72, 169 => 70, 165 => 69, 159 => 65, 157 => 64, 118 => 27, 108 => 26, 95 => 21, 85 => 20, 73 => 16, 63 => 15, 52 => 11, 50 => 13, 37 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'front_page' %}
{% block stylesheet %}
<style>
</style>
{% endblock %}
{% block javascript %}
<script>
</script>
{% endblock javascript %}
{% block main %}
<article id=\"top\">
<section class=\"visual\">
<div class=\"text\">
<h2>LIFE TIME<br>GEAR<br> SUPPLY</h2>
<div class=\"pc\">
<p>SLAPSは、バイク、自転車、クルマ、キャンプなど</p>
<p>幅広いアウトドアアクティビティを中心に</p>
<p>魅力的な商品を厳選して提供するネットショップです。</p>
</div><!-- /pc -->
<div class=\"sp\">
<p>SLAPSは、バイク、自転車、キャンプなど、</p>
<p>幅広いアウトドアアクティビティを中心に、</p>
<p>魅力的なアイテムを厳選してご提供しています。</p>
</div><!-- /pc -->
</div><!-- /text -->
</section><!-- /visual -->
<section class=\"news\" style=\"display: none\">
<header>
<h3>NEWS</h3>
<div class=\"news-list\">
<ul>
<li>
<article>
<time></time>
<h4></h4>
</article>
</li>
</ul>
</div><!-- /news-list -->
</header>
</section><!-- /news -->
<section class=\"item\">
<div class=\"content\">
<header>
<h2>ALL PRODUCTS</h2>
</header>
{% set recommend_products = repository('Plugin\\\\Recommend42\\\\Entity\\\\RecommendProduct').getRecommendProduct %}
<!-- ▼item_list▼ -->
<div class=\"item-list\">
<ul>
{% for RecommendProduct in recommend_products %}
<li class=\"ec-shelfGrid__item\">
<article>
<a href=\"{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}\">
<div class=\"image\">
<img src=\"{{ asset(RecommendProduct.Product.mainFileName, \"save_image\") }}\">
</div><!-- /image -->
<div class=\"text\">
{{ RecommendProduct.comment|raw|purify }}
<span class=\"price\">
{% if RecommendProduct.Product.hasProductClass %}
{% if RecommendProduct.Product.getPrice02Min == RecommendProduct.Product.getPrice02Max %}
{{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
{% else %}
{{ RecommendProduct.Product.getPrice02IncTaxMin|price }} ~ {{ RecommendProduct.Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
{% endif %}
</span><!-- /price -->
<span class=\"button\">ITEM PAGE</span>
</div><!-- /text -->
</a>
</article>
</li>
{% endfor %}
</ul>
</div><!--/item-list -->
<!-- ▲item_list▲ -->
</div><!-- /content -->
</section>
<section class=\"sns\" style=\"display: none;\">
<header>
<h2>INSTAGRAM</h2>
</header>
インスタのフィードが入る
</section><!-- /sns -->
</article><!-- /top -->
{% endblock %}
", "index.twig", "/home/riderz/slaps.tokyo/public_html/app/template/default/index.twig");
}
}