8 function theme_content(&$a){
12 $style = get_pconfig(local_user(), 'vier', 'style');
15 $style = get_config('vier', 'style');
20 return vier_form($a,$style);
23 function theme_post(&$a){
27 if (isset($_POST['vier-settings-submit'])){
28 set_pconfig(local_user(), 'vier', 'style', $_POST['vier_style']);
33 function theme_admin(&$a){
34 $style = get_config('vier', 'style');
35 return vier_form($a,$style);
38 function theme_admin_post(&$a){
39 if (isset($_POST['vier-settings-submit'])){
40 set_config('vier', 'style', $_POST['vier_style']);
45 function vier_form(&$a, $style){
51 "netcolour"=>"Coloured Networks",
54 $t = get_markup_template("theme_settings.tpl" );
55 $o .= replace_macros($t, array(
56 '$submit' => t('Submit'),
57 '$baseurl' => $a->get_baseurl(),
58 '$title' => t("Theme settings"),
59 '$style' => array('vier_style',t ('Set style'),$style,'',$styles),