aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-blue/theme.php
blob: 38a282d3b565eb6591930d7beab048fa06d50b76 (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php

/*
 * Name: Diabook-blue
 * Description: Diabook-blue: 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 type="text/javascript" src="view/theme/diabook/lightbox/js/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="view/theme/diabook/lightbox/css/jquery.lightbox-0.5.css" media="screen" />


<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();
 });
 //appsmenu
 $('html').click(function() {
 $('#nav-apps-link').removeClass('selected');
 document.getElementById( "nav-apps-menu" ).style.display = "none";
 });

 $('#nav-apps-link').click(function(event){
     event.stopPropagation();
 });
 
 $(function() {
	$('a.lightbox').lightBox(); // Select all links with lightbox class
});

 
 </script>
EOT;