aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Widget/Profile.php')
-rw-r--r--Zotlabs/Widget/Profile.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/Zotlabs/Widget/Profile.php b/Zotlabs/Widget/Profile.php
index bffd910b6..a0bb1a66a 100644
--- a/Zotlabs/Widget/Profile.php
+++ b/Zotlabs/Widget/Profile.php
@@ -1,13 +1,24 @@
<?php
+/**
+ * * Name: Profile
+ * * Description: Your profile card
+ * * Requires: channel, articles, cards, wiki, cloud, photos
+ */
+
+
namespace Zotlabs\Widget;
+use App;
class Profile {
-
function widget($args) {
+ if(!App::$profile['profile_uid']) {
+ return;
+ }
+
$block = observer_prohibited();
- return profile_sidebar(\App::$profile, $block, true);
- }
-} \ No newline at end of file
+ return profile_sidebar(App::$profile, $block, true, false);
+ }
+}