模板中,
<!--{subtemplate common/headerF}-->
这样就不能加载

 

 

source/class/class_template.php里65行附近代码


$headeradd = $headerexists ? "hookscriptoutput('$basefile');" : '';

如果存在$headerexists,才会在模板里加载钩子代码。
而 $headerexists的定义如下
$headerexists = preg_match("/{(sub)?template\s+[\w\/]+?header\}/", $template);

<!--{subtemplate common/headerF}-->

相关文章:

  • 2021-10-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-01-08
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案