You are here

function shrsb_truncate_text in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.2

1 call to shrsb_truncate_text()
theme_sexybookmarks_services in plugins/export_ui/sexybookmarks_profiles.inc

File

plugins/export_ui/sexybookmarks_profiles.inc, line 435

Code

function shrsb_truncate_text($text, $nbrChar, $append = '..') {
  if (strlen($text) > $nbrChar) {
    $text = substr($text, 0, $nbrChar);
    $text .= $append;
  }
  return $text;
}