]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - lib/subqueuelistitem.php
Pending subscription requests now work as they should
[quix0rs-gnu-social.git] / lib / subqueuelistitem.php
1 <?php
2
3 if (!defined('GNUSOCIAL')) { exit(1); }
4
5 class SubQueueListItem extends ProfileListItem
6 {
7     public function showActions()
8     {
9         $this->startActions();
10         if (Event::handle('StartProfileListItemActionElements', array($this))) {
11             $this->showApproveButtons();
12             Event::handle('EndProfileListItemActionElements', array($this));
13         }
14         $this->endActions();
15     }
16
17     public function showApproveButtons()
18     {
19         $this->out->elementStart('li', 'entity_approval');
20         $form = new ApproveSubForm($this->out, $this->profile);
21         $form->show();
22         $this->out->elementEnd('li');
23     }
24 }