diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-06-14 07:29:43 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-06-14 07:29:43 -0400 |
commit | d2b525a8c9d4926944ad4a9126dbd266dc823a9b (patch) | |
tree | 838022e68dcba46540db96469a02277bedf3f6dd /views | |
parent | 9c322938db8b7c4cf87298f5f51fc3eed9450aeb (diff) | |
download | elgg-d2b525a8c9d4926944ad4a9126dbd266dc823a9b.tar.gz elgg-d2b525a8c9d4926944ad4a9126dbd266dc823a9b.tar.bz2 |
Fixes #5626 adds limit for display of titles for river, breadcrumbs, and list pages
Diffstat (limited to 'views')
-rw-r--r-- | views/default/object/elements/summary.php | 2 | ||||
-rw-r--r-- | views/default/river/elements/summary.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/views/default/object/elements/summary.php b/views/default/object/elements/summary.php index c0f3ad340..63ab8f816 100644 --- a/views/default/object/elements/summary.php +++ b/views/default/object/elements/summary.php @@ -27,7 +27,7 @@ if ($title_link === '') { $text = $entity->name; } $params = array( - 'text' => $text, + 'text' => elgg_get_excerpt($text, 100), 'href' => $entity->getURL(), 'is_trusted' => true, ); diff --git a/views/default/river/elements/summary.php b/views/default/river/elements/summary.php index 416bc708b..d7bde51dd 100644 --- a/views/default/river/elements/summary.php +++ b/views/default/river/elements/summary.php @@ -18,9 +18,10 @@ $subject_link = elgg_view('output/url', array( 'is_trusted' => true, )); +$object_text = $object->title ? $object->title : $object->name; $object_link = elgg_view('output/url', array( 'href' => $object->getURL(), - 'text' => $object->title ? $object->title : $object->name, + 'text' => elgg_get_excerpt($object_text, 100), 'class' => 'elgg-river-object', 'is_trusted' => true, )); |