aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Zcard.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 18:31:34 -0700
committerzotlabs <mike@macgirvin.com>2017-03-15 18:31:34 -0700
commit9cb9608209ab5f9fb123acc82a563ba54c450db1 (patch)
treecac1d07e7d04498ed2a555b3d8c3e89cd51b2634 /Zotlabs/Widget/Zcard.php
parentb20062efa6052e29b8d2d2a42ca966837db1c29f (diff)
downloadvolse-hubzilla-9cb9608209ab5f9fb123acc82a563ba54c450db1.tar.gz
volse-hubzilla-9cb9608209ab5f9fb123acc82a563ba54c450db1.tar.bz2
volse-hubzilla-9cb9608209ab5f9fb123acc82a563ba54c450db1.zip
convert more widgets to classes
Diffstat (limited to 'Zotlabs/Widget/Zcard.php')
-rw-r--r--Zotlabs/Widget/Zcard.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Zcard.php b/Zotlabs/Widget/Zcard.php
new file mode 100644
index 000000000..12e53eaab
--- /dev/null
+++ b/Zotlabs/Widget/Zcard.php
@@ -0,0 +1,11 @@
+<?php
+
+namespace Zotlabs\Widget;
+
+class Zcard {
+
+ function widget($args) {
+ $channel = channelx_by_n(\App::$profile_uid);
+ return get_zcard($channel,get_observer_hash(),array('width' => 875));
+ }
+}