aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/guidtool/views/default/guidtool/gallery.php7
-rw-r--r--mod/guidtool/views/default/guidtool/listing.php3
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> ";