aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/views/default/pages/pagegallery.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/views/default/pages/pagegallery.php')
-rw-r--r--mod/pages/views/default/pages/pagegallery.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/mod/pages/views/default/pages/pagegallery.php b/mod/pages/views/default/pages/pagegallery.php
new file mode 100644
index 000000000..b49150927
--- /dev/null
+++ b/mod/pages/views/default/pages/pagegallery.php
@@ -0,0 +1,37 @@
+<?php
+ /**
+ * Elgg Pages
+ *
+ * @package ElggPages
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ $icon = elgg_view(
+ "graphics/icon", array(
+ 'entity' => $vars['entity'],
+ 'size' => 'medium',
+ )
+ );
+
+ $info = "<div><p><b><a href=\"" . $vars['entity']->getUrl() . "\">" . $vars['entity']->title . "</a></b></p></div>";
+
+
+ $latest = $vars['entity']->getAnnotations('page', 1, 0, 'desc');
+ if ($latest) {
+ $latest = $latest[0];
+
+ $time_updated = $latest->time_created;
+ $owner_guid = $latest->owner_guid;
+ $owner = get_entity($owner_guid);
+
+
+ $info .= "<br /><div>".
+ strip_tags(substr($latest->value, 0, 100))
+ . "</div>";
+ }
+
+ echo elgg_view_listing($icon, $info);
+?> \ No newline at end of file