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,
        ];
    }

0XHUgO.md.png
文章来源:https://www.openos.org/post/610/
© 版权声明
THE END
点赞0赞赏
分享
评论 抢沙发
admin的头像-爱博客人

昵称

取消
昵称表情代码图片