]> git.mxchange.org Git - friendica.git/blob - view/theme/dispy-dark/theme.php
Merge branch 'master', remote-tracking branch 'remotes/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: 1.0
7  * Author: Simon <http://simon.kisikew.org/>
8  * Maintainer: Simon <http://simon.kisikew.org/>
9  * Screenshot: <a href="screenshot.png">screenshot</a>
10  */
11
12
13 $a->theme_info = array(
14         'extends' => 'dispy-dark'
15 );
16
17 $a->page['htmlhead'] .= <<< EOT
18 <script>
19 $(document).ready(function() {
20     $('.group-edit-icon').hover(
21         function() {
22             $(this).addClass('icon');
23             $(this).removeClass('iconspacer'); },
24
25         function() {
26             $(this).removeClass('icon');
27             $(this).addClass('iconspacer'); }
28     );
29
30     $('.sidebar-group-element').hover(
31         function() {
32             id = $(this).attr('id');
33             $('#edit-' + id).addClass('icon');
34             $('#edit-' + id).removeClass('iconspacer'); },
35
36         function() {
37             id = $(this).attr('id');
38             $('#edit-' + id).removeClass('icon');
39             $('#edit-' + id).addClass('iconspacer'); }
40     );
41
42     $('.savedsearchdrop').hover(
43         function() {
44             $(this).addClass('drop');
45             $(this).addClass('icon');
46             $(this).removeClass('iconspacer'); },
47
48         function() {
49             $(this).removeClass('drop');
50             $(this).removeClass('icon');
51             $(this).addClass('iconspacer'); }
52     );
53
54     $('.savedsearchterm').hover(
55         function() {
56             id = $(this).attr('id');
57             $('#drop-' + id).addClass('icon');
58             $('#drop-' + id).addClass('drophide');
59             $('#drop-' + id).removeClass('iconspacer'); },
60
61         function() {
62             id = $(this).attr('id');
63             $('#drop-' + id).removeClass('icon');
64             $('#drop-' + id).removeClass('drophide');
65             $('#drop-' + id).addClass('iconspacer'); }
66         );
67
68         // click outside notifications menu closes it
69         $('html').click(function() {
70                 $('#nav-notifications-linkmenu').removeClass('selected');
71                 document.getElementById("nav-notifications-menu").style.display = "none";
72         });
73
74         $('#nav-notifications-linkmenu').click(function(event) {
75                 event.stopPropagation();
76         });
77         // click outside profiles menu closes it
78         $('html').click(function() {
79                 $('#profiles-menu-trigger').removeClass('selected');
80                 document.getElementById("profiles-menu").style.display = "none";
81         });
82
83         $('#profiles-menu').click(function(event) {
84                 event.stopPropagation();
85         });
86
87         // main function in toolbar functioning
88     function toggleToolbar() {
89         if ( $('#nav-floater').is(':visible') ) {
90             $('#nav-floater').slideUp('fast');
91             $('.floaterflip').css({
92                 backgroundPosition: '-210px -60px' 
93             });
94         } else {
95             $('#nav-floater').slideDown('fast');
96             $('.floaterflip').css({
97                 backgroundPosition: '-190px -60px'
98             });
99         }
100     };
101         // our trigger for the toolbar button
102     $('.floaterflip').click(function() {
103         toggleToolbar();
104         return false;
105     });
106
107         // (attempt) to change the text colour in a top post
108         $('#profile-jot-text').focusin(function() {
109                 $(this).css({color: '#eec'});
110         });
111
112 /*      $('#profile-photo-wrapper').mouseover(function() {
113                 $('.profile-edit-side-div').css({display: 'block'});
114         }).mouseout(function() {
115                 $('.profile-edit-side-div').css({display: 'none'});
116                 return false;
117         });
118
119         $('img.photo').mouseover(function() {
120                 $('.profile-edit-side-div').css({display: 'block'});
121         }).mouseout(function() {
122                 $('.profile-edit-side-div').css({display: 'none'});
123                 return false;
124         });*/
125
126 });
127 </script>
128 EOT;
129