summaryrefslogtreecommitdiff
path: root/templates/admin_themes_menus.tpl
blob: 212d58d009742b27865de6f71420f18211297217 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{strip}
<div class="admin themes">
	<div class="header">
		<h1>{tr}Active Menus{/tr}</h1>
	</div>

	<div class="body">
	
	{jstabs}
		{jstab title="Settings"}
		
			{form legend="Menu Settings"}
				{foreach from=$formMenuSettings key=feature item=output}
					<div class="control-group">
						{formlabel label=$output.label for=$feature}
						{forminput}
							{html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature}
							{formhelp hash=$output}
						{/forminput}
					</div>
				{/foreach}
        	
				<div class="control-group">
					{formlabel label="Menu Title" for="site_menu_title"}
					{forminput}
						<input size="40" type="text" name="site_menu_title" id="site_menu_title" value="{$gBitSystem->getConfig('site_menu_title')|escape}" />
						{formhelp note="Override the default home page link name in the top menu bar."}
					{/forminput}
				</div>

				<div class="control-group submit">
					<input type="submit" class="btn" name="menu_settings" value="{tr}Change preferences{/tr}" />
				</div>
			{/form}
		{/jstab}

		{jstab title="Effects"}
			{if $gBitSystem->isFeatureActive( 'site_top_bar_dropdown' )}
				{form legend="Menu Javascript Settings"}
					{foreach from=$formMenuJsSettings key=feature item=output}
						<div class="control-group">
							{formlabel label=$output.label for=$feature}
							{forminput}
								{html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature}
								{formhelp hash=$output}
							{/forminput}
						</div>
					{/foreach}
					<div class="control-group submit">
						<input type="submit" class="btn" name="menu_js_settings" value="{tr}Change preferences{/tr}" />
					</div>
				{/form}
			{else}
				<p class="warning">{tr}No menu enabled.{/tr}</p>
			{/if}
		{/jstab}

		{jstab title="Visibility"}
			{form legend="Top bar menu"}
				<p class="help">
					{tr}Select what menus to display at the <strong>top of the page</strong>, their order and what title they should have. If you don't provide positional information, they will be sorted alphabetically. To create <strong>custom menus</strong>, please use the Nexus package instead.{/tr}<br />
					{tr}If you can't see a menu at the top of your site and you want to have one, please go to the Layout Manager and add the 'top menu' kernel module to your layout.{/tr}
				</p>
				<table summary="{tr}Select menus to display, their order and titles.{/tr}">
					<thead>
						<tr>
							<th>{tr}Package{/tr}</th>
							<th>{tr}Title{/tr}</th>
							<th>{tr}Position{/tr}</th>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<td colspan="3">
								<div class="control-group submit">
									<input type="submit" class="btn" name="update_menus" value="{tr}Update Menus{/tr}" />
								</div>
							</td>
						</tr>
					</tfoot>
					<tbody>
						{foreach from=$gBitSystem->mAppMenu key=pkgName item=menu}
							{forminput}
								<tr>
									<td title="{tr}Visible?{/tr}">
										<input type="checkbox" name="menu_{$pkgName}" id="menu_{$pkgName}" {if !$menu.is_disabled}checked="checked"{/if}/>
										&nbsp;
										<label for="menu_{$pkgName}">{tr}{$pkgName}{/tr}
									</td>
									<td>
										<input type="text" name="{$pkgName}_menu_text" value="{$menu.menu_title|escape}"/>
									</td>
									<td>
										<input type="text" name="{$pkgName}_menu_position" size="2" value="{$menu.menu_position|escape}"/>
									</td>
								</tr>
							{/forminput}
						{/foreach}
					</tbody>
				</table>
			{/form}
		{/jstab}
	{/jstabs}


	</div> <!-- end .body -->
</div>  <!-- end .themes -->

{/strip}