mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix #1174 Add number_shorten() function and 'shorten' template filter
This commit is contained in:
parent
4f20f0e8c1
commit
72577ce6bb
4 changed files with 73 additions and 0 deletions
|
|
@ -399,6 +399,14 @@ class TemplateHandlerTest extends \Codeception\TestCase\Test
|
|||
'<p>{$foo|format:2}</p>',
|
||||
'?><p><?php echo number_format($__Context->foo, \'2\') ?></p>'
|
||||
),
|
||||
array(
|
||||
'<p>{$foo|shorten}</p>',
|
||||
'?><p><?php echo number_shorten($__Context->foo) ?></p>'
|
||||
),
|
||||
array(
|
||||
'<p>{$foo|shorten:2}</p>',
|
||||
'?><p><?php echo number_shorten($__Context->foo, \'2\') ?></p>'
|
||||
),
|
||||
array(
|
||||
'<p>{$foo|date:His}</p>',
|
||||
'?><p><?php echo getDisplayDateTime(ztime($__Context->foo), \'His\') ?></p>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue