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-searchnavRole__topicpath">
  12.     <ol class="ec-topicpath">
  13.       <li class="ec-topicpath__item"><a href="{{ url('news_index') }}">{{ 'ニュース一覧'|trans }}</a>
  14.       <li class="ec-topicpath__divider">|</li>
  15.       <li class="ec-topicpath__item--active">{{ news.title }}</li>
  16.     </ol>
  17.   </div>
  18. </div>
  19. <div class="ec-role">
  20.   <hr>
  21.   <div class="news-{{ news.id }} row">
  22.     <div class="col-md-8 col-md-offset-2">
  23.       <p class="text-right"><small>{{ news.publish_date|date("Y/m/d") }}</small></p>
  24.       <h1 class="npsr-title">{{ news.title }}</h1>
  25.       {% if news.np_thumbnail_url == true %}
  26.       <div class="npsr-thumbnail">
  27.         <img src="{{ asset( news.np_thumbnail_url , 'save_image') }}" alt="{{ news.title }}">
  28.       </div>
  29.       {% endif %}
  30.       <div class="npsr-content">
  31.         {{ news.description|raw }}
  32.       </div>
  33.     </div>
  34.   </div>
  35. </div>
  36. {% endblock %}