承接 humanmade/hm-flourish-block 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

humanmade/hm-flourish-block

最新稳定版本:1.5.0

Composer 安装命令:

composer require humanmade/hm-flourish-block

包简介

Embed Flourish visualisations and stories.

README 文档

README

A WordPress block plugin for embedding Flourish data visualizations.

Setup

  1. Install dependencies:
npm install
  1. Build the block:
npm run build
  1. For development with automatic rebuilds:
npm start

Project Structure

  • src/index.js - Main entry point, registers the block with the editor
  • src/style.scss - Frontend styles for the block
  • src/editor.scss - Editor-only styles
  • inc/blocks.php - PHP block registration and render callback
  • inc/namespace.php - Plugin namespace and hook setup
  • build/ - Compiled assets (generated by npm build)

How It Works

  • The block is registered as a dynamic block, meaning it's rendered server-side by PHP
  • The editor shows a placeholder since save() => null
  • The Flourish embed script is registered and enqueued only once via wp_register_script() and wp_enqueue_script() to avoid duplicates
  • The render callback outputs the Flourish embed HTML with the specified visualization ID

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固