main.html.php 657 B

1234567891011121314
  1. <?php
  2. /**
  3. * The main 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 Yuting Wang <wangyuting@easycorp.ltd>
  7. * @package block
  8. * @link https://www.zentao.net
  9. */
  10. $viewDir = dirname(__FILE__);
  11. $extFire = $app->getExtensionRoot() . $config->edition . "/block/ext/view/{$code}block.html.php";
  12. $file2Include = file_exists($extFire) ? $extFire : "{$viewDir}/{$code}block.html.php";
  13. include $file2Include;