first commit
This commit is contained in:
19
class/smarty_plugins/modifier.range_to_steps.php
Normal file
19
class/smarty_plugins/modifier.range_to_steps.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Smarty plugin.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty {range_to_step} function plugin.
|
||||
*
|
||||
* @param $range array
|
||||
*
|
||||
* @return array new range
|
||||
*/
|
||||
function smarty_modifier_range_to_step($range, $step)
|
||||
{
|
||||
var_dump([$range, $step]);
|
||||
|
||||
// Math.pow(10, Math.floor(Math.log10(313)))
|
||||
}
|
||||
Reference in New Issue
Block a user