aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Zcard.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 18:31:34 -0700
committerMario Vavti <mario@mariovavti.com>2017-03-29 11:47:58 +0200
commit477ed97c2fbfff903f9ebf0ffa7fba078eeac10f (patch)
tree4f7f44aaa5d64c67f3959d196c8c55ae100c79e0 /Zotlabs/Widget/Zcard.php
parent242ef70a775a86050152c0aea9096ec1cd6d0312 (diff)
downloadvolse-hubzilla-477ed97c2fbfff903f9ebf0ffa7fba078eeac10f.tar.gz
volse-hubzilla-477ed97c2fbfff903f9ebf0ffa7fba078eeac10f.tar.bz2
volse-hubzilla-477ed97c2fbfff903f9ebf0ffa7fba078eeac10f.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));
+ }
+}