X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=9dd958fff40166b8edd94d014923b650e84d09bc;hb=8f20e2054b7cfdfabc1ff7cca54f05925d4a049b;hp=189110a952d21813a26d7bbadf279d91501922da;hpb=0436782e70f496c96f30ee7822865f777ae1d73e;p=friendica.git
diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php
index 189110a952..9dd958fff4 100644
--- a/view/theme/smoothly/theme.php
+++ b/view/theme/smoothly/theme.php
@@ -10,42 +10,38 @@
* Screenshot: Screenshot
*/
-function smoothly_init(&$a) {
- set_template_engine($a, 'smarty3');
+use Friendica\App;
+use Friendica\Core\Renderer;
+use Friendica\Core\System;
+
+function smoothly_init(App $a) {
+ Renderer::setActiveTemplateEngine('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();
+ $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');
+ $tpl = Renderer::getMarkupTemplate('bottom.tpl');
- return $a->page['bottom'] = replace_macros($tpl, $bottom);
+ return $a->page['bottom'] = Renderer::replaceMacros($tpl, $bottom);
}
}