mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
provide a pdl file for mod invite and set the profile
This commit is contained in:
@@ -43,6 +43,19 @@ class Invite extends Controller {
|
||||
const MYP = 'ZAI';
|
||||
const VERSION = '2.0.0';
|
||||
|
||||
function init() {
|
||||
|
||||
if (!local_channel()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$channel = App::get_channel();
|
||||
if ($channel) {
|
||||
profile_load($channel['channel_address']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function post() {
|
||||
|
||||
// zai02
|
||||
|
||||
10
view/pdl/mod_invite.pdl
Normal file
10
view/pdl/mod_invite.pdl
Normal file
@@ -0,0 +1,10 @@
|
||||
[region=aside]
|
||||
[widget=profile][/widget]
|
||||
[/region]
|
||||
[region=content]
|
||||
$content
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
Reference in New Issue
Block a user