imagewize/elayne-blocks 问题修复 & 功能扩展

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

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

imagewize/elayne-blocks

Composer 安装命令:

composer require imagewize/elayne-blocks

包简介

Custom WordPress blocks for the Elayne theme including Mega Menu, Carousel, and Slide blocks

README 文档

README

Elayne Blocks Logo

Elayne Blocks

Custom WordPress blocks that work with any theme.

Description

Elayne Blocks is a WordPress plugin that provides custom Gutenberg blocks. While originally developed as a companion plugin for the Elayne theme, these blocks work with any WordPress theme - FSE (Full Site Editing) themes, block themes, or classic themes.

This plugin was created to align with WordPress.org Theme Review requirements, which prohibit custom block registration in themes. The blocks are theme-agnostic and can be used in any WordPress site.

Included Blocks

  • Mega Menu Block (elayne/mega-menu) - Advanced navigation menu with mega menu functionality (works best with FSE/block themes)
  • Carousel Block (elayne/carousel) - Responsive image/content carousel with Slick Carousel integration, thumbnails, and arrow customization
  • Slide Block (elayne/slide) - Individual carousel slides with InnerBlocks support
  • FAQ Tabs Block (elayne/faq-tabs) - Interactive FAQ with vertical tab navigation and dynamic content display
  • Search Overlay Trigger Block (elayne/search-overlay-trigger) - Search icon that opens a full-screen search overlay

Requirements

  • WordPress 6.7 or higher
  • PHP 7.3 or higher
  • Works with any WordPress theme (FSE, block, or classic)

Installation

  1. Upload the elayne-blocks folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. The blocks will be available in the block editor

Contributing

See CONTRIBUTING.md for development workflow and build instructions.

Block Details

Mega Menu Block

Advanced navigation block with template part integration for creating dynamic mega menus.

Features:

  • WordPress Interactivity API integration
  • Template part support
  • Responsive design
  • Keyboard navigation support

Carousel Block

Create responsive image/content carousels using Slick Carousel.

Features:

  • Slick Carousel integration
  • Thumbnail navigation (above/below/left/right)
  • Center mode with configurable peek
  • Variable width slides
  • Lazy loading options
  • Adaptive height support
  • Arrow customization (SVG styles, backgrounds, sizes, custom SVG)
  • Block patterns for common use cases
  • Responsive breakpoints
  • Touch/swipe support

Slide Block

Companion block for the Carousel block.

Features:

  • InnerBlocks support for flexible content
  • Works seamlessly with Carousel parent block

FAQ Tabs Block

Interactive FAQ block with vertical tab navigation and dynamic content display.

Features:

  • Vertical tab navigation with questions
  • Dynamic content area showing answers
  • Customizable button with configurable text and URL
  • WordPress Interactivity API integration
  • Editable questions, titles, and descriptions via block inspector
  • Responsive design with flexible layout

Search Overlay Trigger Block

A clickable search icon that opens a full-screen search overlay with smooth animations.

Features:

  • Full-screen search overlay with backdrop blur
  • Smooth fade-in/scale animations
  • Auto-focus on search input when opened
  • Multiple close methods (X button, backdrop click, Escape key)
  • Body scroll lock when overlay active
  • Responsive design optimized for mobile
  • Vanilla JavaScript (no dependencies)
  • ARIA labels and keyboard accessibility

License

GPL v3 or later - https://www.gnu.org/licenses/gpl-3.0.html

Credits

  • Based on blocks originally developed for the Elayne theme
  • Icon: IconPark Block One from Blade UI Kit
  • Mega Menu block originally inspired by Human Made's HM Mega Menu Block and substantially enhanced with multiple layout modes, advanced positioning, focus management, and accessibility features
  • Carousel block originally inspired by the Carousel Block Plugin by Virgiliu Diaconu, but completely reimplemented using Slick Carousel with a different feature set, extensive customization options, and distinct functionality
  • Built with @wordpress/scripts
  • Uses Slick Carousel library for carousel functionality

Support

For issues and feature requests, please visit: https://github.com/imagewize/elayne-blocks

Author

Jasper Frumau - https://github.com/imagewize

imagewize/elayne-blocks 适用场景与选型建议

imagewize/elayne-blocks 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 204 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 23 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「plugin」 「wordpress」 「carousel」 「blocks」 「mega-menu」 「gutenberg」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 imagewize/elayne-blocks 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 imagewize/elayne-blocks 我们能提供哪些服务?
定制开发 / 二次开发

基于 imagewize/elayne-blocks 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-12-23