国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
889B

  1. <?php
  2. if (!defined('DEDEINC')) exit('dedebiz');
  3. /**
  4. * 这仅是一个演示标签
  5. *
  6. * @version $Id: demotag.lib.php 1 9:29 2010年7月6日Z tianya $
  7. * @package DedeBIZ.Taglib
  8. * @copyright Copyright (c) 2022, DedeBIZ.COM
  9. * @license https://www.dedebiz.com/license
  10. * @link https://www.dedebiz.com
  11. */
  12. function lib_demotag(&$ctag, &$refObj)
  13. {
  14. global $dsql, $envs;
  15. //属性处理
  16. $attlist = "row|12,titlelen|24";
  17. FillAttsDefault($ctag->CAttribute->Items, $attlist);
  18. extract($ctag->CAttribute->Items, EXTR_SKIP);
  19. $revalue = '';
  20. //您需编写的代码,不能用echo之类语法,把最终返回值传给$revalue
  21. //------------------------------------------------------
  22. $revalue = 'Hello Word!';
  23. //------------------------------------------------------
  24. return $revalue;
  25. }