diff --git a/Zotlabs/Widget/Channel_activities.php b/Zotlabs/Widget/Channel_activities.php index c2184301e..705c439ef 100644 --- a/Zotlabs/Widget/Channel_activities.php +++ b/Zotlabs/Widget/Channel_activities.php @@ -221,11 +221,17 @@ class Channel_activities { $footer .= intval($notices[0]['total']) . ' ' . tt('notice', 'notices', intval($notices[0]['total']), 'noun'); } + $tpl = get_markup_template('manage_channel_item.tpl'); + $i[] = [ - 'url' => z_root() . '/manage/' . $rr['channel_id'], - 'title' => '', - 'summary' => '
' . '' . $rr['channel_name'] . '
' . $rr['xchan_addr'] . '
', - 'footer' => $footer + 'url' => z_root() . '/manage/' . $rr['channel_id'], + 'title' => '', + 'summary' => replace_macros($tpl, [ + '$photo' => $rr['xchan_photo_s'], + '$name' => $rr['channel_name'], + '$addr' => $rr['xchan_addr'], + ]), + 'footer' => $footer ]; $channels_activity++; diff --git a/view/tpl/manage_channel_item.tpl b/view/tpl/manage_channel_item.tpl new file mode 100644 index 000000000..70365c8a2 --- /dev/null +++ b/view/tpl/manage_channel_item.tpl @@ -0,0 +1,5 @@ +
+ + {{$name}}
+ {{$addr}} +