]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/config.php
We should take the event-id as well
[friendica.git] / view / theme / vier / config.php
index 5326498908d931bf7130db6d3ab1e6e638d1182f..ad1686769b95cc32e56923b17dd0d8ea1cbb7600 100644 (file)
@@ -1,11 +1,13 @@
 <?php
+
 /**
  * Theme settings
  */
 
+use Friendica\App;
+use Friendica\Core\System;
 
-
-function theme_content(App &$a){
+function theme_content(App $a) {
        if (!local_user()) {
                return;
        }
@@ -35,7 +37,7 @@ function theme_content(App &$a){
                        $show_services, $show_friends, $show_lastusers);
 }
 
-function theme_post(App &$a){
+function theme_post(App $a) {
        if (! local_user()) {
                return;
        }
@@ -52,7 +54,7 @@ function theme_post(App &$a){
 }
 
 
-function theme_admin(App &$a){
+function theme_admin(App $a) {
 
        if (!function_exists('get_vier_config'))
                return;
@@ -81,7 +83,7 @@ function theme_admin(App &$a){
        return $o;
 }
 
-function theme_admin_post(App &$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']);
@@ -95,7 +97,7 @@ function theme_admin_post(App &$a){
 }
 
 /// @TODO $a is no longer used
-function vier_form(&$a, $style, $show_pages, $show_profiles, $show_helpers, $show_services, $show_friends, $show_lastusers){
+function vier_form(App $a, $style, $show_pages, $show_profiles, $show_helpers, $show_services, $show_friends, $show_lastusers) {
        $styles = array(
                "plus"=>"Plus",
                "breathe"=>"Breathe",
@@ -110,7 +112,7 @@ function vier_form(&$a, $style, $show_pages, $show_profiles, $show_helpers, $sho
        $t = get_markup_template("theme_settings.tpl");
        $o .= replace_macros($t, array(
                '$submit' => t('Submit'),
-               '$baseurl' => App::get_baseurl(),
+               '$baseurl' => System::baseUrl(),
                '$title' => t("Theme settings"),
                '$style' => array('vier_style',t ('Set style'),$style,'',$styles),
                '$show_pages' => array('vier_show_pages', t('Community Pages'), $show_pages, '', $show_or_not),