aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/template/menubar.tpl
blob: e4679c98e8596867defc397cb618dee765674ef1 (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
<select name="identification" id="identification" data-icon="grid" data-iconpos="notext" data-native-menu="false">

  <option></option>
  <optgroup label="{'Identification'|@translate}">

	{if isset($U_REGISTER)}
	<option value="{$U_REGISTER}">{'Register'|@translate}</option>
	{/if}
	{if isset($U_LOGIN)}
	<option value="{$U_LOGIN}">{'Login'|@translate}</option>
	{/if}
	{if isset($U_LOGOUT)}
	<option value="{$U_LOGOUT}">{'Logout'|@translate}</option>
	{/if}
	{if isset($U_PROFILE)}
	<option value="{$U_PROFILE}">{'Customize'|@translate}</option>
	{/if}
	{if isset($U_ADMIN)}
	<option value="{$U_ADMIN}">{'Administration'|@translate}</option>
	{/if}

  </optgroup>

</select>

{footer_script}{literal}
$(document).ready(function() {
  $('#identification').change(function() {
    window.location = this.value;
  });
});
{/literal}{/footer_script}