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;
15 use Friendica\Core\System;
18 function smoothly_init(App $a) {
19 Renderer::setActiveTemplateEngine('smarty3');
23 $baseurl = System::baseUrl($ssl_state);
24 DI::page()['htmlhead'] .= <<< EOT
27 function cmtBbOpen(id) {
28 $(".comment-edit-bb-" + id).show();
30 function cmtBbClose(comment, id) {
31 $(".comment-edit-bb-" + id).hide();
33 $(document).ready(function() {
35 $('html').click(function() { $("#nav-notifications-menu" ).hide(); });
37 $('.group-edit-icon').hover(
39 $(this).addClass('icon'); $(this).removeClass('iconspacer');},
41 $(this).removeClass('icon'); $(this).addClass('iconspacer');}
44 $('.sidebar-group-element').hover(
46 id = $(this).attr('id');
47 $('#edit-' + id).addClass('icon'); $('#edit-' + id).removeClass('iconspacer');},
50 id = $(this).attr('id');
51 $('#edit-' + id).removeClass('icon');$('#edit-' + id).addClass('iconspacer');}
55 $('.savedsearchdrop').hover(
57 $(this).addClass('drop'); $(this).addClass('icon'); $(this).removeClass('iconspacer');},
59 $(this).removeClass('drop'); $(this).removeClass('icon'); $(this).addClass('iconspacer');}
62 $('.savedsearchterm').hover(
64 id = $(this).attr('id');
65 $('#drop-' + id).addClass('icon'); $('#drop-' + id).addClass('drophide'); $('#drop-' + id).removeClass('iconspacer');},
68 id = $(this).attr('id');
69 $('#drop-' + id).removeClass('icon');$('#drop-' + id).removeClass('drophide'); $('#drop-' + id).addClass('iconspacer');}
78 if (!is_null($cssFile)) {
79 DI::page()['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
85 if (! function_exists('_js_in_foot')) {
86 function _js_in_foot() {
87 /** @purpose insert stuff in bottom of page
90 $baseurl = System::baseUrl($ssl_state);
91 $bottom['$baseurl'] = $baseurl;
92 $tpl = Renderer::getMarkupTemplate('bottom.tpl');
94 return DI::page()['bottom'] = Renderer::replaceMacros($tpl, $bottom);