<?php
require_once('view/theme/frio/php/Image.php');
-function theme_content(App &$a) {
- if(!local_user()) { return;}
+function theme_content(App $a) {
+ if (!local_user()) {
+ return;
+ }
$arr = array();
$arr["schema"] = get_pconfig(local_user(),'frio', 'schema');
$arr["background_image"] = get_pconfig(local_user(),'frio', 'background_image' );
$arr["bg_image_option"] = get_pconfig(local_user(),'frio', 'bg_image_option' );
- return frio_form($a, $arr);
+ return frio_form($arr);
}
-function theme_post(App &$a) {
- if(!local_user()) { return;}
+function theme_post(App $a) {
+ if (!local_user()) {
+ return;
+ }
+
if (isset($_POST['frio-settings-submit'])) {
set_pconfig(local_user(), 'frio', 'schema', $_POST["frio_schema"]);
set_pconfig(local_user(), 'frio', 'nav_bg', $_POST["frio_nav_bg"]);
}
}
-function frio_form(&$a, $arr) {
+function frio_form($arr) {
require_once("view/theme/frio/php/schema.php");
-
+
$scheme_info = get_schema_info($arr["schema"]);
$disable = $scheme_info["overwrites"];
if (!is_array($disable)) $disable = array();