{#Copyright (C) SPREAD WORKS Inc. All Rights Reserved.For the full copyright and license information, please view the LICENSEfile that was distributed with this source code.#}{% extends 'default_frame.twig' %}{% set body_class = 'tabacms_post_page' %}{# 投稿データの取得 #}{% set post = TabaCMSPost() %}{% block javascript %}{{ TabaCMSAsset('script.js','script')|raw }}{{ post.getScript|raw }}{% endblock javascript %}{% block stylesheet %}{{ TabaCMSAsset('style.css','style')|raw }}<style>.attention{ background-color: #F5F9FE; border-radius: 4px; padding: 8px 16px; font-size: 12px;}.item-info dt{ font-weight: normal; color: #C5A600; min-width: 120px;}.post-body{ margin-bottom: 30px;}.tag-list{ list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px;}.tag-list-item-tag{ display: block; color: #3686E4; border: 1px solid; border-radius: 3px; padding: 2px 10px; white-space: nowrap;}.post-tags > dl > dt{ margin-bottom: 10px;}/* @media only screen and (min-width: 768px) { .ec-grid2 .ec-grid2__cell.item-image{ width: 320px; } .ec-grid2 .ec-grid2__cell.item-info{ width: calc(100% - 320px); padding-left: 30px; }} */</style>{% endblock stylesheet %}{% block main %} <div class="ec-role"> <div class="ec-pageHeader"> <h1>{{ type.getTypeName }}</h1> </div> <div class="ec-pageBody"> <div class="item-body"> {# <div class="item-image"> <div class="item-thumbnail"> {% if post.getThumbnail is not empty %} <img src="{{ asset(post.getThumbnail,'save_image') }}" class="w-100"> {% else %} <img src="/plugin/tabacms2/assets/no_image.jpg" class="w-100"> {% endif %} </div> <div class="attention mt-2"> <p>※お客様の承諾を得て掲載しています。作品・写真の著作権はお客様に帰属します。</p> </div> </div> #} <div class="item-info"> <div class="post-body">{{ post.getBody|raw }}</div> {% if post.postTags|length > 0 %} <div class="post-tags"> <dl class="tabacms_widget"> <dt><svg width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 1.57357C12 0.838234 11.402 0.240234 10.6667 0.240234H1.33333C0.598 0.240234 0 0.838234 0 1.57357V10.9069C0 11.6422 0.598 12.2402 1.33333 12.2402H10.6667C11.402 12.2402 12 11.6422 12 10.9069V1.57357ZM1.33333 10.9069V1.57357H10.6667L10.668 10.9069H1.33333Z" fill="#C5A600"/><path d="M2.66675 2.90625H3.99875V4.23958H2.66675V2.90625ZM5.33341 2.90625H9.33341V4.23958H5.33341V2.90625ZM2.66675 5.57292H3.99875V6.90625H2.66675V5.57292ZM5.33341 5.57292H9.33341V6.90625H5.33341V5.57292ZM2.66675 8.23958H3.99875V9.57292H2.66675V8.23958ZM5.33341 8.23958H9.33341V9.57292H5.33341V8.23958Z" fill="#C5A600"/></svg> 商品タグ</dt> <dd> <ul class="tag-list"> {% for postTag in post.postTags %}{# {{ dump(postTag) }} #} <li class="tag-list-item"><a href="{{ type.getListURI }}?tag_id={{ postTag.tag.tagId }}" class="tag-list-item-tag tabacms_tagcloud tabacms_tagcloud_{{ postTag.tag.tagCloudLevel }}"> {{ postTag.tag.tagName }}</a></li> {% endfor %} </ul> </dd> </dl> </div> {% endif %} </div> </div> </div> </div>{# <div class="container-lg"> <div class="row"> <article class="col-12 col-md-9 tabacms_post"> <header class="row tabacms_header"> {% if post.getCategory is not empty %} <div class="col-12"> <label class="text-nowrap tabacms_category_{{ post.getType.getDataKey }}_{{ post.getCategory.getDataKey }}" {{ post.getCategory.getTagAttributes|raw }}>{{ post.getCategory.getCategoryName }}</label> </div> {% endif %} <div class="col-12 ec-pageHeader"><h1>{{ post.getTitle|raw }}</h1></div> <time class="col-12 text-end"> {{ post.getPublicDate|date('Y/m/d') }} </time> </header> <section class="row tabacms_body"> {% if post.getThumbnail is not empty %} <div class="col-12 offset-sm-1 col-sm-10 mb-2"> <img src="{{ asset(post.getThumbnail,'save_image') }}" class="w-100"> </div> {% endif %} <div class="col-12"> {{ post.getBody|raw }} </div> </section> </article> </div></div> #}{% endblock %}