subqueuelistitem.php 652 B

12345678910111213141516171819202122232425
  1. <?php
  2. if (!defined('GNUSOCIAL')) { exit(1); }
  3. class SubQueueListItem extends ProfileListItem
  4. {
  5. public function showActions()
  6. {
  7. $this->startActions();
  8. if (Event::handle('StartProfileListItemActionElements', array($this))) {
  9. $this->showApproveButtons();
  10. Event::handle('EndProfileListItemActionElements', array($this));
  11. }
  12. $this->endActions();
  13. }
  14. public function showApproveButtons()
  15. {
  16. $this->out->elementStart('li', 'entity_approval');
  17. $form = new ApproveSubForm($this->out, $this->profile);
  18. $form->show();
  19. $this->out->elementEnd('li');
  20. }
  21. }