aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-03-11 20:22:28 +0100
committerMichael Vogel <icarus@dabo.de>2012-03-11 20:22:28 +0100
commitd653e27e2dfc172fd66a0987312952d736aca3e7 (patch)
treee0725ca5cf27fc4400a7566eebc0721528d69fd4 /view/theme/diabook/theme.php
parentebdf4842184cc8d0576abe99b29650c6b6512167 (diff)
parent1dad15a021cc5d03f4238ab77ff051fc0ca1e35e (diff)
downloadvolse-hubzilla-d653e27e2dfc172fd66a0987312952d736aca3e7.tar.gz
volse-hubzilla-d653e27e2dfc172fd66a0987312952d736aca3e7.tar.bz2
volse-hubzilla-d653e27e2dfc172fd66a0987312952d736aca3e7.zip
Merge commit 'upstream/master'
Conflicts: view/theme/diabook/wall_item.tpl view/theme/diabook/wallwall_item.tpl
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-xview/theme/diabook/theme.php67
1 files changed, 67 insertions, 0 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
new file mode 100755
index 000000000..5a1828ad7
--- /dev/null
+++ b/view/theme/diabook/theme.php
@@ -0,0 +1,67 @@
+<?php
+
+/*
+ * Name: Diabook
+ * Description: Diabook: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu
+ * Version:
+ * Author:
+ */
+
+$a->theme_info = array(
+ 'extends' => 'diabook',
+);
+
+$a->page['htmlhead'] .= <<< EOT
+<script>
+
+//contacts
+$('html').click(function() {
+ $('#nav-contacts-linkmenu').removeClass('selected');
+ document.getElementById( "nav-contacts-menu" ).style.display = "none";
+ });
+
+ $('#nav-contacts-linkmenu').click(function(event){
+ event.stopPropagation();
+ });
+
+//messages
+$('html').click(function() {
+ $('#nav-messages-linkmenu').removeClass('selected');
+ document.getElementById( "nav-messages-menu" ).style.display = "none";
+ });
+
+ $('#nav-messages-linkmenu').click(function(event){
+ event.stopPropagation();
+ });
+
+//notifications
+$('html').click(function() {
+ $('#nav-notifications-linkmenu').removeClass('selected');
+ document.getElementById( "nav-notifications-menu" ).style.display = "none";
+ });
+
+ $('#nav-notifications-linkmenu').click(function(event){
+ event.stopPropagation();
+ });
+
+//usermenu
+$('html').click(function() {
+ $('#nav-user-linkmenu').removeClass('selected');
+ document.getElementById( "nav-user-menu" ).style.display = "none";
+ });
+
+ $('#nav-user-linkmenu').click(function(event){
+ event.stopPropagation();
+ });
+
+ //settingsmenu
+ $('html').click(function() {
+ $('#nav-site-linkmenu').removeClass('selected');
+ document.getElementById( "nav-site-menu" ).style.display = "none";
+ });
+
+ $('#nav-site-linkmenu').click(function(event){
+ event.stopPropagation();
+ });
+</script>
+EOT;