{extend name='main'} {block name="button"} {if auth("add_message")} 添加公告 {/if} {/block} {block name="content"}