Parameters of Ulti Polaroid can be set in the same way as you set a parameter in html:{polaroid param="value"}yourimage{/polaroid}.
The possible parameters of Ulti Polaroid are:
param | value | description | default value |
alt |
string |
Sets ALT parameter of the image | "" |
title |
string |
Sets TITLE parameter of the image |
"" |
width |
integer+px |
Sets the image width in pixels |
original image width |
height |
integer+px |
Sets the image height in pixels |
original image height |
rotation |
'left', 'right', 'no' |
'left': polaroid is rotated to the left 'right': polaroid is rotated to the right 'no': polaroid is not rotated |
right |
bordercolor * |
hex-color |
Color of the border round the image |
#FFFFFF |
borderwidth |
integer |
Width in pixels of the border round the image. WARNING: Just put an integer, don't add "px" or "%" |
value depending on the width and height of the image |
shadowcolor * |
hex-color |
Color of the shadow | #000000 |
shadowopacity |
value between 0 and 1 |
Opacity of the shadow. HINT: Put this value to 0 if you don't want any shadow |
0.2 |
WARNING: The parameters names are case sensitive. This means "alt" will set the alt-value of the image, but "Alt" or "ALT" will have no effect!
(*) For colors, you should use the full hex notation. Color names (like 'white') or short notation (like #FFF) does not work.
Below are a few examples which show what can be done with these parameters:
{polaroid bordercolor="#FFFFFF" shadowopacity="0.5" rotation="left" title="example1" alt="example1"}M_images/polaroidex.jpg{/polaroid}:
{polaroid bordercolor="#00FF00" shadowopacity="0.5" shadowcolor="#FF0000" rotation="right" title="example2" alt="example2"}M_images/polaroidex.jpg{/polaroid}:
{polaroid bordercolor="#000000" shadowopacity="0.5" shadowcolor="#000000" rotation="no" borderwidth="20" title="example3" alt="example3"}M_images/polaroidex.jpg{/polaroid}: