/home/techb158/exp.abdallabala.com/vendor/smarty/smarty/libs/plugins
NameSizeModeActions
block.textformat.php36640644editdlrm
function.counter.php18230644editdlrm
function.cycle.php33080644editdlrm
function.fetch.php80680644editdlrm
function.html_checkboxes.php95920644editdlrm
function.html_image.php56680644editdlrm
function.html_options.php82460644editdlrm
function.html_radios.php84340644editdlrm
function.html_select_date.php151830644editdlrm
function.html_select_time.php143750644editdlrm
function.html_table.php53750644editdlrm
function.mailto.php53860644editdlrm
function.math.php37850644editdlrm
modifier.capitalize.php42110644editdlrm
modifier.date_format.php26910644editdlrm
modifier.debug_print_var.php39290644editdlrm
modifier.escape.php96690644editdlrm
modifier.mb_wordwrap.php23460644editdlrm
modifier.regex_replace.php16570644editdlrm
modifier.replace.php9990644editdlrm
modifier.spacify.php7560644editdlrm
modifier.truncate.php22310644editdlrm
modifiercompiler.cat.php6120644editdlrm
modifiercompiler.count_characters.php9180644editdlrm
modifiercompiler.count_paragraphs.php6590644editdlrm
modifiercompiler.count_sentences.php7450644editdlrm
modifiercompiler.count_words.php9790644editdlrm
modifiercompiler.default.php7700644editdlrm
modifiercompiler.escape.php51250644editdlrm
modifiercompiler.from_charset.php7520644editdlrm
modifiercompiler.indent.php7120644editdlrm
modifiercompiler.lower.php7240644editdlrm
modifiercompiler.noprint.php3400644editdlrm
modifiercompiler.string_format.php5740644editdlrm
modifiercompiler.strip.php7980644editdlrm
modifiercompiler.strip_tags.php7200644editdlrm
modifiercompiler.to_charset.php7460644editdlrm
modifiercompiler.unescape.php11900644editdlrm
modifiercompiler.upper.php6780644editdlrm
modifiercompiler.wordwrap.php11120644editdlrm
outputfilter.trimwhitespace.php37770644editdlrm
shared.escape_special_chars.php9770644editdlrm
shared.literal_compiler_param.php10470644editdlrm
shared.make_timestamp.php14830644editdlrm
shared.mb_str_replace.php17900644editdlrm
shared.mb_unicode.php15300644editdlrm
variablefilter.htmlspecialchars.php4510644editdlrm
Edit: /home/techb158/exp.abdallabala.com/vendor/smarty/smarty/libs/plugins/modifier.truncate.php (2231B)
* * @param string $string input string * @param integer $length length of truncated text * @param string $etc end string * @param boolean $break_words truncate at word boundary * @param boolean $middle truncate in the middle of text * * @return string truncated string */ function smarty_modifier_truncate($string, $length = 80, $etc = '...', $break_words = false, $middle = false) { if ($length === 0) { return ''; } if (Smarty::$_MBSTRING) { if (mb_strlen($string, Smarty::$_CHARSET) > $length) { $length -= min($length, mb_strlen($etc, Smarty::$_CHARSET)); if (!$break_words && !$middle) { $string = preg_replace( '/\s+?(\S+)?$/' . Smarty::$_UTF8_MODIFIER, '', mb_substr($string, 0, $length + 1, Smarty::$_CHARSET) ); } if (!$middle) { return mb_substr($string, 0, $length, Smarty::$_CHARSET) . $etc; } return mb_substr($string, 0, $length / 2, Smarty::$_CHARSET) . $etc . mb_substr($string, -$length / 2, $length, Smarty::$_CHARSET); } return $string; } // no MBString fallback if (isset($string[ $length ])) { $length -= min($length, strlen($etc)); if (!$break_words && !$middle) { $string = preg_replace('/\s+?(\S+)?$/', '', substr($string, 0, $length + 1)); } if (!$middle) { return substr($string, 0, $length) . $etc; } return substr($string, 0, $length / 2) . $etc . substr($string, -$length / 2); } return $string; }