the rest of the standard widgets converted

This commit is contained in:
zotlabs
2017-03-16 17:11:48 -07:00
parent 051759580d
commit 446b5550a2
21 changed files with 861 additions and 762 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace Zotlabs\Widget;
class Website_portation_tools {
function widget($arr) {
// mod menu doesn't load a profile. For any modules which load a profile, check it.
// otherwise local_channel() is sufficient for permissions.
if(\App::$profile['profile_uid'])
if((\App::$profile['profile_uid'] != local_channel()) && (! \App::$is_sys))
return '';
if(! local_channel())
return '';
return website_portation_tools();
}
}