X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=0dae3a6e473b606a3034bf6cd4f78a1cf49fa649;hb=a21f6135fcd8f0bfdb49de38a5ab4954d1784503;hp=3ab7b271330d4602f77795f62b9db6980e66ab6a;hpb=0e2fdee20ea4f550f351312e89b50a5e00d68827;p=friendica.git diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index 3ab7b27133..555b65eed3 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -2,50 +2,45 @@ /* * Name: Smoothly - * Description: Like coffee with milk. Theme works fine with iPad[2]. - * Version: Version 0.11.13 - * Author: Alex - * Maintainer: Alex + * Description: Theme based on Testbubble and optimized for Tablets. + * Version: Version 2013-05-08 + * Author: Anne Walk, Devlon Duthied + * Author: Alex + * Maintainer: Nomen Nominandum * Screenshot: Screenshot */ -$a = get_app(); -$a->theme_info = array(); +use Friendica\App; +use Friendica\Core\System; + +function smoothly_init(App $a) { + $a->set_template_engine('smarty3'); -function smoothly_init(&$a) { $cssFile = null; $ssl_state = null; - $baseurl = $a->get_baseurl($ssl_state); -$a->page['htmlhead'] .= <<< EOT + $baseurl = System::baseUrl($ssl_state); + $a->page['htmlhead'] .= <<< EOT EOT; - /** custom css **/ + /** custom css **/ if (!is_null($cssFile)) { $a->page['htmlhead'] .= sprintf('', $cssFile); } -_js_in_foot(); - + _js_in_foot(); } -if(! function_exists('_js_in_foot')) { +if (! function_exists('_js_in_foot')) { function _js_in_foot() { /** @purpose insert stuff in bottom of page */ $a = get_app(); $ssl_state = null; - $baseurl = $a->get_baseurl($ssl_state); + $baseurl = System::baseUrl($ssl_state); $bottom['$baseurl'] = $baseurl; - $tpl = file_get_contents(dirname(__file__) . '/bottom.tpl'); + $tpl = get_markup_template('bottom.tpl'); return $a->page['bottom'] = replace_macros($tpl, $bottom); }