{#
This file is part of the ProductHide42 Plugin
Copyright (C) 2023 Diezon.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% block stylesheet %}
{% if Product.hidden %}
<style>
.hidden-product-contents {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 30px;
height: 100%;
padding-bottom: 20px;
}
.hidden-product-contents p {
font-size: 16px;
text-align: center;
}
.ec-footerRole {
margin-top: 0 !important;
}
.ec-layoutRole__footer {
margin-top: auto;
}
</style>
{% endif %}
{% endblock %}
{% block javascript %}
{% if Product.hidden %}
<script>
$(function () {
$('.ec-layoutRole__contents').hide();
$('.hidden-product-contents').insertAfter('.ec-layoutRole__contents');
});
</script>
{% endif %}
{% endblock javascript %}
{% block main %}
{% if Product.hidden %}
<div class="hidden-product-contents">
<p>{{ 'front.product_detail.hidden_product'|trans }}</p>
<div class="ec-historyBtn">
<a class="ec-inlineBtn" href="{{ url('homepage') }}">TOPページへ戻る</a>
</div>
</div>
{% endif %}
{% endblock %}