Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getLink()
- {
- $text = $this->getUrl();
- if(strlen($text) > 40)
- {
- $text = sprintf( "%s...%s", substr($text, 0, 20), substr($text, -20, 20) );
- }
- return sprintf('<a href="%s">%s</a>', $this->getUrl(), $text);
- }
Add Comment
Please, Sign In to add comment