agence-repliq/kirby-gallery-block 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

agence-repliq/kirby-gallery-block

最新稳定版本:1.0.4

Composer 安装命令:

composer require agence-repliq/kirby-gallery-block

包简介

Custom gallery Block for Kirby CMS block editor

README 文档

README

The idea is to provide alt text for each image from the block editor directly.

Screenshot of admin

How to dev

Install dependencies
npm install

Start watch process
npm run dev

Start buil process
npm run build

Config file thumb

Exemple of config for thumb to put in config.php

'thumbs' => [
    'presets' => [
        'default' => ['width' => 1400, 'height' => 1400, 'quality' => 60],
        'xl' => ['width' => 1200, 'height' => 1200, 'quality' => 60],
        'md' => ['width' => 600, 'height' => 600, 'quality' => 60],
        'sm' => ['width' => 300, 'height' => 300, 'quality' => 60],
        'xs' => ['width' => 160, 'height' => 160, 'quality' => 60],
    ],
    'srcsets' => [
        'default' => [
            '1x' => ['width' => 800, 'height' => 800, 'quality' => 60,'format' => 'webp'],
            '2x' => ['width' => 1400, 'height' => 1400, 'quality' => 60,'format' => 'webp']
        ],
        'xl' => [
            '1x' => ['width' => 600, 'height' => 600, 'quality' => 60,'format' => 'webp'],
            '2x' => ['width' => 1200, 'height' => 1200, 'quality' => 60,'format' => 'webp']
        ],
        'md' => [
            '1x' => ['width' => 300, 'height' => 300, 'quality' => 60,'format' => 'webp'],
            '2x' => ['width' => 600, 'height' => 600, 'quality' => 60,'format' => 'webp']
        ],
        'sm' => [
            '1x' => ['width' => 150, 'height' => 150, 'quality' => 60,'format' => 'webp'],
            '2x' => ['width' => 300, 'height' => 300, 'quality' => 60,'format' => 'webp']
        ],
        'xs' => [
            '1x' => ['width' => 80, 'height' => 80, 'quality' => 60,'format' => 'webp'],
            '2x' => ['width' => 160, 'height' => 160, 'quality' => 60,'format' => 'webp']
        ],
    ]
],

Disclaimer

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment.

License

MIT

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-12