first commit
This commit is contained in:
17
class/smarty_plugins/modifier.checked.php
Normal file
17
class/smarty_plugins/modifier.checked.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Smarty plugin.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty {translate} function plugin.
|
||||
*/
|
||||
function smarty_modifier_checked($string, $value = null)
|
||||
{
|
||||
if (is_null($value)) {
|
||||
return ($string) ? " checked='checked' " : '';
|
||||
}
|
||||
|
||||
return ($string == $value) ? " checked='checked' " : '';
|
||||
}
|
||||
Reference in New Issue
Block a user