diff --git a/view/theme/duepuntozero/config.php b/view/theme/duepuntozero/config.php index 2c79896227..7d52bc55bb 100644 --- a/view/theme/duepuntozero/config.php +++ b/view/theme/duepuntozero/config.php @@ -5,7 +5,7 @@ -function theme_content(&$a){ +function theme_content(App &$a){ if(!local_user()) return; @@ -15,7 +15,7 @@ function theme_content(&$a){ return clean_form($a, $colorset, $user); } -function theme_post(&$a){ +function theme_post(App &$a){ if(! local_user()) return; @@ -25,14 +25,14 @@ function theme_post(&$a){ } -function theme_admin(&$a){ +function theme_admin(App &$a){ $colorset = get_config( 'duepuntozero', 'colorset'); $user = false; return clean_form($a, $colorset, $user); } -function theme_admin_post(&$a){ +function theme_admin_post(App &$a){ if (isset($_POST['duepuntozero-settings-submit'])){ set_config('duepuntozero', 'colorset', $_POST['duepuntozero_colorset']); } diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index 50d57f91e5..bf1d031def 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -1,6 +1,6 @@ theme_events_in_profile = false; diff --git a/view/theme/frost-mobile/theme.php b/view/theme/frost-mobile/theme.php index 24d5e9e52e..7fe17ce7e1 100644 --- a/view/theme/frost-mobile/theme.php +++ b/view/theme/frost-mobile/theme.php @@ -9,7 +9,7 @@ * Maintainer: Zach P */ -function frost_mobile_init(&$a) { +function frost_mobile_init(App &$a) { $a->sourcename = 'Friendica mobile web'; $a->videowidth = 250; $a->videoheight = 200; @@ -18,7 +18,7 @@ function frost_mobile_init(&$a) { set_template_engine($a, 'smarty3'); } -function frost_mobile_content_loaded(&$a) { +function frost_mobile_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 diff --git a/view/theme/frost/theme.php b/view/theme/frost/theme.php index 464c14d470..964ea88ec4 100644 --- a/view/theme/frost/theme.php +++ b/view/theme/frost/theme.php @@ -9,14 +9,14 @@ * Maintainer: Zach P */ -function frost_init(&$a) { +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 diff --git a/view/theme/quattro/config.php b/view/theme/quattro/config.php index 2a32b9f05a..11e6f6cbce 100644 --- a/view/theme/quattro/config.php +++ b/view/theme/quattro/config.php @@ -5,7 +5,7 @@ -function theme_content(&$a){ +function theme_content(App &$a){ if(!local_user()) return; @@ -17,7 +17,7 @@ function theme_content(&$a){ return quattro_form($a,$align, $color, $tfs, $pfs); } -function theme_post(&$a){ +function theme_post(App &$a){ if(! local_user()) return; @@ -30,7 +30,7 @@ function theme_post(&$a){ } -function theme_admin(&$a){ +function theme_admin(App &$a){ $align = get_config('quattro', 'align' ); $color = get_config('quattro', 'color' ); $tfs = get_config("quattro","tfs"); @@ -39,7 +39,7 @@ function theme_admin(&$a){ return quattro_form($a,$align, $color, $tfs, $pfs); } -function theme_admin_post(&$a){ +function theme_admin_post(App &$a){ if (isset($_POST['quattro-settings-submit'])){ set_config('quattro', 'align', $_POST['quattro_align']); set_config('quattro', 'color', $_POST['quattro_color']); diff --git a/view/theme/quattro/theme.php b/view/theme/quattro/theme.php index f316323fd3..ae8f4f9065 100644 --- a/view/theme/quattro/theme.php +++ b/view/theme/quattro/theme.php @@ -7,7 +7,7 @@ * Maintainer: Tobias */ -function quattro_init(&$a) { +function quattro_init(App &$a) { $a->page['htmlhead'] .= ''; $a->page['htmlhead'] .= '';; } diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index 189110a952..32c48fffa4 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -10,7 +10,7 @@ * Screenshot: Screenshot */ -function smoothly_init(&$a) { +function smoothly_init(App &$a) { set_template_engine($a, 'smarty3'); $cssFile = null; diff --git a/view/theme/vier/config.php b/view/theme/vier/config.php index 0f07ff9a1e..55ef2654f1 100644 --- a/view/theme/vier/config.php +++ b/view/theme/vier/config.php @@ -5,7 +5,7 @@ -function theme_content(&$a){ +function theme_content(App &$a){ if(!local_user()) return; @@ -31,7 +31,7 @@ function theme_content(&$a){ $show_services, $show_friends, $show_lastusers); } -function theme_post(&$a){ +function theme_post(App &$a){ if(! local_user()) return; @@ -47,7 +47,7 @@ function theme_post(&$a){ } -function theme_admin(&$a){ +function theme_admin(App &$a){ if (!function_exists('get_vier_config')) return; @@ -76,7 +76,7 @@ function theme_admin(&$a){ return $o; } -function theme_admin_post(&$a){ +function theme_admin_post(App &$a){ if (isset($_POST['vier-settings-submit'])){ set_config('vier', 'style', $_POST['vier_style']); set_config('vier', 'show_pages', $_POST['vier_show_pages']); diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 45dde5f449..46921dc1c5 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -13,7 +13,7 @@ require_once("include/plugin.php"); require_once("include/socgraph.php"); require_once("mod/proxy.php"); -function vier_init(&$a) { +function vier_init(App &$a) { $a->theme_events_in_profile = false;