Feature Listings Horizontal
Featured listings horizontal calls a function and displays all your featured listings in a horizontal table.
To call this function you would include the following code in any template file you want it to appear.
{feature_listings_horizontal number=8 cols=3 table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"'}
The code above calls a Smarty custom plugin that we have created. The file is located at plugins/function.feature_listings_horizontal.php
We also have a video tutorial available here: Feature Listings Horizontal video
Parameters
- number
- (integer) The max number of listings you want displayed.
- cols
- (integer) This is the number of columns you want to display before a new row is started.
- owner
- (integer) This the user id of the listings you want to show. This will allow you to have more ads by a certain seller. (Since v4.1.0)
- featured
- (string) Y or N Whether the listings should be featured or not. Default is “Y”. (Since v4.1.0)
- table_attr
- (string) Any table attributes you would like. For example: table_attr='width=“100%”'.
- tr_attr
- (string) Any tr attributes you would like.
- td_attr
- (string) Any td attributes you would like.
- show_price
- (string) Y or N.
- trailpad
- (string) A value to pad the trailing cells on last row with (if any) The default is a space or
- hdir
- (string) The direction of each row to be rendered. possible values: left (left-to-right), right (right-to-left) the default is right
- vdir
- (string) The direction of each column to be rendered. possible values: down (top-to-bottom), up (bottom-to-top) default is down.
Have more questions? Visit our community forums.