Version 1.13a

This commit is contained in:
nemunaire 2020-11-15 16:12:30 +01:00
commit ba8f323879
1634 changed files with 10080 additions and 213021 deletions

View file

@ -0,0 +1,22 @@
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty capitalize modifier plugin
*
* Type: modifier<br>
* Name: bbcode<br>
* @author Némunaire <nemunaire at gmail dot com>
* @param string
* @return string
*/
function smarty_modifier_bbcode($string)
{
return bbcode($string);
}
?>

View file

@ -0,0 +1,35 @@
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty plugin
*
* Type: modifier<br>
* Name: countdown<br>
* Date: Apr 15, 2009
* Example: {$text|countdown}
* @version 1.0
* @author Nemunaire <nemunaire at gmail dot com>
* @param timestamp
* @return string
*/
function smarty_modifier_countdown($secondes)
{
$heures = intval($secondes/3600);
if ($heures < 10) $heures = '0'.$heures;
$minutes = intval(($secondes%3600)/60);
if ($minutes < 10) $minutes = '0'.$minutes;
$secondes = $secondes%60;
if ($secondes < 10) $secondes = '0'.$secondes;
return $heures.':'.$minutes.':'.$secondes;
}
/* vim: set expandtab: */
?>

View file

@ -19,7 +19,7 @@
* @param string
* @return string
*/
function smarty_modifier_separenombre($string)
function smarty_modifier_separerNombres($string)
{
return number_format(floor($string), 0, ',', ' ');
}