comment.html.php 853 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * The comment view file of action module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Hao Sun <sunhao@easycorp.ltd>
  7. * @package action
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $actions = array();
  12. $actions[] = 'submit';
  13. $actions[] = array('data-dismiss' => 'modal', 'text' => $lang->close);
  14. set::title($title);
  15. form
  16. (
  17. set::url('action', 'comment', "objectType=$objectType&objectID=$objectID"),
  18. setClass('comment-form'),
  19. editor
  20. (
  21. set::name('actioncomment')
  22. ),
  23. !in_array($objectType, array('story', 'doctemplate')) ? fileSelector() : null,
  24. set::actions($actions)
  25. );