X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrost%2Ftheme.php;h=b09153876d67c09285609c27910d02ea35e33e24;hb=cbd3edbc05999310b7f3cca5aa3d0124b26f7c6e;hp=3decb2a11857331562c4ffff312a5c54ea2cd46e;hpb=8e80755a47bb1ade7ab0657959bc2ea789e4e391;p=friendica.git diff --git a/view/theme/frost/theme.php b/view/theme/frost/theme.php index 3decb2a118..b09153876d 100644 --- a/view/theme/frost/theme.php +++ b/view/theme/frost/theme.php @@ -9,24 +9,27 @@ * Maintainer: Zach P */ -function frost_init(&$a) { - $a->theme_info = array(); +use Friendica\App; + +function frost_init(App $a) { $a->videowidth = 400; $a->videoheight = 330; $a->theme_thread_allow = false; set_template_engine($a, 'smarty3'); } -function frost_content_loaded(&$a) { +function frost_content_loaded(App $a) { // I could do this in style.php, but by having the CSS in a file the browser will cache it, // making pages load faster if( $a->module === 'home' || $a->module === 'login' || $a->module === 'register' || $a->module === 'lostpass' ) { - //$a->page['htmlhead'] = str_replace('$stylesheet', $a->get_baseurl() . '/view/theme/frost/login-style.css', $a->page['htmlhead']); - $a->theme['stylesheet'] = $a->get_baseurl() . '/view/theme/frost/login-style.css'; + //$a->page['htmlhead'] = str_replace('$stylesheet', App::get_baseurl() . '/view/theme/frost/login-style.css', $a->page['htmlhead']); + $a->theme['stylesheet'] = App::get_baseurl() . '/view/theme/frost/login-style.css'; + } + + if ( $a->module === 'login' ) { + $a->page['end'] .= ''; } - if( $a->module === 'login' ) - $a->page['end'] .= ''; } @@ -42,7 +45,7 @@ function frost_uninstall() { logger("uninstalled theme frost"); } -function frost_item_photo_links(&$a, &$body_info) { +function frost_item_photo_links(App $a, &$body_info) { require_once('include/Photo.php'); $phototypes = Photo::supportedTypes(); @@ -67,7 +70,7 @@ function frost_item_photo_links(&$a, &$body_info) { $body_info['html'] = str_replace($link, $newlink, $body_info['html']); } - + $p = bb_find_open_close($body_info['html'], "", $occurence); } }