{if($lists)} <ul class="pagination"> <li class="page-item {if(!$listpage['prev'])}disabled{/if}"> <a class="page-link" href="{$listpage['prev']}" aria-label="Previous"><span aria-hidden="true">«</span></a></li> {for $i=1;$i<=$listpage['allpage'];$i++} {if($i==$listpage['current_num'])} <li class="page-item active background"><a href="{$listpage['current']}" class="page-link">{$i}</a></li> {else} <li class="page-item"><a href="{fun str_replace('.html','-'.$i.'.html',$listpage['home'])}" class="page-link">{$i}</a></li> {/if} {/for} <li class="page-item {if(!$listpage['next'])}disabled{/if}"><a class="page-link" href="{$listpage['next']}" aria-label="Next"><span aria-hidden="true">»</span></a></li> </ul> {/if}