X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=83e2c72df6e78d03903863636ec713b752680c9d;hb=cde9b6370da1735fffab2fe5933334c2ac3320e9;hp=d66fd4ca49a6bafa4b19e5f467783202fd3e0c2d;hpb=1957aa8f0d5d3fddfb29f9d853bc3935a4169ff9;p=friendica.git diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index d66fd4ca49..83e2c72df6 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -2,16 +2,21 @@ /* * Name: Smoothly - * Description: Theme optimized for iPad[2] - * Version: 0.7 + * Description: Like coffee with milk. Theme optimized for iPad[2]. + * Version: Version 0.131 * Author: Alex * Maintainer: Alex * Screenshot: Screenshot */ +$a = get_app(); $a->theme_info = array(); +set_template_engine($a, 'smarty3'); function smoothly_init(&$a) { + $cssFile = null; + $ssl_state = null; + $baseurl = $a->get_baseurl($ssl_state); $a->page['htmlhead'] .= <<< EOT EOT; -} \ No newline at end of file + + /** custom css **/ + if (!is_null($cssFile)) { + $a->page['htmlhead'] .= sprintf('', $cssFile); + } + +_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); + $bottom['$baseurl'] = $baseurl; + $tpl = get_markup_template('bottom.tpl'); + + return $a->page['bottom'] = replace_macros($tpl, $bottom); + } +}