4 use Friendica\Core\Renderer;
7 function duepuntozero_init(App $a) {
9 Renderer::setActiveTemplateEngine('smarty3');
11 $colorset = DI::pConfig()->get( local_user(), 'duepuntozero','colorset');
13 $colorset = DI::config()->get('duepuntozero', 'colorset'); // user setting have priority, then node settings
15 if ($colorset == 'greenzero')
16 DI::page()['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/greenzero.css" type="text/css" media="screen" />'."\n";
17 if ($colorset == 'purplezero')
18 DI::page()['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/purplezero.css" type="text/css" media="screen" />'."\n";
19 if ($colorset == 'easterbunny')
20 DI::page()['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/easterbunny.css" type="text/css" media="screen" />'."\n";
21 if ($colorset == 'darkzero')
22 DI::page()['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/darkzero.css" type="text/css" media="screen" />'."\n";
23 if ($colorset == 'comix')
24 DI::page()['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/comix.css" type="text/css" media="screen" />'."\n";
25 if ($colorset == 'slackr')
26 DI::page()['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/slackr.css" type="text/css" media="screen" />'."\n";
28 DI::page()['htmlhead'] .= <<< EOT
30 function cmtBbOpen(comment, id) {
31 if ($(comment).hasClass('comment-edit-text-full')) {
32 $(".comment-edit-bb-" + id).show();
37 function cmtBbClose(comment, id) {
40 $(document).ready(function() {
42 $('html').click(function() { $("#nav-notifications-menu" ).hide(); });
44 $('.group-edit-icon').hover(
46 $(this).addClass('icon'); $(this).removeClass('iconspacer');},
48 $(this).removeClass('icon'); $(this).addClass('iconspacer');}
51 $('.sidebar-group-element').hover(
53 id = $(this).attr('id');
54 $('#edit-' + id).addClass('icon'); $('#edit-' + id).removeClass('iconspacer');},
57 id = $(this).attr('id');
58 $('#edit-' + id).removeClass('icon');$('#edit-' + id).addClass('iconspacer');}
62 $('.savedsearchdrop').hover(
64 $(this).addClass('drop'); $(this).addClass('icon'); $(this).removeClass('iconspacer');},
66 $(this).removeClass('drop'); $(this).removeClass('icon'); $(this).addClass('iconspacer');}
69 $('.savedsearchterm').hover(
71 id = $(this).attr('id');
72 $('#drop-' + id).addClass('icon'); $('#drop-' + id).addClass('drophide'); $('#drop-' + id).removeClass('iconspacer');},
75 id = $(this).attr('id');
76 $('#drop-' + id).removeClass('icon');$('#drop-' + id).removeClass('drophide'); $('#drop-' + id).addClass('iconspacer');}