Location: PHPKode > projects > Blandware AtLeap Lite - CMS on PHP > atleaplite/smarty/templates/misc/site_map.tpl
{* Smarty template *}
{message key='common.button.create' assign='createText'}
{message key='common.button.edit' assign='updateText'}
{message key='common.button.delete' assign='deleteText'}
<ul style="list-style-type: none; margin-top: 0px; padding-top: 0px;">
{buildUrl action='callCreatePage' assign='createUri' returnUrl=$localRequestUri}
{foreach from=$pages item=page}
    <li>
        {buildUrl action='callUpdatePage' assign='updateUri' returnUrl=$localRequestUri id=$page->id}
        {buildUrl action='deletePage' assign='deleteUri' returnUrl=$localRequestUri id=$page->id}
        {if $page->fixed}{assign var='deleteUri' value=''}{/if}
        {contextMenu link_1=$createUri text_1=$createText permId_1='createPage'
                link_2=$updateUri text_2=$updateText permId_2='updatePage'
                link_3=$deleteUri text_3=$deleteText confirm_3=true permId_3='deletePage'
                editModeOnly=true}
            <a href="{buildUrl friendly='page' identifier=$page->identifier language=$page->language}">{$page->title|escape}</a>
        {/contextMenu}
        {ifEditMode}
            {include file='context_menu.tpl'}
        {/ifEditMode}
    </li>
{foreachelse}
    {ifEditMode}
    <li>
        {contextMenu link_1=$createUri text_1=$createText permId_1='createPage'
                editModeOnly=true}
            <div>{message key='page.message.nothing'}</div>
        {/contextMenu}
        {include file='context_menu.tpl'}
    </li>
    {/ifEditMode}
{/foreach}
{buildUrl action='callCreateResource' assign='createUri' returnUrl=$localRequestUri}
{foreach from=$files item=file}
    <li>
        {buildUrl action='callUpdateResource' assign='updateUri' returnUrl=$localRequestUri id=$file->id}
        {buildUrl action='deleteResource' assign='deleteUri' returnUrl=$localRequestUri id=$file->id}
        {contextMenu link_1=$createUri text_1=$createText permId_1='createResource'
                link_2=$updateUri text_2=$updateText permId_2='updateResource'
                link_3=$deleteUri text_3=$deleteText confirm_3=true permId_3='deleteResource'
                editModeOnly=true}
            <img border="0" src="images/document.gif" align="absmiddle" />
            <a href="{buildUrl friendly='resource' fileName=$file->file_name}"{if !$file->download} target="_blank"{/if}>{$file->title|escape}</a>
        {/contextMenu}
        {ifEditMode}
            {include file='context_menu.tpl'}
        {/ifEditMode}
    </li>
{foreachelse}
    {ifEditMode}
    <li>
        {contextMenu link_1=$createUri text_1=$createText permId_1='createResource'
                editModeOnly=true}
            <div>{message key='resource.message.nothing'}</div>
        {/contextMenu}
        {include file='context_menu.tpl'}
    </li>
    {/ifEditMode}
{/foreach}
</ul>
Return current item: Blandware AtLeap Lite - CMS on PHP