X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=7b39ec53a4bcf87242bcfdd5c14b3b8a302922b0;hb=af32740c043f3f3e3cbeb5a92ec712d9d3930655;hp=95cc9bd73c2ede9a85aa25626d654c66a6bd2eee;hpb=002168ebd91818ee62847be6689600d5fce94fb8;p=friendica.git diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index 95cc9bd73c..d3ebbc1d15 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -2,20 +2,24 @@ /* * Name: Smoothly - * Description: Theme opzimized for Tablets - * Version: 0.4 - * Author: Alex - * Maintainer: Alex - * Screenshot: Screenshot + * Description: Theme based on Testbubble and optimized for Tablets. + * Version: Version 2013-05-08 + * Author: Anne Walk, Devlon Duthied + * Author: Alex + * Maintainer: Nomen Nominandum + * Screenshot: Screenshot */ -$a->theme_info = array( - 'extends' => 'smoothly', -); function smoothly_init(&$a) { + $a->theme_info = array(); + set_template_engine($a, 'smarty3'); + + $cssFile = null; + $ssl_state = null; + $baseurl = $a->get_baseurl($ssl_state); $a->page['htmlhead'] .= <<< EOT - EOT; -// get resize configuration -$resize=false; -$site_resize = get_config('smoothly', 'resize' ); -if(local_user()) $resize = get_pconfig(local_user(), 'smoothly', 'resize' ); - -if ($resize===false) $resize=$site_resize; -if ($resize===false) $resize=0; + /** custom css **/ + if (!is_null($cssFile)) { + $a->page['htmlhead'] .= sprintf('', $cssFile); + } -if (intval($resize) > 0) { -//load jquery.ae.image.resize.js -$imageresizeJS = $a->get_baseurl($ssl_state)."/view/theme/smoothly/js/jquery.ae.image.resize.js"; -$a->page['htmlhead'] .= sprintf('', $imageresizeJS); -$a->page['htmlhead'] .= ' -';} } +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); + } +}