]> git.mxchange.org Git - friendica.git/blob - view/theme/dispy-dark/theme.php
Merge remote branch 'upstream/master'
[friendica.git] / view / theme / dispy-dark / theme.php
1 <?php
2
3 /*
4  * Name: Dispy Dark
5  * Description: Dispy Dark, Friendica theme
6  * Version: 0.9
7  * Author: Simon <http://simon.kisikew.org/>
8  * Maintainer: Simon <http://simon.kisikew.org/>
9  */
10
11
12 $a->theme_info = array(
13         'extends' => 'dispy-dark'
14 );
15
16 $a->page['htmlhead'] .= <<< EOT
17 <script>
18 $(document).ready(function() {
19     $('.group-edit-icon').hover(
20         function() {
21             $(this).addClass('icon');
22             $(this).removeClass('iconspacer'); },
23
24         function() {
25             $(this).removeClass('icon');
26             $(this).addClass('iconspacer'); }
27     );
28
29     $('.sidebar-group-element').hover(
30         function() {
31             id = $(this).attr('id');
32             $('#edit-' + id).addClass('icon');
33             $('#edit-' + id).removeClass('iconspacer'); },
34
35         function() {
36             id = $(this).attr('id');
37             $('#edit-' + id).removeClass('icon');
38             $('#edit-' + id).addClass('iconspacer'); }
39     );
40
41     $('.savedsearchdrop').hover(
42         function() {
43             $(this).addClass('drop');
44             $(this).addClass('icon');
45             $(this).removeClass('iconspacer'); },
46
47         function() {
48             $(this).removeClass('drop');
49             $(this).removeClass('icon');
50             $(this).addClass('iconspacer'); }
51     );
52
53     $('.savedsearchterm').hover(
54         function() {
55             id = $(this).attr('id');
56             $('#drop-' + id).addClass('icon');
57             $('#drop-' + id).addClass('drophide');
58             $('#drop-' + id).removeClass('iconspacer'); },
59
60         function() {
61             id = $(this).attr('id');
62             $('#drop-' + id).removeClass('icon');
63             $('#drop-' + id).removeClass('drophide');
64             $('#drop-' + id).addClass('iconspacer'); }
65         );
66
67         // notifications
68         $('html').click(function() {
69                 $('#nav-notifications-linkmenu').removeClass('selected');
70                 document.getElementById("nav-notifications-menu").style.display = "none";
71         });
72
73         $('#nav-notifications-linkmenu').click(function(event) {
74                 event.stopPropagation();
75         });
76
77         // usermenu
78         //$('html').click(function() {
79 //              $('#user-menu-popup').css('display: none');
80                 //document.getElementById("usermenu-popup").style.display = "none";
81         //});
82
83         //$('#user-menu').click(function(event) {
84         //      event.stopPropagation();
85         //});
86
87     function toggleToolbar() {
88         if ( $('#nav-floater').is(':visible') ) {
89             $('#nav-floater').slideUp('fast');
90             $('.floaterflip').css({
91                 backgroundPosition: '-210px -60px' 
92             });
93         } else {
94             $('#nav-floater').slideDown('fast');
95             $('.floaterflip').css({
96                 backgroundPosition: '-190px -60px'
97             });
98         }
99     };
100     $('.floaterflip').click(function() {
101         toggleToolbar();
102         return false;
103     });
104
105         $('#profile-jot-text').focusin(function() {
106                 $(this).css({color: '#eec'});
107         });
108
109         $('#profile-photo-wrapper').mouseover(function() {
110                 $('#profile-edit-side-div').css({display: 'block'});
111         }).mouseout(function() {
112                 $('#profile-edit-side-div').css({display: 'none'});
113         });
114 });
115 </script>
116 EOT;
117