7 function theme_content(App &$a){
12 $colorset = get_pconfig( local_user(), 'duepuntozero', 'colorset');
15 return clean_form($a, $colorset, $user);
18 function theme_post(App &$a){
23 if (isset($_POST['duepuntozero-settings-submit'])){
24 set_pconfig(local_user(), 'duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
29 function theme_admin(App &$a){
30 $colorset = get_config( 'duepuntozero', 'colorset');
33 return clean_form($a, $colorset, $user);
36 function theme_admin_post(App &$a){
37 if (isset($_POST['duepuntozero-settings-submit'])){
38 set_config('duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
42 /// @TODO $a is no longer used
43 function clean_form(&$a, &$colorset, $user){
45 'default'=>t('default'),
46 'greenzero'=>t('greenzero'),
47 'purplezero'=>t('purplezero'),
48 'easterbunny'=>t('easterbunny'),
49 'darkzero'=>t('darkzero'),
51 'slackr'=>t('slackr'),
55 $color = get_pconfig(local_user(), 'duepuntozero', 'colorset');
57 $color = get_config( 'duepuntozero', 'colorset');
60 $t = get_markup_template("theme_settings.tpl" );
61 /// @TODO No need for adding string here, $o is not defined
62 $o .= replace_macros($t, array(
63 '$submit' => t('Submit'),
64 '$baseurl' => App::get_baseurl(),
65 '$title'=> t("Theme settings"),
66 '$colorset' => array('duepuntozero_colorset', t('Variations'), $color, '', $colorset),