singledynamicblock.html.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * The singleproductdynamic block view file of block 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 Mengyi Liu <liumengyi@easycorp.ltd>
  7. * @package block
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $content = array();
  12. if(empty($actions))
  13. {
  14. $content[] = div
  15. (
  16. setClass('flex items-center justify-center h-64'),
  17. span
  18. (
  19. setClass('text-gray'),
  20. $lang->action->noDynamic
  21. )
  22. );
  23. }
  24. else
  25. {
  26. $content[] = div
  27. (
  28. setClass('flex-auto actions-box'),
  29. dynamic
  30. (
  31. set::dynamics($actions),
  32. set::users($users)
  33. )
  34. );
  35. }
  36. panel
  37. (
  38. setClass('dynamic-block'),
  39. set::title($block->title),
  40. to::headingActions
  41. (
  42. a
  43. (
  44. set('class', 'text-gray'),
  45. set('href', createLink('product', 'dynamic', 'productID=' . $productID)),
  46. $lang->more,
  47. icon('caret-right')
  48. )
  49. ),
  50. $content
  51. );
  52. render();