8 function theme_content(&$a){
12 $align = get_pconfig(local_user(), 'quattro', 'align' );
13 $color = get_pconfig(local_user(), 'quattro', 'color' );
19 $t = file_get_contents( dirname(__file__). "/theme_settings.tpl" );
20 $o .= replace_macros($t, array(
21 '$submit' => t('Submit'),
22 '$baseurl' => $a->get_baseurl(),
23 '$title' => t("Theme settings"),
24 '$align' => array('quattro_align', t('Alignment'), $align, '', array('left'=>t('Left'), 'center'=>t('Center'))),
25 '$color' => array('quattro_color', t('Color scheme'), $color, '', $colors),
30 function theme_post(&$a){
34 if (isset($_POST['quattro-settings-submit'])){
35 set_pconfig(local_user(), 'quattro', 'align', $_POST['quattro_align']);
36 set_pconfig(local_user(), 'quattro', 'color', $_POST['quattro_color']);