{literal} {/literal} {if $_vars.pages} {/if} {capture name=scripts_endbody} {$smarty.capture.scripts_endbody} {/capture}