5 * Description: Theme based on Testbubble and optimized for Tablets.
6 * Version: Version 2013-05-08
7 * Author: Anne Walk, Devlon Duthied
8 * Author: Alex <https://red.pixelbits.de/channel/alex>
9 * Maintainer: Nomen Nominandum
10 * Screenshot: <a href="screenshot.png">Screenshot</a>
14 use Friendica\Core\Renderer;
17 function smoothly_init(App $a) {
18 Renderer::setActiveTemplateEngine('smarty3');
22 $baseurl = DI::baseUrl()->get($ssl_state);
23 DI::page()['htmlhead'] .= <<< EOT
26 function cmtBbOpen(id) {
27 $(".comment-edit-bb-" + id).show();
29 function cmtBbClose(comment, id) {
30 $(".comment-edit-bb-" + id).hide();
32 $(document).ready(function() {
34 $('html').click(function() { $("#nav-notifications-menu" ).hide(); });
36 $('.group-edit-icon').hover(
38 $(this).addClass('icon'); $(this).removeClass('iconspacer');},
40 $(this).removeClass('icon'); $(this).addClass('iconspacer');}
43 $('.sidebar-group-element').hover(
45 id = $(this).attr('id');
46 $('#edit-' + id).addClass('icon'); $('#edit-' + id).removeClass('iconspacer');},
49 id = $(this).attr('id');
50 $('#edit-' + id).removeClass('icon');$('#edit-' + id).addClass('iconspacer');}
54 $('.savedsearchdrop').hover(
56 $(this).addClass('drop'); $(this).addClass('icon'); $(this).removeClass('iconspacer');},
58 $(this).removeClass('drop'); $(this).removeClass('icon'); $(this).addClass('iconspacer');}
61 $('.savedsearchterm').hover(
63 id = $(this).attr('id');
64 $('#drop-' + id).addClass('icon'); $('#drop-' + id).addClass('drophide'); $('#drop-' + id).removeClass('iconspacer');},
67 id = $(this).attr('id');
68 $('#drop-' + id).removeClass('icon');$('#drop-' + id).removeClass('drophide'); $('#drop-' + id).addClass('iconspacer');}
77 if (!is_null($cssFile)) {
78 DI::page()['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
84 if (! function_exists('_js_in_foot')) {
85 function _js_in_foot() {
86 /** @purpose insert stuff in bottom of page
89 $baseurl = DI::baseUrl()->get($ssl_state);
90 $bottom['$baseurl'] = $baseurl;
91 $tpl = Renderer::getMarkupTemplate('bottom.tpl');
93 return DI::page()['bottom'] = Renderer::replaceMacros($tpl, $bottom);
98 * @param int|null $uid
100 * @see \Friendica\Core\Theme::getBackgroundColor()
101 * @TODO Implement this function
103 function smoothly_get_background_color(int $uid = null)
109 * @param int|null $uid
111 * @see \Friendica\Core\Theme::getThemeColor()
112 * @TODO Implement this function
114 function smoothly_get_theme_color(int $uid = null)