8 function theme_content(App &$a){
13 $colorset = get_pconfig( local_user(), 'duepuntozero', 'colorset');
16 return clean_form($a, $colorset, $user);
19 function theme_post(App &$a){
24 if (isset($_POST['duepuntozero-settings-submit'])){
25 set_pconfig(local_user(), 'duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
30 function theme_admin(App &$a){
31 $colorset = get_config( 'duepuntozero', 'colorset');
34 return clean_form($a, $colorset, $user);
37 function theme_admin_post(App &$a){
38 if (isset($_POST['duepuntozero-settings-submit'])){
39 set_config('duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
43 /// @TODO $a is no longer used
44 function clean_form(&$a, &$colorset, $user){
46 'default'=>t('default'),
47 'greenzero'=>t('greenzero'),
48 'purplezero'=>t('purplezero'),
49 'easterbunny'=>t('easterbunny'),
50 'darkzero'=>t('darkzero'),
52 'slackr'=>t('slackr'),
56 $color = get_pconfig(local_user(), 'duepuntozero', 'colorset');
58 $color = get_config( 'duepuntozero', 'colorset');
61 $t = get_markup_template("theme_settings.tpl" );
62 /// @TODO No need for adding string here, $o is not defined
63 $o .= replace_macros($t, array(
64 '$submit' => t('Submit'),
65 '$baseurl' => App::get_baseurl(),
66 '$title'=> t("Theme settings"),
67 '$colorset' => array('duepuntozero_colorset', t('Variations'), $color, '', $colorset),