6 function theme_content(App $a) {
11 $colorset = get_pconfig( local_user(), 'duepuntozero', 'colorset');
14 return clean_form($a, $colorset, $user);
17 function theme_post(App $a) {
22 if (isset($_POST['duepuntozero-settings-submit'])){
23 set_pconfig(local_user(), 'duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
27 function theme_admin(App $a) {
28 $colorset = get_config( 'duepuntozero', 'colorset');
31 return clean_form($a, $colorset, $user);
34 function theme_admin_post(App $a) {
35 if (isset($_POST['duepuntozero-settings-submit'])){
36 set_config('duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
40 /// @TODO $a is no longer used
41 function clean_form(App $a, &$colorset, $user) {
43 'default' =>t('default'),
44 'greenzero' =>t('greenzero'),
45 'purplezero' =>t('purplezero'),
46 'easterbunny' =>t('easterbunny'),
47 'darkzero' =>t('darkzero'),
49 'slackr' =>t('slackr'),
53 $color = get_pconfig(local_user(), 'duepuntozero', 'colorset');
55 $color = get_config( 'duepuntozero', 'colorset');
58 $t = get_markup_template("theme_settings.tpl" );
59 /// @TODO No need for adding string here, $o is not defined
60 $o .= replace_macros($t, array(
61 '$submit' => t('Submit'),
62 '$baseurl' => App::get_baseurl(),
63 '$title' => t("Theme settings"),
64 '$colorset' => array('duepuntozero_colorset', t('Variations'), $color, '', $colorset),