Hi
Thanks for this module, can you please provide any documentation about the technic using to make the drop shadowed or rounded corner boxes, any live example ?!
Hi
Thanks for this module, can you please provide any documentation about the technic using to make the drop shadowed or rounded corner boxes, any live example ?!
Comments
Comment #1
rhys commentedTo get it functional, copy the box.png and box-borders.png to the theme directory.
In the element for which you want themed borders, such as block.tpl.php, place this code at the start
and at the end
The name at the start of the functions references the box.png and box-borders.png, so if you want multiple types, simply create new filenames as {$name}.png and {$name}-borders.png. Also, if you want the module to function with IE6 and hopefully before, you'll need to create box.gif, and box-borders.gif. This was done so that opacity would function for those browsers which allowed it, and simple transparency for those which could not.
To add a title for the box, simply add within array( 'color' => colorcode, 'title'=> 'Title here' ).
With this you should be able to do fancier drop boxes.
This is a very basic module right now. It would be possible to add more functions, but it couldn't think of them and really have a heavy time schedule right now which precludes me from adding much more. However, if you make suggestions, I can always add :).
Comment #2
rhys commentedDocumentation as listed here has been added to the README.txt, and should hopefully be the CVS.
Comment #3
Djamu commentedI'm getting :
Parse error: syntax error, unexpected '=', expecting ')' in /var/www/../block.tpl.php on line 2
on drupal 5.8, unfortunately my php skills are nill ... any suggestion ?
thx
Comment #4
rhys commentedI fixed the error in the code written above.
The problem is in the
array( 'color' = 0x000)... it should bearray('color' => 0x000).I apologize for the problem, and hopefully this helps a bit more. Unfortunately I've been incredibly busy trying to stay alive. I will get to place this into the document for the module very soon.