ModuleBuilder::Catalog PHP Method

Catalog() public static method

导出网站分类模块数据
public static Catalog ( ) : string
return string 模块内容
    public static function Catalog()
    {
        global $zbp;
        $template = $zbp->template;
        $tags = array();
        $tags['style'] = $zbp->option['ZC_MODULE_CATALOG_STYLE'];
        $tags['maxLi'] = $zbp->modulesbyfilename['catalog']->MaxLi;
        $tags['catalogs'] = $zbp->categoriesbyorder;
        $template->SetTagsAll($tags);
        $ret = $template->Output('module-catalog');
        return $ret;
    }

Usage Example

Beispiel #1
0
function BuildModule_catalog()
{
    return ModuleBuilder::Catalog();
}