X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=7b39ec53a4bcf87242bcfdd5c14b3b8a302922b0;hb=af32740c043f3f3e3cbeb5a92ec712d9d3930655;hp=9439eee9d3c428305cf8edea4df9d013b8f0329b;hpb=7b9721f052cc09a61160def0a06be077119246e1;p=friendica.git diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index 9439eee9d3..d3ebbc1d15 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -2,16 +2,21 @@ /* * Name: Smoothly - * Description: Like coffee with milk. Theme works fine with iPad[2]. - * Version: Version 0.9.20-2 - * 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->theme_info = array(); - function smoothly_init(&$a) { + $a->theme_info = array(); + set_template_engine($a, 'smarty3'); + + $cssFile = null; + $ssl_state = null; + $baseurl = $a->get_baseurl($ssl_state); $a->page['htmlhead'] .= <<< EOT EOT; - // custom css - if (!is_null($cssFile)) { + /** custom css **/ + if (!is_null($cssFile)) { $a->page['htmlhead'] .= sprintf('', $cssFile); - } + } _js_in_foot(); @@ -109,9 +114,10 @@ if(! function_exists('_js_in_foot')) { /** @purpose insert stuff in bottom of page */ $a = get_app(); + $ssl_state = null; $baseurl = $a->get_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); }