{% extends 'default_frame.twig' %}{% block javascript %}{% endblock %}{% block stylesheet %}<style>.pluginCMBblog .post_meta { display: flex; list-style: none; margin: 0; padding: 0; width: 95%; margin: 0 auto;}.pluginCMBblog .blog_category{ margin: 0; padding: 0;}.pluginCMBblog .blog_category{ display: initial;}.pluginCMBblog .blog_category li{ padding: 3px 5px; font-size: 13px; color: white; background: #333; display: initial; border-right: 1px solid #ddd;}.pluginCMBblog .blog_category li:last-child { border-right: none;}.pluginCMBblog .post_meta .post_meta_list{ padding-right: 2rem;}{# .pluginCMBblog .list_category_link{ color: #337ab7; padding: 0 0.5rem;} #}.pluginCMBblog .figure__main_image { padding: 0; margin: 3rem 0; display: grid; justify-content: stretch; align-items: flex-end;}.pluginCMBblog .main_image_blog,.pluginCMBblog figcaption { padding: 0; grid-column: 1/2; grid-row: 1/2;}.pluginCMBblog figcaption { text-align: center; padding: 0.4rem 2rem; font-size: 1.3rem; background-color: rgba(0,0,0,.7); color: #fff; overflow: hidden; white-space: normal; word-wrap: break-word;}.pluginCMBblog .post_meta_list.time{ font-size: 13px; color: #707070;}.pluginCMBblog .tag_dl{ display: flex;}.blog_detail .blog_Title { border-bottom: 1px dashed #707070; padding-bottom: 18px; font-size: 16px; color: #333;}.blog_detail .ec-productRole__profile { font-size: 13px; color: #333;}.pluginCMBblog .cm_blog_main_image img { width: 400px; height: 400px; margin: auto; object-fit: cover;}ul.tag-ul { padding-left:8px; list-style: none; display: flex; flex-wrap: wrap;}ul.tag-ul > li { margin: 0.4em; padding: 0 0.8em; border: 1px solid #ccc; border-radius: 5px;}ul.tag-ul > li > a:hover { text-decoration: none;}h3.tag-header { padding: 1rem 2rem; border-left: 4px solid #000;}.w-100 { width: 100%}.side-bar > div { width: 90%;}h5.tag-header { font-family: Oswald; font-weight: bold; font-size: 22px; color: #333; border-bottom: 4px solid #000;}.month-archive a { margin-bottom: 8px; display: block; color: #333;}.month-archive a:hover { color: #337ab7;}.ec-productRole__description > p img { width: calc(var(--width)); margin-bottom: 15px;}.archive-link-div { max-height: 600px; overflow-y: scroll;}.archive-link-div::-webkit-scrollbar { display: none;}@media screen and (max-width: 768px){ .pluginCMBblog .post_meta { display: block; } .pluginCMBblog .post_meta li { display: inline-block; } .side-bar > div { width: 100% } h5.tag-header { margin-top: 40px; } .pluginCMBblog .cm_blog_main_image img { width: 60%; max-height: 200px; }}@media only screen and (min-width: 768px) { .ec-shelfGrid .ec-shelfGrid__item-image { height: 150px; } h3.tag-header { margin: 63px 16px 20px; } .side-bar { width: 280px; } .ec-role { display: flex; justify-content: flex-start } .mt-65 { margin-top: 65px!important; }}</style>{% endblock %}{% block main %}<div class="ec-role blog_detail pluginCMBblog"> <div class="w-100"> <div class="ec-off1Grid"> <div class="ec-off1Grid__cell"> <div class="cm_blog_main_image"> <figure class="figure__main_image"> {% if blog.getMainListImage %} <img src="{{ asset(blog.getMainListImage|no_image_product, 'save_image') }}" class="main_image_blog"></img> {% endif %} {% if blog.getFigCaption %} <figcaption>{{ blog.getFigCaption }}</figcaption> {% endif %} </figure> </div> <div class="ec-grid2__cell"> <ul class="post_meta"> <li class="post_meta_list time">{{blog.release_date|date('Y年m月d日')}}</li> <li class="post_meta_list"> <ul class="blog_category"> {% for category in blog.getBlogCategories %} <li class="{{category.getCategory.class}}"> {{ category.getCategory.getName|raw }} </li> {% endfor %} </ul> </li> </ul> <h1 class="blog_Title">{{ blog.title }}</h1> <div class="ec-productRole__profile"> <div class="ec-productRole__description">{{ blog.body|raw }} </div> </div> </div> </div> </div> {# {% if tags|length > 0 %} <h3 class="tag-header">{{ 'plg.CMBlogPro.blog.tag'|trans }}</h3> <ul class="tag-ul"> {% for tag in tags %} <li> <a href="{{ url('cm_blog_pro_page_list', {tag: tag|trim }) }}">{{ tag |trim }}</a> </li> {% endfor %} </ul> {% endif %} <h3 class="tag-header">{{ 'plg.CMBlogPro.blog.related_product'|trans }}</h3> <div class="ec-shelfRole"> <ul class="ec-shelfGrid"> {% for product in blog.getBlogProduct %} <li class="ec-shelfGrid__item"> <a href="{{ url('product_detail', {'id': product.getProduct.id}) }}"> <p class="ec-shelfGrid__item-image"> <img src="{{ asset(product.getProduct.main_list_image|no_image_product, 'save_image') }}"> </p> <p>{{ product.getProduct.name }}</p> <p class="price02-default"> {% if product.getProduct.hasProductClass %} {% if product.getProduct.getPrice02Min == product.getProduct.getPrice02Max %} {{ product.getProduct.getPrice02IncTaxMin|price }} {% else %} {{ product.getProduct.getPrice02IncTaxMin|price }} ~ {{ product.getProduct.getPrice02IncTaxMax|price }} {% endif %} {% else %} {{ product.getProduct.getPrice02IncTaxMin|price }} {% endif %} </p> </a> </li> {% endfor %} </ul> </div> #} </div> <div class="side-bar"> {% set categoryRepository = repository('Plugin\\CMBlogPro42\\Entity\\Category') %} {% set blogCategoryRepository = repository('Plugin\\CMBlogPro42\\Entity\\BlogCategory') %} <div class="month-archive"> <h5 class="tag-header">CATEGORY</h5> <div class="category-link"> {% for Category in categoryRepository.findAll() %} <a href="{{ url('cm_blog_pro_page_list', {categories: [Category.getId()]}) }}" class="list_category_link"> > {{ Category.getName|raw }} ({{ blogCategoryRepository.findBy({'Category': Category})|length }}) </a> {% endfor %} </div> </div> </div></div>{% endblock %}