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

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% set title = News.title|default('お知らせ') %}
  3. {% set body_class = 'news_detail_page' %}
  4. {% block stylesheet %}
  5.   <link rel="stylesheet" href="{{ asset('assets/css/news-detail.css') }}">
  6. {% endblock %}
  7. {% block main %}
  8.   <!-- breadcrumb section -->
  9.   <div class="breadcrumb-section">
  10.     <div class="container-1360 border-box px-40">
  11.       <nav class="breadcrumb">
  12.         <a href="{{ url('homepage') }}" class="breadcrumb__item text-black">ホーム</a>
  13.         <img src="{{ asset('assets/img/default/icons/icon-breadcrumb-arrow.svg') }}" alt=">" class="breadcrumb__separator">
  14.         <a href="{{ url('news_list') }}" class="breadcrumb__item text-black">お知らせ</a>
  15.         <img src="{{ asset('assets/img/default/icons/icon-breadcrumb-arrow.svg') }}" alt=">" class="breadcrumb__separator">
  16.         <span class="breadcrumb__item breadcrumb__item--current">{{ News.title }}</span>
  17.       </nav>
  18.     </div>
  19.   </div>
  20.   <!-- news-detail section -->
  21.   <div class="container-1200">
  22.     <div class="news-detail-wrapper">
  23.       <!-- News-detail Title Section -->
  24.       <div class="top-header-title-section">
  25.         <div class="top-header-icon-text">
  26.           <div class="top-header-icon-text">
  27.             <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  28.               <path d="M7.08203 12.5H7.08301V17.5H5.41602V13.335H2.91504C2.45495 13.3348 2.08203 12.9611 2.08203 12.501V7.50098C2.08221 7.041 2.45506 6.66814 2.91504 6.66797H7.08203V12.5ZM17.083 8.33203H17.916V11.665H17.083V17.5H15.416V17.499L8.75293 13.335H8.75V6.66797H17.083V8.33203ZM17.083 6.66699H8.75L15.416 2.5H17.083V6.66699Z" fill="#00A854"/>
  29.             </svg>
  30.             <span class="top-header-text">お知らせ</span>
  31.           </div>
  32.         </div>
  33.         <h1 class="top-header-title">NEWS</h1>
  34.       </div>
  35.       <!-- news-detail content section -->
  36.       <div class="news-detail-content-section">
  37.         <!-- News Title and Date -->
  38.         <div class="news-detail-header">
  39.           <div class="news-date">{{ News.publishDate|date('Y.m.d') }}</div>
  40.           <h1 class="news-title">{{ News.title }}</h1>
  41.         </div>
  42.         <!-- Divider Line -->
  43.         <div class="news-divider"></div>
  44.         {% if News.description %}
  45.           <!-- News Content -->
  46.           <div class="news-content-wrapper custom_css_editor">
  47.             {{ News.description|raw }}
  48.           </div>
  49.         {% endif %}
  50.         {% if News.url %}
  51.           <!-- External Link -->
  52.           <div class="news-external-link-section">
  53.             <a href="{{ News.url }}" {% if News.isLinkMethod %}target="_blank" rel="noopener noreferrer"{% endif %} class="link-base">
  54.               詳細情報を見る
  55.             </a>
  56.           </div>
  57.         {% endif %}
  58.         <!-- Bottom Divider -->
  59.         <div class="news-bottom-divider"></div>
  60.         <!-- Back Button -->
  61.         <div class="news-back-button-section">
  62.           <a href="{{ url('news_list') }}" class="news-back-button">
  63.             <div class="news-back-button-icon">
  64.               <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
  65.                 <path d="M1.74805 6.00098L1.75098 6.00391L1.74805 6.00684L6.27344 10.5312L7.4043 9.40039L4.80566 6.80273H10.2715V5.20312H4.80762L7.4043 2.60742L6.27344 1.47656L1.74805 6.00098Z" fill="#FBE800"/>
  66.               </svg>
  67.             </div>
  68.             <span class="news-back-button-text">前のページに戻る</span>
  69.           </a>
  70.         </div>
  71.       </div>
  72.     </div>
  73.   </div>
  74. {% endblock %}