function getTypeName($type) { return l("SHARE_".strtoupper($type)); } function getShareData($data) { return l("SHARE_DATA_".strtoupper($data)); }

{%SHARE_TITLE} |
{%SHARE_CONTENT} | {$share.content}
{%SHARE_TYPE} | {$share.type|getTypeName}
{%SHARE_TAGS} | {%SP_BY_QUOTE}
{%SHARE_PHOTO} | {%DELETE}
{%SHARE_GOODS} | {$goods.name|msubstr=0,7} {%DELETE} $goods['goods_id']))}">{%EDIT}
{%SHARE_CATEGORY} |
| ,{$cate.cate_id}" />