Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / lib / peopletag.php
diff --git a/lib/peopletag.php b/lib/peopletag.php
new file mode 100644 (file)
index 0000000..4440beb
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+if (!defined('GNUSOCIAL')) { exit(1); }
+
+class Peopletag extends PeopletagListItem
+{
+    protected $avatarSize = AVATAR_PROFILE_SIZE;
+
+    function showStart()
+    {
+        $mode = $this->peopletag->private ? 'private' : 'public';
+        $this->out->elementStart('div', array('class' => 'h-entry peopletag peopletag-profile mode-'.$mode,
+                                             'id' => 'peopletag-' . $this->peopletag->id));
+    }
+
+    function showEnd()
+    {
+        $this->out->elementEnd('div');
+    }
+}