8 function theme_content(&$a){
12 $style = get_pconfig(local_user(), 'vier', 'style');
14 return vier_form($a,$style);
17 function theme_post(&$a){
21 if (isset($_POST['vier-settings-submit'])){
22 set_pconfig(local_user(), 'vier', 'style', $_POST['vier_style']);
27 function theme_admin(&$a){
28 $style = get_config('vier', 'style');
29 return vier_form($a,$style);
32 function theme_admin_post(&$a){
33 if (isset($_POST['vier-settings-submit'])){
34 set_config('vier', 'style', $_POST['vier_style']);
39 function vier_form(&$a, $style){
43 "netcolour"=>"Coloured Networks",
46 $t = get_markup_template("theme_settings.tpl" );
47 $o .= replace_macros($t, array(
48 '$submit' => t('Submit'),
49 '$baseurl' => $a->get_baseurl(),
50 '$title' => t("Theme settings"),
51 '$style' => array('vier_style',t ('Set style'),$style,'',$styles),