aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2016-02-09 06:03:43 +0100
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2016-02-09 06:03:43 +0100
commit8c99228c8ab4d0475dc2065e5682dd22d680d4e7 (patch)
tree65d2d57bde451526dc1dc3567d4c8722c7df807b /include/widgets.php
parent2935c5fe1ad7999d6abf527bfc8e8d353ceb9d32 (diff)
parentf984502499c836cde0be647907be505508c04e0c (diff)
downloadvolse-hubzilla-8c99228c8ab4d0475dc2065e5682dd22d680d4e7.tar.gz
volse-hubzilla-8c99228c8ab4d0475dc2065e5682dd22d680d4e7.tar.bz2
volse-hubzilla-8c99228c8ab4d0475dc2065e5682dd22d680d4e7.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php23
1 files changed, 22 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 8073058c6..fa2b3de4d 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -8,7 +8,7 @@
require_once('include/dir_fns.php');
require_once('include/contact_widgets.php');
require_once('include/attach.php');
-
+require_once('include/Contact.php');
function widget_profile($args) {
$a = get_app();
@@ -16,6 +16,16 @@ function widget_profile($args) {
return profile_sidebar($a->profile, $block, true);
}
+function widget_zcard($args) {
+ $a = get_app();
+ $block = (((get_config('system', 'block_public')) && (! local_channel()) && (! remote_channel())) ? true : false);
+ $channel = channelx_by_n($a->profile_uid);
+ return get_zcard($channel,get_observer_hash(),array('width' => 875));
+}
+
+
+
+
// FIXME The problem with the next widget is that we don't have a search function for webpages that we can send the links to.
// Then we should also provide an option to search webpages and conversations.
@@ -369,6 +379,17 @@ function widget_fullprofile($arr) {
return profile_sidebar($a->profile, $block);
}
+function widget_shortprofile($arr) {
+ $a = get_app();
+ if(! $a->profile['profile_uid'])
+ return;
+
+ $block = (((get_config('system', 'block_public')) && (! local_channel()) && (! remote_channel())) ? true : false);
+
+ return profile_sidebar($a->profile, $block, true, true);
+}
+
+
function widget_categories($arr) {
$a = get_app();