From a520063265459a6a02c7e39b64aa7fd83bc0b246 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 23 Feb 2022 11:52:11 +0000 Subject: widget descriptions and add content region to all pdl files for convenience --- Zotlabs/Widget/Chatroom_list.php | 2 +- Zotlabs/Widget/Common_friends.php | 2 +- Zotlabs/Widget/Fullprofile.php | 6 ++++++ Zotlabs/Widget/Helpindex.php | 7 +++++++ Zotlabs/Widget/Item.php | 8 +++++++- Zotlabs/Widget/Menu_preview.php | 6 ++++++ Zotlabs/Widget/Newmember.php | 9 +++++++-- Zotlabs/Widget/Permcats.php | 7 +++++++ Zotlabs/Widget/Photo.php | 6 ++++++ Zotlabs/Widget/Photo_albums.php | 6 ++++++ Zotlabs/Widget/Photo_rand.php | 11 ++++++++--- Zotlabs/Widget/Pinned.php | 9 ++++++--- Zotlabs/Widget/Portfolio.php | 10 +++++++--- Zotlabs/Widget/Privacygroups.php | 7 +++++++ Zotlabs/Widget/Profile.php | 7 +++++++ Zotlabs/Widget/Pubsites.php | 16 ---------------- Zotlabs/Widget/Pubtagcloud.php | 5 +++++ Zotlabs/Widget/Random_block.php | 5 +++++ Zotlabs/Widget/Rating.php | 6 ++++++ Zotlabs/Widget/Savedsearch.php | 6 ++++++ Zotlabs/Widget/Settings_menu.php | 5 +++++ Zotlabs/Widget/Shortprofile.php | 18 ------------------ Zotlabs/Widget/Sitesearch.php | 6 ++++++ Zotlabs/Widget/Suggestions.php | 13 +++++++++---- Zotlabs/Widget/Tagcloud.php | 5 +++++ Zotlabs/Widget/Tagcloud_wall.php | 6 ++++++ Zotlabs/Widget/Tasklist.php | 9 ++++++--- Zotlabs/Widget/Tokens.php | 6 ++++++ Zotlabs/Widget/Vcard.php | 5 +++++ Zotlabs/Widget/Website_portation_tools.php | 7 ++++++- Zotlabs/Widget/Wiki_list.php | 5 +++++ Zotlabs/Widget/Wiki_page_history.php | 8 +++++++- Zotlabs/Widget/Wiki_pages.php | 10 ++++++++-- Zotlabs/Widget/Zcard.php | 5 +++++ 34 files changed, 190 insertions(+), 59 deletions(-) delete mode 100644 Zotlabs/Widget/Pubsites.php delete mode 100644 Zotlabs/Widget/Shortprofile.php (limited to 'Zotlabs') diff --git a/Zotlabs/Widget/Chatroom_list.php b/Zotlabs/Widget/Chatroom_list.php index 42b92ddb2..d80e40bf9 100644 --- a/Zotlabs/Widget/Chatroom_list.php +++ b/Zotlabs/Widget/Chatroom_list.php @@ -1,7 +1,7 @@ '; $level_0 = get_help_content('sitetoc'); diff --git a/Zotlabs/Widget/Item.php b/Zotlabs/Widget/Item.php index 273d5649c..9fd703dfe 100644 --- a/Zotlabs/Widget/Item.php +++ b/Zotlabs/Widget/Item.php @@ -1,5 +1,11 @@ t('Upload profile photo'), 'cover_photo' => t('Upload cover photo'), 'profiles' => t('Edit your profile'), @@ -84,4 +89,4 @@ class Newmember { } - + diff --git a/Zotlabs/Widget/Permcats.php b/Zotlabs/Widget/Permcats.php index a908f6220..9226b3c71 100644 --- a/Zotlabs/Widget/Permcats.php +++ b/Zotlabs/Widget/Permcats.php @@ -1,5 +1,12 @@ '; diff --git a/Zotlabs/Widget/Pinned.php b/Zotlabs/Widget/Pinned.php index 66d06bbd3..83036e98c 100644 --- a/Zotlabs/Widget/Pinned.php +++ b/Zotlabs/Widget/Pinned.php @@ -1,11 +1,14 @@ $upload_form, '$usage' => $usage_message )); - + return $o; } } diff --git a/Zotlabs/Widget/Privacygroups.php b/Zotlabs/Widget/Privacygroups.php index a6b16c552..62f343ea6 100644 --- a/Zotlabs/Widget/Privacygroups.php +++ b/Zotlabs/Widget/Privacygroups.php @@ -1,5 +1,12 @@ '; - } -} - - diff --git a/Zotlabs/Widget/Pubtagcloud.php b/Zotlabs/Widget/Pubtagcloud.php index 826e3e6ae..db7ea02e7 100644 --- a/Zotlabs/Widget/Pubtagcloud.php +++ b/Zotlabs/Widget/Pubtagcloud.php @@ -1,5 +1,10 @@ 2) ? mt_rand(0,count($r) - 2) : 0); + $index = ((count($r) > 4) ? mt_rand(0,count($r) - 4) : 0); - for($x = $index; $x <= ($index+1); $x ++) { + for($x = $index; $x <= ($index+3); $x ++) { $rr = $r[$x]; if(! $rr['xchan_url']) break; diff --git a/Zotlabs/Widget/Tagcloud.php b/Zotlabs/Widget/Tagcloud.php index f79bd59ad..00456f24f 100644 --- a/Zotlabs/Widget/Tagcloud.php +++ b/Zotlabs/Widget/Tagcloud.php @@ -2,6 +2,11 @@ namespace Zotlabs\Widget; +/** + * * Name: Tag cloud + * * Description: Display hashtags of your network items in a cloud + * * Requires: network, hq + */ class Tagcloud { diff --git a/Zotlabs/Widget/Tagcloud_wall.php b/Zotlabs/Widget/Tagcloud_wall.php index 7cff6ce09..20def4ab1 100644 --- a/Zotlabs/Widget/Tagcloud_wall.php +++ b/Zotlabs/Widget/Tagcloud_wall.php @@ -1,5 +1,11 @@ '; - $o .= '
' . '

' . t('Tasks') . '

'; + $o .= '
' . '

' . t('Tasks') . '

'; $o .= '
'; $o .= '
'; return $o; diff --git a/Zotlabs/Widget/Tokens.php b/Zotlabs/Widget/Tokens.php index 8c31003fc..69452d628 100644 --- a/Zotlabs/Widget/Tokens.php +++ b/Zotlabs/Widget/Tokens.php @@ -1,5 +1,11 @@ \App::$profile_uid, + 'channel_id' => \App::$profile_uid, 'observer_hash' => get_observer_hash(), 'resource_id' => $resource_id, 'pageUrlName' => $pageUrlName diff --git a/Zotlabs/Widget/Wiki_pages.php b/Zotlabs/Widget/Wiki_pages.php index dee0a2229..ece712334 100644 --- a/Zotlabs/Widget/Wiki_pages.php +++ b/Zotlabs/Widget/Wiki_pages.php @@ -1,5 +1,11 @@ t('Add new page'), '$typelock' => $typelock, '$lockedtype' => $w['mimeType'], - '$mimetype' => mimetype_select(0,$w['mimeType'], + '$mimetype' => mimetype_select(0,$w['mimeType'], [ 'text/markdown' => t('Markdown'), 'text/bbcode' => t('BBcode'), 'text/plain' => t('Text') ]), '$pageName' => array('missingPageName', 'Create Page' , $pageName), '$refresh' => $arr['refresh'], @@ -91,7 +97,7 @@ class Wiki_pages { '$addnew' => t('Add new page'), '$typelock' => $typelock, '$lockedtype' => $w['mimeType'], - '$mimetype' => mimetype_select(0,$w['mimeType'], + '$mimetype' => mimetype_select(0,$w['mimeType'], [ 'text/markdown' => t('Markdown'), 'text/bbcode' => t('BBcode'), 'text/plain' => t('Text') ]), '$pageName' => array('pageName', t('Page name')), '$refresh' => $arr['refresh'], diff --git a/Zotlabs/Widget/Zcard.php b/Zotlabs/Widget/Zcard.php index 12e53eaab..35362c50e 100644 --- a/Zotlabs/Widget/Zcard.php +++ b/Zotlabs/Widget/Zcard.php @@ -1,5 +1,10 @@