{capture name=detailMode} {if ($theme.detailMode)} summary | {g->text text="detail"} {else} summary | {g->text text="detail"} {/if} {/capture} {g->text text="display mode: %s" arg1=$smarty.capture.detailMode}