app/template/default/News/detail.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% block main %}
  10. <div class="ec-searchnavRole">
  11.         <div class="ec-productRole">
  12.             <ol class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
  13.                 <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  14.                     <a itemprop="item" href="{{ url('homepage') }}">
  15.                         <span itemprop="name">TOP</span>
  16.                     </a>
  17.                     <meta itemprop="position" content="1"/>
  18.                 </li>
  19.                 <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  20.                         <span itemprop="name">{{ news.title }}</span>
  21.                     <meta itemprop="position" content="2"/>
  22.                 </li>
  23.             </ol>
  24.         </div>
  25. </div>
  26. <div class="ec-role">
  27.   <div class="news-{{ news.id }}">
  28.     <div class="ec-newsRole__wrap">
  29.       <p class="ec-newsRole__date"><small>{{ news.publish_date|date("Y/m/d") }}</small></p>
  30.       <h1 class="ec-newsRole__title">{{ news.title }}</h1>
  31.       {% if news.np_thumbnail_url == true %}
  32.       <div class="npsr-thumbnail">
  33.         <img src="{{ asset( news.np_thumbnail_url , 'save_image') }}" alt="{{ news.title }}">
  34.       </div>
  35.       {% endif %}
  36.       <div class="npsr-content">
  37.         {{ news.description|raw }}
  38.       </div>
  39.     </div>
  40.   </div>
  41. </div>
  42. {% endblock %}