v1.6

un_arr_sort

内链导航

二维数组按数组里的某个字段排序

{volist name="$val.child|un_arr_sort='reorder','desc'"  id="vo"}
{if condition="$key < 5"}
<div class="col-lg-4 col-md-6">                             
	<div class="s-single-services services-box2 mb-30">
		<div class="services-icon">
			 {if condition="$key == 0"}<i class="flaticon flaticon-home"></i>{/if}
			 {if condition="$key == 1"}<i class="flaticon flaticon-hotel"></i>{/if}
			 {if condition="$key == 2"}<i class="flaticon flaticon-hand-drill"></i>{/if}
			 {if condition="$key == 3"}<i class="flaticon flaticon-truck"></i>{/if}
			 {if condition="$key == 4"}<i class="flaticon flaticon-hook"></i>{/if}
		  </div>
		 <div class="services-content2">
			 <h5><a href="{$vo.url}">{$vo.title}</a></h5>   
			  <p></p>
		 </div>
	</div>              
</div>
{/if}

{/volist}