app/template/user_data/campaign/index.twig line 1

Open in your IDE?
  1. {% extends '@user_data/layout/default_frame.twig' %}
  2. {% block title %}
  3. キャンペーン | オリジナル缶バッジ/カンバッチ製作【個人小ロットから業務用OEMまで激安印刷】ZEAMI Goods
  4. {% endblock %}
  5. {% block content %}
  6. <!-- ▼▼ MAIN CONTENTS __________________________________________________________________________________________________ ▼▼ -->
  7. <main
  8. id="mainContents">
  9. <!-- // ++ パンクズ ++ //////////////////////////////////////////////////////////// // -->
  10. <div id="bread_crumbBloc" class="fades">
  11. <ul id="breadCrumb" class="fades">
  12. <li class="up">
  13. <a href="/"><img src="{{ asset('assets/img/icon_home.png') }}" alt="ホーム"></a>
  14. </li>
  15. <li class="up">キャンペーン</li>
  16. </ul>
  17. <!-- ///// #breadCrumb +++++ ///// -->
  18. <!-- ///// +++++ #bread_crumbBloc +++++ ///// -->
  19. </div>
  20. <!-- // == MAIN ================================================================================ // -->
  21. <section
  22. id="Campaign" class="section_basic">
  23. <!-- // ++ 開催中のキャンペーン ++ /////////////////////////////////////////////////////////////// -->
  24. <div class="one_box">
  25. <div id="section_titleBloc" class="fades">
  26. <h3 class="section_title up center">現在開催中のキャンペーン</h3>
  27. </div>
  28. <!-- ///// #section_titleBloc +++++ ///// -->
  29. <ul id="current-campaignList" class="fades">
  30. {% if(currentCampaign) %}
  31. <li class="up">
  32. <a href="/campaign_detail/{{ currentCampaign.id }}">
  33. {% if(currentCampaign) %}
  34. <img src="{{ asset(currentCampaign.image|no_image_product, 'save_image') }}" alt="campaign">
  35. {% endif %}
  36. </a>
  37. </li>
  38. {% endif %}
  39. </ul>
  40. <!-- ///// #current-campaignList +++++ ///// -->
  41. <!-- ///// .one_box **** ///// -->
  42. </div>
  43. <!-- // ++ 過去のキャンペーン ++ /////////////////////////////////////////////////////////////// -->
  44. <div class="one_box">
  45. <div id="section_titleBloc" class="fades">
  46. <h3 class="section_title up center">過去のキャンペーン</h3>
  47. </div>
  48. <!-- ///// #section_titleBloc +++++ ///// -->
  49. <ul
  50. id="past-campaignList" class="fades">
  51. {% for campaign in campaigns %}
  52. <!-- ☆☆ ONE CAMPAIGN ☆☆ -->
  53. <li class="one_campaign up">
  54. <figure class="campaign_thumb fades">
  55. {% set now = "now"|date %}
  56. {% set end_date = campaign.end_date|date %}
  57. {% if end_date < now %}
  58. <p class="mark_over"><img src="{{ asset('assets/img/mark_end.png') }}" alt="終了しました"></p>
  59. {% endif %}
  60. <img
  61. src="{{ asset('assets/img/campaign_thumb_cover.gif') }}" style="background-image: url('{{ asset(campaign.image|no_image_product, 'save_image') }}');">
  62. <!-- //// .campaign_thumb **** //// -->
  63. </figure>
  64. <div class="thumb_campaign_title_box fades">
  65. <a href="/campaign_detail/{{ campaign.id }}" style="text-decoration: none"><h4 class="campaign_list_title up">{{campaign.title}}</h4></a>
  66. <p class="campaign_list_date up">開催期間<span>{{campaign.start_date|date('Y.m.d')}}〜{{campaign.end_date|date('Y.m.d')}}</span>
  67. </p>
  68. <!-- //// .thumb_campaign_title_box **** //// -->
  69. </div>
  70. </li>
  71. <!-- //// **** .one_campaign **** //// -->
  72. {% endfor %}
  73. </ul>
  74. <!-- ///// #current-campaignList +++++ ///// -->
  75. <!-- ///// .one_box **** ///// -->
  76. </div>
  77. </section>
  78. <!-- ///// +++++ #News +++++ ///// -->
  79. <!-- ///// +++++ #mainContents +++++ ///// -->
  80. </main>
  81. {% endblock %}