惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Securelist
V
V2EX
MongoDB | Blog
MongoDB | Blog
量子位
J
Java Code Geeks
GbyAI
GbyAI
Attack and Defense Labs
Attack and Defense Labs
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 叶小钗
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Cloudbric
Cloudbric
Recorded Future
Recorded Future
月光博客
月光博客
Help Net Security
Help Net Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
The Register - Security
The Register - Security
Scott Helme
Scott Helme
Google DeepMind News
Google DeepMind News
W
WeLiveSecurity
G
Google Developers Blog
T
Troy Hunt's Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
I
InfoQ
S
SegmentFault 最新的问题
G
GRAHAM CLULEY
C
Check Point Blog
Project Zero
Project Zero
有赞技术团队
有赞技术团队
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
P
Privacy International News Feed
AI
AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
F
Full Disclosure
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Hacker News: Front Page
S
Secure Thoughts
罗磊的独立博客
T
Threat Research - Cisco Blogs
aimingoo的专栏
aimingoo的专栏
博客园_首页
宝玉的分享
宝玉的分享
C
Cybersecurity and Infrastructure Security Agency CISA

汤阴豫唐网络

豫唐网络「百搭用户中心系统」喜获国家版权局计算机软件著作权登记证书 - 豫唐新闻 - 汤阴豫唐网络 zblog主题助手 - 版本更新说明 - V1.1.0 - 更新日志 豫唐网络自主研发《豫唐智能教案在线生成平台》成功获得国家软件著作权认证 - 豫唐新闻 - 汤阴豫唐网络 关于豫唐官网升级至PHP 8.5的公告 - 豫唐新闻 - 汤阴豫唐网络 zblog主题助手 - zblog作品展示 - 汤阴豫唐网络 豫唐AI发文 - 版本更新说明 - V1.0.7 - 更新日志 豫唐ai发文 - zblog作品展示 - 汤阴豫唐网络 豫唐智能教案在线生成平台 - 版本更新说明 - V1.0.1 - 更新日志 豫唐·星空钢琴 - 版本更新说明 - V1.0.3 - 更新日志 恭喜!汤阴豫唐官网百度收录配额大幅提升 - 豫唐新闻 - 汤阴豫唐网络 百度搜索资源小工具 - zblog作品展示 - 汤阴豫唐网络 安幼数媒论文助手 - 版本更新说明 - V1.0.1 - 更新日志 豫唐·星空钢琴正式发布 — 让音乐梦想触手可及 - 豫唐新闻 汤阴豫唐网络加入百度百科热词团队,以认真践初心 - 豫唐新闻 - 汤阴豫唐网络
首页模块显示 - zblog主题助手 - zblog
2026-07-06 · via 汤阴豫唐网络

首页模块显示 - zblog主题助手

准备工作

1、当前主题需要有template.json

2、安装并启动《zblog主题助手》插件

步骤

1、拆分首页模块。

这里已图文模块为例,在template文件夹下创建自定义文件名,比m-tuwen.php,案例代码如下:

<div class="content" id="imgtxt">
    <h2>{if $cname->ID==0}最新发布{else}{$cname.Name}{/if}</h2>
    {if $cname->ID!=0 && $cname->Intro}<p>{$cname->Intro}</p>{/if}
    <div class="img-txt-list">
        {php}
        $w=array();$w['count']=$reg['num'];
        if($reg['category']){$w['cate']=$reg['category'];}
        $array=GetList($w);
        {/php}
        {foreach $array as $key=>$related}
        <div class="img-txt-list-box-content">
            <a href="{$related.Url}"class="post">
            <img src="{$related.Img}"alt="">
            <h3>{$related.Title}</h3>
            <p class="post-intro">{$related.Intro}</p>
            </a>
        </div>
        {/foreach}
    </div>
</div>

字段说明:

模块传递的值在$reg里面,里面2个可用值。

分类ID:$reg['category']
显示数量:$reg['num']

2、在template.json里面定义模块描述,添加描述数组

{
"filename":"m-tuwen",
"type":"module",
"name":"图文模块"
}

3、在首页删除拆分的模块,替换以下代码

{template:ytecn_module/module}

4、然后这个时候就可以去《zblog主题助手》中的《配置中心》页面控制模块显示了。