Smarty Functions
Custom Smarty Functions Used By bitweaver
Created by: Andrew Slater, Last modification: 21 Jan 2007 (06:57 UTC) by hiran
Bitweaver uses the Smarty template engine to process templates (*.tpl files). Inside these templates, you can use all Standard Smarty functions as well as some extensions introduced by Bitweaver. This is a list of the Bitweaver extensions.
Block Functions
name/link | brief description of function |
| block.bitmodule | Helps creating modules |
| block_box | |
| block_form | Generates the form element and some more |
| block_forminput | applies correct css styling for form input elements |
| block_jstab | |
| block_jstabs | gives you a nice tabs without much programming |
| block_legend | should surround a number of form fields (resembles the html fieldset plus a label) |
| block_navbar | |
| block_repeat | |
| block_sortlinks | |
| block_tr |
Simple Functions
name/link | brief description of function |
| function_adsense | |
| function_alphabar | |
| function_banner | |
| function_bit_select_datetime | Displays a date/datetime input facility |
| function_bithelp | |
| function_biticon | used to display icons |
| function_captcha | |
| function_content | This function requires the DCS package |
| function_cookie | |
| function_displaycomment | |
| function_displayname | This is a smarty tag which allows various different identifiers to be used to indentify a user other than his/her 'login' |
| function_ed | |
| function_elapsed | |
| function_formfeedback | Use this to display feedback about the user's actions (success/failure/warning) |
| function_formhelp | |
| function_formlabel | applies correct css styling for form labels |
| function_gallery | |
| function_helplink | Generates a link to a wiki page. The link is labeled as 'help'. |
| function_html_select_date | Creates date selection dropdown lists |
| function_html_select_time | Creates time dropdowns for you. It can display any or all of hour, minute, second and meridian. |
| function_inlinemodule | |
| function_jscalendar | Used to short-cut a Date Time chooser using JSCalendar |
| function_jspopup | |
| function_libertypagination | |
| function_memusage | |
| function_menu | |
| function_minifind | |
| function_nexus | |
| function_pagination | displays pagination links at the bottom of lists |
| function_pagination_c | |
| function | allows addition of php to template files |
| function_poll | |
| function_popup | |
| function_querytable | |
| function_rcontent | |
| function_rss | |
| function_sameurl | |
| function_showdate | |
| function_smartlink | Outputs any kind of link. Especially useful when it comes to links used to sort a table, due to the simplified syntax and loss of cumbersome if clauses also useful if the you want to display an icon as link since smartlink takes biticon parameters |
| function_spellchecker | |
| function_tikihelp | adds a '?' which links to appropriate help pages |
| function_var_dump | Helps debugging a template as it dumps variable content to the debug console. |
Modifiers
name/link | brief description of function |
| modifier_act_icon | |
| modifier_adjust | |
| modifier_avatarize | |
| modifier_bit_date_format | |
| modifier_bit_long_date | |
| modifier_bit_long_datetime | |
| modifier_bit_long_time | |
| modifier_bit_short_date | |
| modifier_bit_short_datetime | |
| modifier_bit_short_time | |
| modifer_cal_date_format | |
| modifier_countryflag | |
| modifier_dbg | |
| modifier_display_bytes | |
| modifier_displayUrl | |
| modifier_div | |
| modifier_duration | |
| modifier_htmltotext | |
| modifier_iconifiy | |
| modifier_nlbr | |
| modifier_quoted | |
| modifier_reltime | |
| modifier_times | |
| modifier_truncate | |
| modifier_userlink |
Misc
name/link | brief description of function |
| outputfilter_highlight | |
| prefilter_tr | |
| resource_bitpackage | |
| resource_style |