mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-08 16:21:39 +01:00
24 lines
420 B
PHP
24 lines
420 B
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* Smarty block plugin dummy for testing plugin functionallity
|
||
|
|
*
|
||
|
|
* @package Smarty
|
||
|
|
* @subpackage PHPunitPlugin
|
||
|
|
*/
|
||
|
|
/**
|
||
|
|
* Smarty {dummyblock} {/dummyblock}
|
||
|
|
*
|
||
|
|
* @param $params
|
||
|
|
* @param $content
|
||
|
|
* @param $template
|
||
|
|
* @param $repeat
|
||
|
|
*/
|
||
|
|
function smarty_block_dummyblock($params, $content, $template, &$repeat)
|
||
|
|
{
|
||
|
|
if (is_null($content)) {
|
||
|
|
return;
|
||
|
|
} else {
|
||
|
|
return $content;
|
||
|
|
}
|
||
|
|
}
|