{if $Page->GetShowPageList()}
{capture assign="SideBar"}

    {$PageList}

{/capture}
{/if}

{capture assign="ContentBlock"}
    {$Grid}
{/capture}

{assign var="JavaScriptMain" value="pgui.view-page-main"}

{capture assign="Footer"}
    {$Page->GetFooter()}
{/capture}


{* Base template *}
{include file=$LayoutTemplateName}