[pmwiki-users] Multi Prop Custom Styles
Patrick R. Michaud
pmichaud at pobox.com
Mon Apr 25 15:57:50 CDT 2005
On Mon, Apr 25, 2005 at 09:20:10AM -1000, Sivakatirswami wrote:
> The documentation and examples for custom wiki styles are a bit lean...
> I read through them carefully, but I don't think I get it yet.
> Goal: set a custom style with multiple CSS properties:
> Test (entered into /local/config.php for testing)
> $WikiStyle['style1']['color'] = 'white' ['padding'] ='10px 10px 10px
> 10px' ['bgcolor']= 'green';
$WikiStyle['style1']['color'] = 'white';
$WikiStyle['style1']['padding'] = '10px 10px 10px 10px';
$WikiStyle['style1']['bgcolor'] = 'green';
You can also write it as:
$WikiStyle['style1'] = array(
'color' => 'white',
'padding' => '10px 10px 10px 10px',
'bgcolor' => 'green');
> Can someone give a proper example of a multi-property custom style?
> I want to use the %block=MyNewStyle%
> mark up to paragraphs, bullet lists, post-response discussions on one
> page etc.
If you know that "style1" is always (normally) going to be applied to
a block, you can also add:
$WikiStyle['style1']['apply'] = 'block';
which means that %style1% will always assume it's to be applied
to the current block.
> I *really* look forward to some %div% mark up that spans blocks...
So do I. :-)
More information about the pmwiki-users