include/Smarty/plugins/block.textformat.php
Smarty plugin
- Package
- Smarty
- Subpackage
- plugins
Functions
smarty_block_textformat(
array $params, string $content, \Smarty $smarty
)
:
string
Smarty {textformat}{/textformat} block plugin
Type: block function
Name: textformat
Purpose: format text a certain way with preset styles
or custom wrap/indent settings
Name | Type | Description |
---|---|---|
$params | array | Params: style: string (email) indent: integer (0) wrap: integer (80) wrap_char string ("\n") indent_char: string (" ") wrap_boundary: boolean (true) |
$content | string | contents of the block |
$smarty | \Smarty | clever simulation of a method |
Type | Description |
---|---|
string | string $content re-formatted |
- Author
- Monte Ohrt
- Link
- {textformat} (Smarty online manual)