app/template/user_data/news.twig line 1

Open in your IDE?
  1. {% extends '@user_data/layout/default_frame.twig' %}
  2. {% block title %}
  3. お知らせ | こだわり品質【小ロット1個から】ZEAMI Goods
  4. {% endblock %}
  5. {% block content %}
  6. <!-- ▼▼ MAIN CONTENTS __________________________________________________________________________________________________ ▼▼ -->
  7. <main id="mainContents">
  8. <!-- // ++ パンクズ ++ //////////////////////////////////////////////////////////// // -->
  9. <div id="bread_crumbBloc" class="fades">
  10. <ul id="breadCrumb" class="fades">
  11. <li class="up"><a href="/"><img src="{{ asset('assets/img/icon_home.png') }}" alt="ホーム"></a></li>
  12. <li class="up">お知らせ</li>
  13. </ul><!-- ///// #breadCrumb +++++ ///// -->
  14. <!-- ///// +++++ #bread_crumbBloc +++++ ///// --></div>
  15. <!-- // == MAIN ================================================================================ // -->
  16. <section id="News" class="section_basic">
  17. <!-- // ++ ページタイトル ++ /////////////////////////////////////////////////////////////// -->
  18. <div id="section_titleBloc" class="fades">
  19. <h3 class="section_title up center">お知らせ一覧</h3>
  20. <!-- ///// #section_titleBloc +++++ ///// --></div>
  21. <!-- // ++ お知らせ一覧 ++ /////////////////////////////////////////////////////////////// -->
  22. <ul id="newsList" class="up">
  23.  {% for news in newsList %}
  24.   <!-- ☆☆ ONE NEWS ☆☆ -->
  25.   {% if news.is_notification %}
  26.     <li class="one_news up"><a href="news_article/{{ news.id}}">
  27.       <figure class="news_thumb fades">
  28.         <img src="{{ asset('assets/img/new_thumb_cover.gif') }}" style="background-image: url('{{ asset(news.image|no_image_product, 'save_image') }}');">
  29.       <!-- //// .news_thumb **** //// --></figure>
  30.       <div class="thumb_news_title_box fades">
  31.         <h4 class="news_list_title up">{{news.title}}</h4>
  32.         <p class="news_list_update up">{{ news.publish_date|date('Y.m.d D') }}</p>
  33.       <!-- //// .thumb_news_title_box **** //// --></div>
  34.     </a></li><!-- //// **** .one_news **** //// -->
  35.   {% endif %}
  36. {% endfor %}
  37. <!-- ///// #newsList +++++ ///// --></ul>
  38. </section><!-- ///// +++++ #News +++++ ///// -->
  39. <!-- ///// +++++ #mainContents +++++ ///// --></main>
  40. {% endblock %}