app/template/default/Block/top_news.twig line 1

Open in your IDE?
  1. <div id="topnews_titles"><dl><dt><h2 class="toptitleh2">- Topics -</h2></dt><dd><h2 class="toptitleh2">- Information -</h2></dd></dl></div>
  2.  <div id="topnews_over">
  3. <div id="topnews_wrap2"><dl>
  4. <dt id="topnews_wrap_left2">
  5.         
  6.         <h2 class="toptitleh2">- Topics -</h2>
  7.         
  8.         <script>$(function(){$("#html_tweet").load("/user_data/tweet");});</script>
  9.         <div id="html_tweet"></div>
  10.         
  11.     </dt>
  12.     <dt id="topnews_wrap_left">
  13.         <h2 class="toptitleh2">- Information -</h2>
  14.         <ul class="newslist">
  15. {% for row in rows1 %}
  16. {% if loop.index <= 4 %}
  17. <li><a href="{{ url("plugin_pia_blog_detail") }}?id={{ row.id }}">
  18.     <span class="img"><img src="{{ htImg[row.id]|no_image_product }}" alt="{{ row.title }}"></span>
  19.     <div>
  20.         <p class="day_cate"><span>{{ row.news_date|date('Y年n月j日') }}</span><b class="new">ニュース</b></p>
  21.         <h3>{{ row.title }}</h3>
  22.         <p class="txt">{{ row.description|striptags|length > 200 ? row.description|striptags|slice(0, 200) ~ '...' : row.description|striptags }}</p>
  23.     </div>
  24. </a></li>
  25. {% endif %}
  26. {% endfor %}            
  27.         </ul>
  28.         <a href="/blog_news/" class="morelink">more<i class="fa-solid fa-angle-right"></i></a>
  29.     </dt>
  30.     
  31.     <dd id="topnews_wrap_right">  
  32.         <ul class="newslist">
  33. {% for row in rows2 %}
  34. {% if loop.index <= 4 %}          
  35. <li><a href="{{ url("plugin_pia_blog_detail") }}?id={{ row.id }}">
  36.     <span class="img"><img src="{{ htImg[row.id]|no_image_product }}" alt="{{ row.title }}"></span>
  37.     <div>
  38.         <p class="day_cate"><span>{{ row.news_date|date('Y年n月j日') }}</span><b class="products">入荷情報</b></p>
  39.         <h3>{{ row.title }}</h3>
  40.         <p class="txt">{{ row.description|striptags|length > 200 ? row.description|striptags|slice(0, 200) ~ '...' : row.description|striptags }}</p>
  41.     </div>
  42. </a></li>
  43. {% endif %}
  44. {% endfor %} 
  45.         </ul>
  46.     </dd>
  47.     
  48. </dl></div></div><!-- //topnews_over -->