DaveG wrote: > > Sandy wrote: >> in config.php >> $FmtPV['$color1'] = '"#00cc00"'; >> >> >> then in the .tmpl file: >> <style> >> h1 {color:$color1;} >> A {color:$color1;} > Rather than this use: > > $color1 = '#00cc00'; > $HTMLStylesFmt['my_skin'] = "h1 {color:$color1;} "; > > That way, there's no need to mess with .tmpl. > > ~ ~ Dave
I'm not (yet) comfortable with $HTMLStylesFmt[]. For that matter, arrays in php still confuse me. Perfectly clear while I'm reading the tutorials,... A matter of practice. Thinking further, can this go in skin.php? $color1 = '#00cc00'; That keeps all the skin stuff in the skin, and avoids $HTMLStylesFmt[]. Sandy _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users