add flag for experimental themes

This commit is contained in:
Friendika 2011-06-05 18:05:25 -07:00
parent c4cec593ba
commit edbad772ba
2 changed files with 2 additions and 1 deletions

View file

@ -431,7 +431,8 @@ function settings_content(&$a) {
$f = basename($file);
$selected = (($f == $_SESSION['theme']) || ($f === $default_theme && (! x($_SESSION,'theme')))
? ' selected="selected" ' : '' );
$theme_selector .= '<option val="' . basename($file) . '"' . $selected . '>' . basename($file) . '</option>';
$theme_name = ((file_exists($file . '/experimental')) ? sprintf("%s - \x28Experimental\x29", $f) : $f);
$theme_selector .= '<option val="' . $f . '"' . $selected . '>' . $theme_name . '</option>';
}
}

View file