summaryrefslogtreecommitdiff
path: root/templates/menu_pigeonholes.tpl
blob: cf963452e60b4b821a9ffea652a62b8a1fe5e651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{strip}
<ul>
	{if $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' )}
		<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}edit_pigeonholes.php?action=create">{biticon ipackage=liberty iname=new iexplain="Create Category"} {tr}Create Category{/tr}</a></li>
	{/if}

	{if $gBitUser->hasPermission( 'bit_p_view_pigeonholes' )}
		<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}list.php">{biticon ipackage=liberty iname=list iexplain="List Categories"} {tr}List Categories{/tr}</a></li>
		{if $gPigeonholes->mStructureId}
			<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}view.php?structure_id={$gPigeonholes->mStructureId}">{biticon ipackage=liberty iname=spacer iexplain=""} {tr}View Category{/tr}</a></li>
			{if $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' ) and $gPigeonholes->mStructureId}
				<li><a class="head" href="{$smarty.const.PIGEONHOLES_PKG_URL}edit_pigeonholes.php?structure_id={$gPigeonholes->mInfo.structure_id}">{biticon ipackage=liberty iname=edit iexplain="Edit Category"} {tr}Edit Category{/tr}</a>
					<ul>
						<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}edit_pigeonholes.php?structure_id={$gPigeonholes->mInfo.root_structure_id}&amp;action=create">{biticon ipackage=liberty iname=new iexplain="Insert Category"} {tr}Insert Category{/tr}</a></li>
						<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}edit_structure.php?structure_id={$gPigeonholes->mInfo.structure_id}">{biticon ipackage=pigeonholes iname=organise iexplain="Change Structure"} {tr}Change Structure{/tr}</a></li>
					</ul>
				</li>
			{/if}
		{/if}
	{/if}

	{if $gBitUser->hasPermission( 'bit_p_insert_pigeonholes' )}
		<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}assign_non_members.php">{biticon ipackage=liberty iname=assign iexplain="Assign Content"} {tr}Assign Content{/tr}</a></li>
	{/if}
</ul>
{/strip}