Home
Customization
Customization
Customization
Last Updated on Sunday, 25 April 2010 15:05
Smarty Template
This is the smarty template function to generate the "Add to Station" link:{nasAddToStation_button type="img" type_file="add1.png" template_dir="default" song_id=$SONG_ID label="Add to Station"}
| PARAMETER | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| song_id | number | n/a | song_id that to be added to radio station (required) |
| type | string | text |
"text" or "img" - using text or image in the link? |
| type_file | string | add1.png | if parameter "type" == "img", this is the image file name |
| css_class | string | n/a | The secondary css class used in the <a href="/store/" class="DEFAULT_CLASS 2ND_CLASS"></a>for styling purpose |
| img_class | string | n/a | css class for image (if $type is set to "img") |
| non_colorbox_onclick_function | string | n/a | If disable colorbox, you have to provide a javascript function for "onlick" e.g. enter "jrLoad" for <a onclick="jrLoad('#add_station','XXX');"></a> |
| non_colorbox_css_id | string | n/a | If disable colorbox, you have to provide a css id function for "onlick" e.g. enter "add_station" for <a onclick="jrLoad('#add_station','XXX');"></a>Required if "non_colorbox_onclick_function" is set |
| label | string | Add to Station | The language string used in the button link |
| show_songname | string | yes | display song name in the Station panel |
| show_close | string | yes | display close link when the form is submitted |
| show_auto_hide_result | string | no | Auto hide the result after the form is submitted, this is useful when Colorbox is not used. |
| colorbox_init_kv | string | 'transition':'none', 'opacity':'0.5', 'initialWidth':'302', 'initialHeight':'243', 'width':'330', 'height':'305', 'scrolling':'false' | key and value pairs to init jquery colorbox (must use single quo) e.g. 'transition':'none','opacity':'0.5','width':'300','height':'200'.Must use "single quote". Details please visit: http://colorpowered.com/colorbox/ |
| < Prev |
|---|