Smarty Functions

Custom Smarty Functions Used By bitweaver

Created by: Andrew Slater, Last modification: 21 Jan 2007 (11: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.bitmoduleHelps creating modules
block_box
block_formGenerates the form element and some more
block_forminputapplies correct css styling for form input elements
block_jstab
block_jstabsgives you a nice tabs without much programming
block_legendshould 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_datetimeDisplays a date/datetime input facility
function_bithelp
function_biticonused to display icons
function_captcha
function_contentThis function requires the DCS package
function_cookie
function_displaycomment
function_displaynameThis 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_formfeedbackUse this to display feedback about the user's actions (success/failure/warning)
function_formhelp
function_formlabelapplies correct css styling for form labels
function_gallery
function_helplinkGenerates a link to a wiki page. The link is labeled as 'help'.
function_html_select_dateCreates date selection dropdown lists
function_html_select_timeCreates time dropdowns for you. It can display any or all of hour, minute, second and meridian.
function_inlinemodule
function_jscalendarUsed to short-cut a Date Time chooser using JSCalendar
function_jspopup
function_libertypagination
function_memusage
function_menu
function_minifind
function_nexus
function_paginationdisplays pagination links at the bottom of lists
function_pagination_c
functionallows addition of php to template files
function_poll
function_popup
function_querytable
function_rcontent
function_rss
function_sameurl
function_showdate
function_smartlinkOutputs 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_tikihelpadds a '?' which links to appropriate help pages
function_var_dumpHelps 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