X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=0dae3a6e473b606a3034bf6cd4f78a1cf49fa649;hb=a21f6135fcd8f0bfdb49de38a5ab4954d1784503;hp=d3ebbc1d159d3b7bc9092e1ce719d90019224a03;hpb=0eec22f6568467c078cd61c6bdbce283f385d14e;p=friendica.git
diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php
index d3ebbc1d15..555b65eed3 100644
--- a/view/theme/smoothly/theme.php
+++ b/view/theme/smoothly/theme.php
@@ -10,43 +10,37 @@
* Screenshot: Screenshot
*/
-function smoothly_init(&$a) {
- $a->theme_info = array();
- 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 = $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 = get_markup_template('bottom.tpl');