1
1
Fork 0

spaces to tabs

This commit is contained in:
fabrixxm 2018-01-14 21:53:37 +01:00
parent de227e305e
commit 5392f9eb8b
3 changed files with 9 additions and 9 deletions

View file

@ -76,7 +76,7 @@ function theme_admin(App $a) {
$arr["contentbg_transp"] = Config::get('frio', 'contentbg_transp');
$arr["background_image"] = Config::get('frio', 'background_image');
$arr["bg_image_option"] = Config::get('frio', 'bg_image_option');
$arr["login_bg_image"] = Config::get('frio', 'login_bg_image');
$arr["login_bg_image"] = Config::get('frio', 'login_bg_image');
return frio_form($arr);
}
@ -106,7 +106,7 @@ function frio_form($arr) {
$background_image_help = "<strong>" . t("Note"). ": </strong>".t("Check image permissions if all users are allowed to visit the image");
$t = get_markup_template('theme_settings.tpl');
$ctx = array(
$ctx = array(
'$submit' => t('Submit'),
'$baseurl' => System::baseUrl(),
'$title' => t("Theme settings"),
@ -120,9 +120,9 @@ function frio_form($arr) {
'$bg_image_options' => Image::get_options($arr),
);
if ( array_key_exists("login_bg_image", $arr ) && !array_key_exists("login_bg_image", $disable ) ) {
$ctx['$login_bg_image'] = array('frio_login_bg_image', t('Login page background image'), $arr['login_bg_image'], $background_image_help);
}
if ( array_key_exists("login_bg_image", $arr ) && !array_key_exists("login_bg_image", $disable ) ) {
$ctx['$login_bg_image'] = array('frio_login_bg_image', t('Login page background image'), $arr['login_bg_image'], $background_image_help);
}
$o .= replace_macros($t, $ctx);

View file

@ -55,8 +55,8 @@ if (!isset($minimal)) {
echo '
<meta name="theme-color" content="' . $nav_bg . '" />';
$is_singleuser = Config::get('system','singleuser');
$is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
$is_singleuser = Config::get('system','singleuser');
$is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
?>
</head>
<body id="top" class="mod-<?php echo $a->module." ".$is_singleuser_class;?>">

View file

@ -42,7 +42,7 @@ if ($a->module !== 'install') {
$contentbg_transp = Config::get("frio", "contentbg_transp");
$background_image = Config::get("frio", "background_image");
$bg_image_option = Config::get("frio", "bg_image_option");
$login_bg_image = Config::get("frio", "login_bg_image");
$login_bg_image = Config::get("frio", "login_bg_image");
$modified = Config::get("frio", "css_modified");
// There is maybe the case that the user did never modify the theme settings.
@ -177,7 +177,7 @@ $options = array (
'$contentbg_transp' => $contentbg_transp,
'$background_image' => $background_image,
'$background_size_img' => $background_size_img,
'$login_bg_image' => $login_bg_image,
'$login_bg_image' => $login_bg_image,
);
$css_tpl = file_get_contents('view/theme/frio/css/style.css');