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