mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
removed trailing spaces
This commit is contained in:
@@ -24,7 +24,7 @@ function smarty_function_assign_debug_info($params, &$smarty)
|
|||||||
ksort($config_vars);
|
ksort($config_vars);
|
||||||
$smarty->assign("_debug_config_keys", array_keys($config_vars));
|
$smarty->assign("_debug_config_keys", array_keys($config_vars));
|
||||||
$smarty->assign("_debug_config_vals", array_values($config_vars));
|
$smarty->assign("_debug_config_vals", array_values($config_vars));
|
||||||
}
|
}
|
||||||
|
|
||||||
$included_templates = $smarty->_smarty_debug_info;
|
$included_templates = $smarty->_smarty_debug_info;
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
* - delimiter = the value delimiter, default is ","
|
* - delimiter = the value delimiter, default is ","
|
||||||
* - assign = boolean, assigns to template var instead of
|
* - assign = boolean, assigns to template var instead of
|
||||||
* printed.
|
* printed.
|
||||||
*
|
*
|
||||||
* Examples:<br>
|
* Examples:<br>
|
||||||
* <pre>
|
* <pre>
|
||||||
* {cycle values="#eeeeee,#d0d0d0d"}
|
* {cycle values="#eeeeee,#d0d0d0d"}
|
||||||
@@ -66,7 +66,7 @@ function smarty_function_cycle($params, &$smarty)
|
|||||||
$cycle_vars[$name]['delimiter'] = (isset($params['delimiter'])) ? $params['delimiter'] : ',';
|
$cycle_vars[$name]['delimiter'] = (isset($params['delimiter'])) ? $params['delimiter'] : ',';
|
||||||
|
|
||||||
if(is_array($cycle_vars[$name]['values'])) {
|
if(is_array($cycle_vars[$name]['values'])) {
|
||||||
$cycle_array = $cycle_vars[$name]['values'];
|
$cycle_array = $cycle_vars[$name]['values'];
|
||||||
} else {
|
} else {
|
||||||
$cycle_array = explode($cycle_vars[$name]['delimiter'],$cycle_vars[$name]['values']);
|
$cycle_array = explode($cycle_vars[$name]['delimiter'],$cycle_vars[$name]['values']);
|
||||||
}
|
}
|
||||||
@@ -88,7 +88,7 @@ function smarty_function_cycle($params, &$smarty)
|
|||||||
|
|
||||||
if($advance) {
|
if($advance) {
|
||||||
if ( $cycle_vars[$name]['index'] >= count($cycle_array) -1 ) {
|
if ( $cycle_vars[$name]['index'] >= count($cycle_array) -1 ) {
|
||||||
$cycle_vars[$name]['index'] = 0;
|
$cycle_vars[$name]['index'] = 0;
|
||||||
} else {
|
} else {
|
||||||
$cycle_vars[$name]['index']++;
|
$cycle_vars[$name]['index']++;
|
||||||
}
|
}
|
||||||
|
@@ -48,7 +48,7 @@
|
|||||||
*/
|
*/
|
||||||
function smarty_function_mailto($params, &$smarty)
|
function smarty_function_mailto($params, &$smarty)
|
||||||
{
|
{
|
||||||
$extra = '';
|
$extra = '';
|
||||||
|
|
||||||
if (empty($params['address'])) {
|
if (empty($params['address'])) {
|
||||||
$smarty->trigger_error("mailto: missing 'address' parameter");
|
$smarty->trigger_error("mailto: missing 'address' parameter");
|
||||||
|
Reference in New Issue
Block a user