mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
*** empty log message ***
This commit is contained in:
@@ -1,19 +1,28 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
/**
|
||||
* Smarty plugin
|
||||
* -------------------------------------------------------------
|
||||
* Type: block function
|
||||
* Name: textformat
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty textformat plugin
|
||||
*
|
||||
* Type: block function<br>
|
||||
* Name: textformat<br>
|
||||
* Purpose: format text a certain way with preset styles
|
||||
* or custom wrap/indent settings
|
||||
* or custom wrap/indent settings<br>
|
||||
* @param array
|
||||
* <pre>
|
||||
* Params: style: string (email)
|
||||
* indent: integer (0)
|
||||
* wrap: integer (80)
|
||||
* wrap_char string ("\n")
|
||||
* indent_char: string (" ")
|
||||
* wrap_boundary: boolean (true)
|
||||
* -------------------------------------------------------------
|
||||
* </pre>
|
||||
* @param string contents of the block
|
||||
* @param Smarty clever simulation of a method
|
||||
*/
|
||||
function smarty_block_textformat($params, $content, &$this)
|
||||
{
|
||||
|
Reference in New Issue
Block a user