PEEL Shopping
Open source ecommerce : PEEL Shopping
modifiercompiler.wordwrap.php
Go to the documentation of this file.
1 <?php
21 function smarty_modifiercompiler_wordwrap($params, $compiler)
22 {
23  if (!isset($params[1])) {
24  $params[1] = 80;
25  }
26  if (!isset($params[2])) {
27  $params[2] = '"\n"';
28  }
29  if (!isset($params[3])) {
30  $params[3] = 'false';
31  }
32  $function = 'wordwrap';
33  if (Smarty::$_MBSTRING) {
34  if ($compiler->template->caching && ($compiler->tag_nocache | $compiler->nocache)) {
35  $compiler->template->required_plugins['nocache']['wordwrap']['modifier']['file'] = SMARTY_PLUGINS_DIR .'shared.mb_wordwrap.php';
36  $compiler->template->required_plugins['nocache']['wordwrap']['modifier']['function'] = 'smarty_mb_wordwrap';
37  } else {
38  $compiler->template->required_plugins['compiled']['wordwrap']['modifier']['file'] = SMARTY_PLUGINS_DIR .'shared.mb_wordwrap.php';
39  $compiler->template->required_plugins['compiled']['wordwrap']['modifier']['function'] = 'smarty_mb_wordwrap';
40  }
41  $function = 'smarty_mb_wordwrap';
42  }
43  return $function . '(' . $params[0] . ',' . $params[1] . ',' . $params[2] . ',' . $params[3] . ')';
44 }
45 
46 ?>
static $_MBSTRING
Flag denoting if Multibyte String functions are available.
smarty_modifiercompiler_wordwrap($params, $compiler)
Smarty wordwrap modifier plugin.

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:16 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.