subqueuelistitem.php 697 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. if (!defined('GNUSOCIAL')) { exit(1); }
  3. class SubQueueListItem extends ProfileListItem
  4. {
  5. public $widgetOpts;
  6. public $scoped;
  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. public function showApproveButtons()
  17. {
  18. $this->out->elementStart('li', 'entity_approval');
  19. $form = new ApproveSubForm($this->out, $this->profile);
  20. $form->show();
  21. $this->out->elementEnd('li');
  22. }
  23. }