]> git.mxchange.org Git - friendica.git/blob - view/theme/darkzero-NS/theme.php
Merge pull request #66 from tomtom84/master
[friendica.git] / view / theme / darkzero-NS / theme.php
1 <?php
2
3 /*
4  * Name: Darkzero-NS
5  * Description: Darkzero theme with posts that do not scroll
6  * Version: 1.0
7  * Author: Mike Macgirvin <mike@macgirvin.com>
8  */
9
10 $a->theme_info = array(
11   'extends' => 'duepuntozero',
12 );
13
14 $a->page['htmlhead'] .= <<< EOT
15 <script>
16 $(document).ready(function() {
17
18 $('.group-edit-icon').hover(
19         function() {
20                 $(this).addClass('icon'); $(this).removeClass('iconspacer');},
21         function() {
22                 $(this).removeClass('icon'); $(this).addClass('iconspacer');}
23         );
24
25 $('.sidebar-group-element').hover(
26         function() {
27                 id = $(this).attr('id');
28                 $('#edit-' + id).addClass('icon'); $('#edit-' + id).removeClass('iconspacer');},
29
30         function() {
31                 id = $(this).attr('id');
32                 $('#edit-' + id).removeClass('icon');$('#edit-' + id).addClass('iconspacer');}
33         );
34
35
36 $('.savedsearchdrop').hover(
37         function() {
38                 $(this).addClass('drop'); $(this).addClass('icon'); $(this).removeClass('iconspacer');},
39         function() {
40                 $(this).removeClass('drop'); $(this).removeClass('icon'); $(this).addClass('iconspacer');}
41         );
42
43 $('.savedsearchterm').hover(
44         function() {
45                 id = $(this).attr('id');
46                 $('#drop-' + id).addClass('icon');      $('#drop-' + id).addClass('drophide'); $('#drop-' + id).removeClass('iconspacer');},
47
48         function() {
49                 id = $(this).attr('id');
50                 $('#drop-' + id).removeClass('icon');$('#drop-' + id).removeClass('drophide'); $('#drop-' + id).addClass('iconspacer');}
51         );
52
53 });
54
55
56 </script>
57 EOT;