1.新建一个php文本
位置:usr/themes/Joe-master/public/custom.php
里面填入
<?php
?>
2.增加自定义位置
usr/themes/Joe-master/functions.php
<li class="item" data-current="joe_custom">自定义设置</li>
{/tabs-pane}
{tabs-pane label="位置"}
{/tabs-pane}
底部添加调用代码
require_once("public/custom.php");
放在}?>上面
效果:
这样可以方便后续管理自己添加的各种代码
例:
$JPageStatus->setAttribute('class', 'joe_content joe_custom'); // 如果无法显示设置,将joe_custom替换为joe_other
注:joe_custom和joe_other是设置显示的位置,custom是现在在自定义设置里面,other是显示在其他设置里面
评论 (0)