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 includes/templates/plugins/function.feature_listings_horizontal.php
- {feature_listings_horizontal - Tells smarty that you want to call that function file above.
- number=8 - This tells the function how many ads you want displayed.
- cols=3 - This is the number of columns you want to display before a new row is started.
- table_attr - attributes for table tag
- td_attr - attributes for the td tag
You can also include other parameters:
- show_price - Y or N and this controls the display of the price.
- tr_attr - attributes for the tr tag
- trailpad - value to pad the trailing cells on last row with (if any) The default is a space or
- hdir - direction of each row to be rendered. possible values: left (left-to-right), right (right-to-left) the default is right
- vdir - direction of each column to be rendered. possible values: down (top-to-bottom), up (bottom-to-top) default is down.
For more information on the different parameters you can visit this smarty link:
http://smarty.php.net/manual/en/lang...html.table.php