bmd/responsive-grid-extension 问题修复 & 功能扩展

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

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

bmd/responsive-grid-extension

最新稳定版本:v0.1.6

Composer 安装命令:

composer require bmd/responsive-grid-extension

包简介

Extension for core/grid wordpress block to use responsive grid attributes.

README 文档

README

Responsive Grid Extension

WordPress PHP Latest Release License

Lint CSS Lint JS Lint PHP

Want to give it a test drive? Try it in the WP Playground: Try it in the WordPress Playground

Add responsive column and row controls to the WordPress Group block (core/group) when it uses Grid layout.

Features

  • Adds responsive grid controls to core/group in the block inspector.
  • Lets you set grid template columns for desktop, tablet, and mobile.
  • Lets you set grid template rows for desktop, tablet, and mobile.
  • Keeps the native Group block workflow instead of introducing a custom block.
  • Outputs responsive classes and CSS custom properties on the rendered block.
  • Loads frontend styles only when a rendered Grid Group block needs them.
  • Ships with GitHub-based plugin updates in the WordPress admin update UI.

Requirements

  • WordPress 6.7+
  • PHP 8.2+

Installation

Install as a plugin

  1. Download the latest release zip from GitHub releases.
  2. In WordPress admin, go to Plugins -> Add New Plugin -> Upload Plugin.
  3. Upload the zip and activate Responsive Grid Extension.

Install via Composer (library usage)

If you are embedding this into your own project:

composer require bmd/responsive-grid-extension

Then bootstrap:

use Bmd\ResponsiveGridExtension\Plugin;

$dependency_url  = plugin_dir_url( __FILE__ ) . 'vendor/bmd/responsive-grid-extension/';
$dependency_path = plugin_dir_path( __FILE__ ) . 'vendor/bmd/responsive-grid-extension/';

$plugin = new Plugin(
    $dependency_url,
    $dependency_path
);

$plugin->mount();

The Plugin constructor expects the URL and filesystem path to the Responsive Grid Extension dependency root, not the file where you call it. For example, pass /path/to/vendor/bmd/responsive-grid-extension/ and the matching public URL for that directory.

Usage

  1. Add a Group block.
  2. Set the Group block layout type to Grid.
  3. Open the block sidebar.
  4. Set custom grid template columns or rows for each device size.
  5. Save and view the post.

Example values:

  • Columns: repeat(3, 1fr)
  • Columns: 2fr 1fr
  • Rows: auto auto
  • Rows: minmax(120px, auto) 1fr

Updates

This plugin is distributed through GitHub releases (not WordPress.org). The plugin includes a scoped GitHub updater so WordPress can detect and apply new versions from this repository.

Changelog

0.1.5

  • Refined the PHP plugin architecture around a dedicated bootstrapper, plugin service, and utility helper.
  • Updated Composer autoloading for the new Bmd\ResponsiveGridExtension namespace structure.
  • Renamed the standalone plugin entrypoint to responsive-grid-extension.php.
  • Added separate GitHub Actions lint workflows for CSS, JS, and PHP.
  • Optimized frontend asset loading so responsive grid styles enqueue only when a rendered Grid Group block is present.
  • Rebuilt scoped updater dependencies.

0.1.4

  • Added scoped GitHub updater bootstrap using bmd/github-wp-updater from vendor/scoped.
  • Added Copilot instruction baselines under .github/ for scoped updater install and production release packaging workflows.

0.1.3

  • Introduced a basic plugin interface defining the mount(), setUrl(), and setPath() contract.
  • Constructor accepts optional URL and path parameters for flexible asset resolution when used as a Composer dependency.
  • Plugin bootstrap is wrapped in a named function.

0.1.2

  • Added mount() method to register all WordPress hooks in one call.
  • Simplified plugin bootstrap.

0.1.1

  • Moved the main class into inc/ for Composer PSR-4 autoloading.
  • Fixed asset path resolution after directory restructure.

0.1.0

  • Initial release.
  • Added responsive Group block grid extensions for columns and rows.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-04-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固