postlist.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {volist name='postlist' id='post'}
  2. <div class="cl-card">
  3. <div class="row">
  4. <div class="col-lg-3 col-md-4 col-sm-12 cl-card-image img-zoom">
  5. <div class="object-responsive object-responsive-4by3">
  6. <a href="{$post.url}"><img src="{$post.thumb}" class="img-fluid" alt=""></a>
  7. </div>
  8. </div>
  9. <div class="col-lg-9 col-md-8 col-sm-12 cl-card-main">
  10. <h3 class="cl-card-main-title"><a href="{$post.url}">{$post.title|htmlentities}</a></h3>
  11. <div class="cl-card-main-info">{$post.summary|strip_tags|htmlentities}</div>
  12. <div class="cl-card-more"><a href="{$post.url}">阅读更多...</a></div>
  13. </div>
  14. </div>
  15. </div>
  16. {/volist}
  17. {if $config.pagemode=='normal'}
  18. <!-- S 分页栏 -->
  19. <div class="text-center pager">
  20. {:$postlist->render()}
  21. </div>
  22. <!-- E 分页栏 -->
  23. {if $postlist->isEmpty()}
  24. <div class="loadmore loadmore-line loadmore-nodata"><span class="loadmore-tips">暂无数据</span></div>
  25. {/if}
  26. {else/}
  27. {if $postlist->isEmpty()}
  28. <div class="loadmore loadmore-line loadmore-nodata"><span class="loadmore-tips">暂无更多数据</span></div>
  29. {else /}
  30. <div class="text-center">
  31. <a href="?page={:$postlist->getNextPage()}" data-page="{:$postlist->getNextPage()}" class="btn btn-default my-4 px-4 btn-loadmore">加载更多</a>
  32. </div>
  33. {/if}
  34. {/if}