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
|
<?php
|
||||||
|
/**
|
||||||
/*
|
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
* -------------------------------------------------------------
|
* @package Smarty
|
||||||
* Type: block function
|
* @subpackage plugins
|
||||||
* Name: textformat
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Smarty textformat plugin
|
||||||
|
*
|
||||||
|
* Type: block function<br>
|
||||||
|
* Name: textformat<br>
|
||||||
* Purpose: format text a certain way with preset styles
|
* 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)
|
* Params: style: string (email)
|
||||||
* indent: integer (0)
|
* indent: integer (0)
|
||||||
* wrap: integer (80)
|
* wrap: integer (80)
|
||||||
* wrap_char string ("\n")
|
* wrap_char string ("\n")
|
||||||
* indent_char: string (" ")
|
* indent_char: string (" ")
|
||||||
* wrap_boundary: boolean (true)
|
* 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)
|
function smarty_block_textformat($params, $content, &$this)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user