[%if espcms_count($array)>0%]

[%forlist from=$array key=i%]

- [%$array[i].file_filename%]

[%/forlist%]

[%/if%]

[%if $dir_read.filedir_id%]

- [%pack:filemanage_pack-espcms_lable_filemanage_gobackdir%]

[%/if%] [%if espcms_count($array_dir)>0%] [%forlist from=$array_dir key=i%]

- [%$array_dir[i].filedir_name%]

[%/forlist%] [%/if%] [%if espcms_count($array)>0%] [%forlist from=$array key=i%]

- [%if $array[i].file_ext=='jpg' || $array[i].file_ext=='png' || $array[i].file_ext=='gif' || $array[i].file_ext=='jpeg'%] [%else%] [%/if%]

  [%$array[i].file_filename%]

[%/forlist%] [%/if%]