aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authortomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net>2012-03-09 09:17:01 -0800
committertomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net>2012-03-09 09:17:01 -0800
commit68ca29719e6eb168ca3efa2d60026da924a0e03b (patch)
tree470f2e7c84a5959f7e51c6c68e2a97a99266e136 /view/theme
parent68541b5dd2f5f83a02133406538b33a17c422e87 (diff)
parent8fe4645a5d97a66b823744248698c624f7146d5b (diff)
downloadvolse-hubzilla-68ca29719e6eb168ca3efa2d60026da924a0e03b.tar.gz
volse-hubzilla-68ca29719e6eb168ca3efa2d60026da924a0e03b.tar.bz2
volse-hubzilla-68ca29719e6eb168ca3efa2d60026da924a0e03b.zip
Merge pull request #116 from tomtom84/master
fixes in diabook-derivates
Diffstat (limited to 'view/theme')
-rwxr-xr-xview/theme/diabook-blue/icons/starred.pngbin1617 -> 501 bytes
-rwxr-xr-xview/theme/diabook-blue/theme.php66
-rwxr-xr-xview/theme/diabook/icons/starred.pngbin1617 -> 501 bytes
-rw-r--r--view/theme/diabook/nav.tpl2
-rwxr-xr-xview/theme/diabook/theme.php66
5 files changed, 134 insertions, 0 deletions
diff --git a/view/theme/diabook-blue/icons/starred.png b/view/theme/diabook-blue/icons/starred.png
index 72a49c157..2b82dfca3 100755
--- a/view/theme/diabook-blue/icons/starred.png
+++ b/view/theme/diabook-blue/icons/starred.png
Binary files differ
diff --git a/view/theme/diabook-blue/theme.php b/view/theme/diabook-blue/theme.php
new file mode 100755
index 000000000..0a20c9fbc
--- /dev/null
+++ b/view/theme/diabook-blue/theme.php
@@ -0,0 +1,66 @@
+<?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;
diff --git a/view/theme/diabook/icons/starred.png b/view/theme/diabook/icons/starred.png
index 72a49c157..2b82dfca3 100755
--- a/view/theme/diabook/icons/starred.png
+++ b/view/theme/diabook/icons/starred.png
Binary files differ
diff --git a/view/theme/diabook/nav.tpl b/view/theme/diabook/nav.tpl
index 174312d2d..8b32ebe6c 100644
--- a/view/theme/diabook/nav.tpl
+++ b/view/theme/diabook/nav.tpl
@@ -26,6 +26,7 @@
<li id="nav-contacts-all"><a href="contacts">$nav.contacts.1</a></li>
</ul>
</li>
+
{{ endif }}
{{ if $nav.messages }}
@@ -145,6 +146,7 @@
+
<ul id="nav-notifications-template" style="display:none;" rel="template">
<li class="{4}"><a href="{0}"><img src="{1}">{2} <span class="notif-when">{3}</span></a></li>
</ul>
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
new file mode 100755
index 000000000..0a20c9fbc
--- /dev/null
+++ b/view/theme/diabook/theme.php
@@ -0,0 +1,66 @@
+<?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;