{if $show_title eq 1}
{$TITLE}
<br/>
{/if}
<ul class="boxPopCats">
			{foreach from=$pages item=page name=pages}
   {if $page.PRIVACY == 1 && empty($regular_user_details)}
   
{else}
    <li {if $page.STATUS<2 || $rights.editPage eq 1 || $rights.delPage eq 1}style="clear: both;"{/if}>
        <a href="{$smarty.const.DOC_ROOT}/{if $smarty.const.ENABLE_REWRITE}{$page.SEO_NAME}{else}page.php?name={$page.SEO_NAME|replace:".html":""}{/if}" title="{$page.NAME}" {if $page.STATUS<2 || $rights.editPage eq 1 || $rights.delPage eq 1}class="float_tiny"{/if}>{$page.NAME}</a> 
        {if $page.STATUS<2 || $rights.editPage eq 1 || $rights.delPage eq 1}
        <div class="frontend_actions">
        {if $rights.editPage eq 1}
        <a href="{$smarty.const.DOC_ROOT}/inplace_editpage.php?ID={$page.ID}&TB_iframe=true&height=400&width=600"  onclick="return showThickbox(this);" class="thickbox">
        <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/edit.gif" width="14" height="14" style="border: none;" alt="edit page"/>
        </a>
        {/if}
        {if $rights.delPage eq 1}  
        <a href="{$smarty.const.DOC_ROOT}/inplace_editpage.php?ID={$page.ID}&mode=del&TB_iframe=true&height=100&width=250" class="thickbox" onclick="{literal}question = confirm('Are you sure you want to delete this page?');if (question !='0'){return showThickbox(this);} else return false;{/literal}">
        <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/delete.gif" width="14" height="14" style="border: none;" alt="delete page" class="float_tiny"/>
        </a>
        {/if}
        {if $page.STATUS <2 && $rights.editPage eq 1}
        <a href="{$smarty.const.DOC_ROOT}/inplace_editpage.php?ID={$page.ID}&mode=active&TB_iframe=true&height=100&width=250" class="thickbox" onclick="{literal}question = confirm('Are you sure you want to make this page active?');if (question !='0'){return showThickbox(this);} else return false;{/literal}">
        <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/active.gif" width="14" height="14" style="border: none;" alt="page is inactive" class="float_tiny"/>
        </a>
        {/if}
        {if $page.SHOW_IN_MENU <1 && $rights.editPage eq 1}
        <a href="{$smarty.const.DOC_ROOT}/inplace_editpage.php?ID={$page.ID}&mode=inmenu&TB_iframe=true&height=100&width=250" class="thickbox" onclick="{literal}question = confirm('Are you sure you want to make this page visible in menu?');if (question !='0'){return showThickbox(this);} else return false;{/literal}">
        <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/in_menu.gif" width="14" height="14" style="border: none;" alt="page is not in menu" class="float_tiny"/>
        </a>    
        {/if}
        </div>
         <div style="clear: both;"></div>
        {/if}
    </li>
    
    {/if}
   {/foreach}
			</ul>