<?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_c616f0095db291a6000b0dd1dbf6b8272339bc01ad052589bb3548ac6d83d9b2 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 22
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 24
$context["body_class"] = "front_page";
// line 22
$this->parent = $this->loadTemplate("default_frame.twig", "index.twig", 22);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 26
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 27
echo "<script>
\$(function(){
\$('.main_visual').slick({
centerMode: true,
centerPadding: '20px',
dots:false,
arrows:true,
autoplay: false,
speed: 1000,
prevArrow: '<div class=\"slide-arrow prev-arrow\"><img src=\"";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/nikke/slick/w_prev.gif\"></div>',
nextArrow: '<div class=\"slide-arrow next-arrow\"><img src=\"";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/nikke/slick/w_next.gif\"></div>',
responsive: [{
breakpoint: 768,
settings: {
centerPadding: '0px',
prevArrow: '<div class=\"slide-arrow prev-arrow\"><img src=\"";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/unishop/slick/w_prev.png\"></div>',
nextArrow: '<div class=\"slide-arrow next-arrow\"><img src=\"";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/unishop/slick/w_next.png\"></div>'
}
},{
breakpoint: 480,
settings: {
centerPadding: '0px',
prevArrow: '<div class=\"slide-arrow prev-arrow\"><img src=\"";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/unishop/slick/w_prev.png\"></div>',
nextArrow: '<div class=\"slide-arrow next-arrow\"><img src=\"";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets"), "html", null, true);
echo "/img/unishop/slick/w_next.png\"></div>'
}
}
]
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 59
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 60
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 61
echo " <div class=\"row\">
<div class=\"col-sm-12\">
<div class=\"main_visual\">
<a href=\"";
// line 64
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "\">
";
// line 65
if ((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.', 65, $this->source); })()), "user", [], "any", false, false, true, 65), "school", [], "any", false, false, true, 65), "school_id", [], "any", false, false, true, 65) == "1")) {
echo "<!--大宰府学業院中-->
<img class=\"pc\" src=\"";
// line 66
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "html/user_data/main_image_pc01_sc01_2.jpg\">
<img class=\"sp\" src=\"";
// line 67
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "html/user_data/main_image_sp01_sc01_2.jpg\">
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 68
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 68, $this->source); })()), "user", [], "any", false, false, true, 68), "school", [], "any", false, false, true, 68), "school_id", [], "any", false, false, true, 68) == "2")) {
echo "<!--大宰府西中-->
<img class=\"pc\" src=\"";
// line 69
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/nikke/main_image_pc01_sc02.jpg"), "html", null, true);
echo "\">
<img class=\"sp\" src=\"";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/nikke/main_image_sp01_sc02.jpg"), "html", null, true);
echo "\">
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 71
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 71, $this->source); })()), "user", [], "any", false, false, true, 71), "school", [], "any", false, false, true, 71), "school_id", [], "any", false, false, true, 71) == "3")) {
echo "<!--大宰府中-->
<img class=\"pc\" src=\"";
// line 72
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/nikke/main_image_pc01_sc03.jpg"), "html", null, true);
echo "\">
<img class=\"sp\" src=\"";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/nikke/main_image_sp01_sc03.jpg"), "html", null, true);
echo "\">
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 74
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 74, $this->source); })()), "user", [], "any", false, false, true, 74), "school", [], "any", false, false, true, 74), "school_id", [], "any", false, false, true, 74) == "4")) {
echo "<!--大宰府東中-->
<img class=\"pc\" src=\"";
// line 75
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "html/user_data/main_image_pc01_sc04_2.jpg\">
<img class=\"sp\" src=\"";
// line 76
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "html/user_data/main_image_sp01_sc04_2.jpg\">
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 77
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 77, $this->source); })()), "user", [], "any", false, false, true, 77), "school", [], "any", false, false, true, 77), "school_id", [], "any", false, false, true, 77) == "5")) {
echo "<!--武蔵台高校-->
<img class=\"pc\" src=\"";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/nikke/main_image_pc01_sc05.jpg"), "html", null, true);
echo "\">
<img class=\"sp\" src=\"";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/nikke/main_image_sp01_sc05.jpg"), "html", null, true);
echo "\">
";
} else {
// line 81
echo " <img class=\"pc\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/nikke/main_image_01b.jpg"), "html", null, true);
echo "\">
<img class=\"sp\" src=\"";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/nikke/main_image_sp_01b.jpg"), "html", null, true);
echo "\">
";
}
// line 84
echo " </a>
<a href=\"";
// line 85
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 85, $this->source); })()), "eccube_user_data_route", [], "any", false, false, true, 85), 85, $this->source), ["route" => "commitment_uniform"]);
echo "\" class=\"item\">
<img class=\"pc\" src=\"";
// line 86
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "html/user_data/main_image_pc_blue01.jpg\">
<img class=\"sp\" src=\"";
// line 87
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "html/user_data/main_image_sp_blue01.jpg\">
</a>
</div>
</div>
</div>
<div id=\"contents\"><div id=\"main\">
";
} else {
// line 94
echo " <div id=\"contents\" class=\"logout\">
<div class=\"main_visual logouttop\">
<div>
<img class=\"pc\" src=\"";
// line 97
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "html/user_data/tokyolad_top2pc.jpg\">
<img class=\"sp\" src=\"";
// line 98
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "html/user_data/tokyolad_top2sp.jpg\">
</div>
<a href=\"";
// line 100
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 100, $this->source); })()), "eccube_user_data_route", [], "any", false, false, true, 100), 100, $this->source), ["route" => "commitment_uniform"]);
echo "\" class=\"item\">
<img class=\"pc\" src=\"";
// line 101
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "html/user_data/tokyolad_top1pc.jpg\">
<img class=\"sp\" src=\"";
// line 102
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "html/user_data/tokyolad_top1sp.jpg\">
</a>
</div>
<div class=\"container-fluid inner\"><div id=\"main\">
";
}
$__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 ( 267 => 102, 263 => 101, 259 => 100, 254 => 98, 250 => 97, 245 => 94, 235 => 87, 231 => 86, 227 => 85, 224 => 84, 219 => 82, 214 => 81, 209 => 79, 205 => 78, 201 => 77, 197 => 76, 193 => 75, 189 => 74, 185 => 73, 181 => 72, 177 => 71, 173 => 70, 169 => 69, 165 => 68, 161 => 67, 157 => 66, 153 => 65, 149 => 64, 144 => 61, 142 => 60, 132 => 59, 114 => 50, 110 => 49, 101 => 43, 97 => 42, 89 => 37, 85 => 36, 74 => 27, 64 => 26, 53 => 22, 51 => 24, 38 => 22,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
http://www.lockon.co.jp/
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'front_page' %}
{% block javascript %}
<script>
\$(function(){
\$('.main_visual').slick({
centerMode: true,
centerPadding: '20px',
dots:false,
arrows:true,
autoplay: false,
speed: 1000,
prevArrow: '<div class=\"slide-arrow prev-arrow\"><img src=\"{{ asset('assets') }}/img/nikke/slick/w_prev.gif\"></div>',
nextArrow: '<div class=\"slide-arrow next-arrow\"><img src=\"{{ asset('assets') }}/img/nikke/slick/w_next.gif\"></div>',
responsive: [{
breakpoint: 768,
settings: {
centerPadding: '0px',
prevArrow: '<div class=\"slide-arrow prev-arrow\"><img src=\"{{ asset('assets') }}/img/unishop/slick/w_prev.png\"></div>',
nextArrow: '<div class=\"slide-arrow next-arrow\"><img src=\"{{ asset('assets') }}/img/unishop/slick/w_next.png\"></div>'
}
},{
breakpoint: 480,
settings: {
centerPadding: '0px',
prevArrow: '<div class=\"slide-arrow prev-arrow\"><img src=\"{{ asset('assets') }}/img/unishop/slick/w_prev.png\"></div>',
nextArrow: '<div class=\"slide-arrow next-arrow\"><img src=\"{{ asset('assets') }}/img/unishop/slick/w_next.png\"></div>'
}
}
]
});
});
</script>
{% endblock %}
{% block main %}
{% if is_granted('ROLE_USER') %}
<div class=\"row\">
<div class=\"col-sm-12\">
<div class=\"main_visual\">
<a href=\"{{ url('product_list') }}\">
{% if app.user.school.school_id == '1' %}<!--大宰府学業院中-->
<img class=\"pc\" src=\"{{ url('homepage') }}html/user_data/main_image_pc01_sc01_2.jpg\">
<img class=\"sp\" src=\"{{ url('homepage') }}html/user_data/main_image_sp01_sc01_2.jpg\">
{% elseif app.user.school.school_id == '2' %}<!--大宰府西中-->
<img class=\"pc\" src=\"{{ asset('assets/img/nikke/main_image_pc01_sc02.jpg') }}\">
<img class=\"sp\" src=\"{{ asset('assets/img/nikke/main_image_sp01_sc02.jpg') }}\">
{% elseif app.user.school.school_id == '3' %}<!--大宰府中-->
<img class=\"pc\" src=\"{{ asset('assets/img/nikke/main_image_pc01_sc03.jpg') }}\">
<img class=\"sp\" src=\"{{ asset('assets/img/nikke/main_image_sp01_sc03.jpg') }}\">
{% elseif app.user.school.school_id == '4' %}<!--大宰府東中-->
<img class=\"pc\" src=\"{{ url('homepage') }}html/user_data/main_image_pc01_sc04_2.jpg\">
<img class=\"sp\" src=\"{{ url('homepage') }}html/user_data/main_image_sp01_sc04_2.jpg\">
{% elseif app.user.school.school_id == '5' %}<!--武蔵台高校-->
<img class=\"pc\" src=\"{{ asset('assets/img/nikke/main_image_pc01_sc05.jpg') }}\">
<img class=\"sp\" src=\"{{ asset('assets/img/nikke/main_image_sp01_sc05.jpg') }}\">
{% else %}
<img class=\"pc\" src=\"{{ asset('assets/img/nikke/main_image_01b.jpg') }}\">
<img class=\"sp\" src=\"{{ asset('assets/img/nikke/main_image_sp_01b.jpg') }}\">
{% endif %}
</a>
<a href=\"{{ url(eccube_config.eccube_user_data_route, {'route': 'commitment_uniform'}) }}\" class=\"item\">
<img class=\"pc\" src=\"{{ url('homepage') }}html/user_data/main_image_pc_blue01.jpg\">
<img class=\"sp\" src=\"{{ url('homepage') }}html/user_data/main_image_sp_blue01.jpg\">
</a>
</div>
</div>
</div>
<div id=\"contents\"><div id=\"main\">
{% else %}
<div id=\"contents\" class=\"logout\">
<div class=\"main_visual logouttop\">
<div>
<img class=\"pc\" src=\"{{ url('homepage') }}html/user_data/tokyolad_top2pc.jpg\">
<img class=\"sp\" src=\"{{ url('homepage') }}html/user_data/tokyolad_top2sp.jpg\">
</div>
<a href=\"{{ url(eccube_config.eccube_user_data_route, {'route': 'commitment_uniform'}) }}\" class=\"item\">
<img class=\"pc\" src=\"{{ url('homepage') }}html/user_data/tokyolad_top1pc.jpg\">
<img class=\"sp\" src=\"{{ url('homepage') }}html/user_data/tokyolad_top1sp.jpg\">
</a>
</div>
<div class=\"container-fluid inner\"><div id=\"main\">
{% endif %}
{% endblock %}", "index.twig", "/home/nmtokyolad01/tokyoladies-onlinestore.com/public_html/app/template/unishop/index.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 24, "if" => 60);
static $filters = array("escape" => 36);
static $functions = array("asset" => 36, "is_granted" => 60, "url" => 64);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['escape'],
['asset', 'is_granted', 'url']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}