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

  <option value="" data-placeholder="true">{'Identification'|@translate}</option>

	{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}

</select>

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