Location: PHPKode > projects > Blandware AtLeap Lite - CMS on PHP > atleaplite/smarty/templates/news/showArchive.tpl
{* Smarty template *}
{message key='common.button.create' assign='createText'}
{message key='common.button.edit' assign='updateText'}
{message key='common.button.delete' assign='deleteText'}
{buildUrl action='callCreatePage' languageCode=$currentLanguage layout='newsItem' assign='createUri' returnUrl=$localRequestUri}
<ul>
{foreach from=$data item=newsItem}
    <li>
        {buildUrl action='callUpdatePage' assign='updateUri' returnUrl=$localRequestUri id=$newsItem->id}
        {buildUrl action='deletePage' assign='deleteUri' returnUrl=$localRequestUri id=$newsItem->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}
            {formatDate date=$newsItem->publication_date|escape}&nbsp;&nbsp;
            {$newsItem->title|escape}&nbsp;&nbsp;
            <a href="{buildUrl identifier=$newsItem->identifier friendly='page' language=$newsItem->language}">
                {message key='newsItem.form.moreInfo'}
            </a>
        {/contextMenu}
        {ifEditMode}
            {include file='context_menu.tpl'}
        {/ifEditMode}
    </li>
{/foreach}
</ul>
{if $dataIsEmpty}
{contextMenu link_1=$createUri text_1=$createText permId_1='createPage'
        editModeOnly=true}
    <div>
        <em>{message key="newsItem.message.nothing"}</em>
    </div>
{/contextMenu}
{ifEditMode}
    {include file='context_menu.tpl'}
{/ifEditMode}
{/if}

{include file="pager.tpl"}

{include file="bottom_links.tpl"}
<br>
{include file="bottom_buttons.tpl"}
Return current item: Blandware AtLeap Lite - CMS on PHP