aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/template/menubar.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2012-02-16 11:51:34 +0000
committerpatdenice <patdenice@piwigo.org>2012-02-16 11:51:34 +0000
commita7f70524df847f3dd8e53e0e07b67597edb1631c (patch)
treedb87ef3bae8722e2439c85edcc67f6d280aef91e /themes/smartpocket/template/menubar.tpl
parent4f2ae7cbcece6409b2b7e6e2ec4b73ad04917c5e (diff)
feature:2577
Add mobile theme git-svn-id: http://piwigo.org/svn/trunk@13182 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--themes/smartpocket/template/menubar.tpl29
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/smartpocket/template/menubar.tpl b/themes/smartpocket/template/menubar.tpl
new file mode 100644
index 000000000..49fa37e14
--- /dev/null
+++ b/themes/smartpocket/template/menubar.tpl
@@ -0,0 +1,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}