Chevereto 图片展示页面默认显示嵌入代码
看到论坛好多人在问怎么样把Chevereto的图片展示页面从"关于"改为"嵌入代码"页面, 其实方法很简单, 只需要修改app/routes/route.image.php文件.
$tabs = [
[
"label" => _s('About'),
"id" => "tab-about",
"current" => true,
]
];
if(CHV\getSetting('theme_show_embed_content')) {
$tabs[] = [
"label" => _s('Embed codes'),
"id" => "tab-codes",
];
}
修改为
$tabs = [
[
"label" => _s('About'),
"id" => "tab-about",
]
];
if(CHV\getSetting('theme_show_embed_content')) {
$tabs[] = [
"label" => _s('Embed codes'),
"id" => "tab-codes",
"current" => true,
];
}
本网站所有内容版权没有, 请随意使用, 欢迎修改或转载, 无需署名, 也无需保留本链接.
确实是个好方法,赞