aboutsummaryrefslogtreecommitdiff
path: root/views/rss/page/components/creator.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-29 15:07:43 -0400
committercash <cash.costello@gmail.com>2011-10-29 15:07:43 -0400
commit4106d50727d5a56ec1442b16e182fbd9acc6b167 (patch)
tree461b4ed1050214bdd681b7368ba56d5cb5a4092e /views/rss/page/components/creator.php
parent508000e9e3a49c0f659279ba916bde4a771ed777 (diff)
downloadelgg-4106d50727d5a56ec1442b16e182fbd9acc6b167.tar.gz
elgg-4106d50727d5a56ec1442b16e182fbd9acc6b167.tar.bz2
Fixes #3201 updates rss view type for core Elgg
Diffstat (limited to 'views/rss/page/components/creator.php')
-rw-r--r--views/rss/page/components/creator.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/views/rss/page/components/creator.php b/views/rss/page/components/creator.php
new file mode 100644
index 000000000..a14f1dbca
--- /dev/null
+++ b/views/rss/page/components/creator.php
@@ -0,0 +1,14 @@
+<?php
+/**
+ * Creator view
+ *
+ * Implements Dublin Core creator
+ *
+ * @uses $vars['entity']
+ */
+
+$owner = $vars['entity']->getOwnerEntity();
+if ($owner) {
+ $owner_name = htmlspecialchars($owner->name, ENT_NOQUOTES, 'UTF-8');
+ echo "<dc:creator>$owner_name</dc:creator>";
+}