X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=3dff381b220487aa97cab4c04ded90c94844251d;hb=1d6dd1666f4fc5da64447a48e158f8755d1d2a1b;hp=f101fe5647f9e60180035c678906df49c5ed8294;hpb=250c6150583389087ecfcfccd0c0f7762c27c6cf;p=friendica.git diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index f101fe5647..3dff381b22 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -2,16 +2,21 @@ /* * Name: Smoothly - * Description: Theme optimized for iPad/iPad2 - * Version: 0.6 + * Description: Like coffee with milk. Theme works fine with iPad[2]. + * Version: Version 0.11.14-2 * Author: Alex * Maintainer: Alex * Screenshot: Screenshot */ +$a = get_app(); $a->theme_info = array(); +$a->theme['template_engine'] = '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 = file_get_contents(dirname(__file__) . '/bottom.tpl'); + + return $a->page['bottom'] = replace_macros($tpl, $bottom); + } +}