国内流行的内容管理系统(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.

44 line
1.1KB

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