diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-01 14:55:22 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-01 14:55:22 +0000 |
commit | f887acaeea58ba7f15870416bc52d4b6451de082 (patch) | |
tree | a077eb959d9a98ae9cb0d1f32375cc2568082e3d /mod/guidtool/views | |
parent | fa39c6aaf2f9f87cfd89feaebdc22cf313396ec7 (diff) | |
download | elgg-f887acaeea58ba7f15870416bc52d4b6451de082.tar.gz elgg-f887acaeea58ba7f15870416bc52d4b6451de082.tar.bz2 |
GUIDTool now displays some generic information about entities where available.
git-svn-id: https://code.elgg.org/elgg/trunk@1654 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/guidtool/views')
-rw-r--r-- | mod/guidtool/views/default/guidtool/gallery.php | 7 | ||||
-rw-r--r-- | mod/guidtool/views/default/guidtool/listing.php | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/mod/guidtool/views/default/guidtool/gallery.php b/mod/guidtool/views/default/guidtool/gallery.php index 9212df17b..611f2a87a 100644 --- a/mod/guidtool/views/default/guidtool/gallery.php +++ b/mod/guidtool/views/default/guidtool/gallery.php @@ -15,8 +15,11 @@ $by = $entity->getOwnerEntity(); - - $info .= "<p><b><a href=\"{$CONFIG->url}pg/guidtool/view/{$entity->guid}/\">" . get_class($entity) . "</a></b></p>"; + $strap = $entity->title ? $entity->title : $entity->name; + $info .= "<p><b><a href=\"{$CONFIG->url}pg/guidtool/view/{$entity->guid}/\">" . get_class($entity) . "</a></b> $strap</p>"; + + $desc = $entity->description ? substr($entity->description, 0, 100) : ""; + $info .= "<p>$desc</p>"; $info .= "<div>"; if ($by) $info .= elgg_echo('by') . " <a href=\"".$by->getURL()."\">{$by->name}</a> "; diff --git a/mod/guidtool/views/default/guidtool/listing.php b/mod/guidtool/views/default/guidtool/listing.php index 21d93b64a..733c43e0b 100644 --- a/mod/guidtool/views/default/guidtool/listing.php +++ b/mod/guidtool/views/default/guidtool/listing.php @@ -21,7 +21,8 @@ ) ); - $info .= "<p><b><a href=\"{$CONFIG->url}pg/guidtool/view/{$entity->guid}/\">" . get_class($entity) . "</a></b></p>"; + $strap = $entity->title ? $entity->title : $entity->name; + $info .= "<p><b><a href=\"{$CONFIG->url}pg/guidtool/view/{$entity->guid}/\">" . get_class($entity) . "</a></b> $strap</p>"; $info .= "<div>"; if ($by) $info .= elgg_echo('by') . " <a href=\"".$by->getURL()."\">{$by->name}</a> "; |