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;
17 function smoothly_init(App $a) {
18 Renderer::setActiveTemplateEngine('smarty3');
22 $baseurl = System::baseUrl($ssl_state);
23 $a->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 $a->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
90 $baseurl = System::baseUrl($ssl_state);
91 $bottom['$baseurl'] = $baseurl;
92 $tpl = Renderer::getMarkupTemplate('bottom.tpl');
94 return $a->page['bottom'] = Renderer::replaceMacros($tpl, $bottom);