X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=555b65eed31c5c0509d9c256167f78b0c7d525a5;hb=a21f6135fcd8f0bfdb49de38a5ab4954d1784503;hp=32c48fffa4bf3b0d19b554861fbd31899d0ec790;hpb=17858bd8443e0384602b71478fd0b1a00cfeafb1;p=friendica.git diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index 32c48fffa4..555b65eed3 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -10,42 +10,37 @@ * Screenshot: Screenshot */ -function smoothly_init(App &$a) { - set_template_engine($a, 'smarty3'); +use Friendica\App; +use Friendica\Core\System; + +function smoothly_init(App $a) { + $a->set_template_engine('smarty3'); $cssFile = null; $ssl_state = null; - $baseurl = App::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 = App::get_baseurl($ssl_state); + $baseurl = System::baseUrl($ssl_state); $bottom['$baseurl'] = $baseurl; $tpl = get_markup_template('bottom.tpl');