summaryrefslogtreecommitdiff
path: root/templates/menu_pigeonholes.tpl
blob: 05366275b30702d0a6236773116a2f2bfa197c44 (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( 'p_pigeonholes_edit' )}
		<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}edit_pigeonholes.php?action=create">{biticon ipackage=liberty iname=new iexplain="Create Category" iforce="icon"} {tr}Create Category{/tr}</a></li>
	{/if}

	{if $gBitUser->hasPermission( 'p_pigeonholes_view' )}
		<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}list.php">{biticon ipackage=liberty iname=list iexplain="List Categories" iforce="icon"} {tr}List Categories{/tr}</a></li>
		{if $gContent->mStructureId}
			<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}view.php?structure_id={$gContent->mStructureId}">{biticon ipackage=liberty iname=spacer iexplain="" iforce="icon"} {tr}View Category{/tr}</a></li>
			{if $gBitUser->hasPermission( 'p_pigeonholes_edit' ) and $gContent->mStructureId}
				<li><a class="head" href="{$smarty.const.PIGEONHOLES_PKG_URL}edit_pigeonholes.php?structure_id={$gContent->mInfo.structure_id}">{biticon ipackage=liberty iname=edit iexplain="Edit Category" iforce="icon"} {tr}Edit Category{/tr}</a>
					<ul>
						<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}edit_pigeonholes.php?structure_id={$gContent->mInfo.root_structure_id}&amp;action=create">{biticon ipackage=liberty iname=new iexplain="Insert Category" iforce="icon"} {tr}Insert Category{/tr}</a></li>
						<li><a class="item" href="{$smarty.const.PIGEONHOLES_PKG_URL}edit_structure.php?structure_id={$gContent->mInfo.structure_id}">{biticon ipackage=pigeonholes iname=organise iexplain="Change Structure" iforce="icon"} {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_content.php">{biticon ipackage=liberty iname=assign iexplain="Assign Content" iforce="icon"} {tr}Assign Content{/tr}</a></li>
	{/if}
</ul>
{/strip}