Chevereto Embed codes 嵌入代码修改
Chevereto默认的嵌入代码比较多, 可以删除一些不需要的.
/app/routes/route.image.php
// Embed codes
$embed = [];
$embed['direct-links'] = [
'label' => _s('Direct links'),
'entries' => [
[
'label' => _s('Image link'),
'value' => $image['url_viewer']
],
[
'label' => _s('Image URL'),
'value' => $image['url']
],
[
'label' => _s('Thumbnail URL'),
'value' => $image['thumb']['url']
],
]
];
if($image['medium']) {
$embed['direct-links']['entries'][] = [
'label' => _s('Medium URL'),
'value' => $image['medium']['url']
];
}
这里开始就是一些嵌入代码, 可以根据自己的需求修改