+ function showDescription()
+ {
+ if (!empty($this->profile->description)) {
+ $cutoff = 140; // XXX Should this be configurable?
+ $description = htmlspecialchars($this->profile->description);
+
+ if (mb_strlen($description) > $cutoff) {
+ $description = mb_substr($description, 0, $cutoff - 1)
+ .'<a href="' . $this->profile->homeUrl() .'">…</a>';
+ }
+
+ $this->out->elementStart('p', 'note');
+ $this->out->raw($description);
+ $this->out->elementEnd('p');
+ }
+
+ }
+