| 开发者 | rhand |
|---|---|
| 更新时间 | 2026年11月13日 16:29 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL v3 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/aludra directory, or install the plugin through the WordPress plugins screen directly.Yes. On WordPress 7.0 and later, select the block and use the editor's Show / Hide setting to pick the devices it should be hidden on. This is the block editor's own visibility setting, so it works the same on Aludra blocks as on core blocks. The breakpoints come from your theme (480px and 782px by default).
Yes, in any block theme. In the Site Editor, select the header or footer, choose Replace and pick one of Aludra's: Header: Mega Menu, Header: Search and Social, Header: Store (with WooCommerce), Footer: Link Columns or Footer: Call to Action. They use your theme's colours and fonts, and drop extras such as the social icons or the call-to-action button on phones with the block editor's own visibility setting. For the mega menu header, pick the menu's template part in the Mega Menu block's settings.
Yes. Select the section, or a Group block around several sections, open the Styles tab and choose a scheme under Section colours: Tint swaps the page and tint colours, Invert reverses the page colours (a dark band on a light theme, a light band on a dark style variation), and Brand puts the section on your brand colour. Every block inside follows, including buttons, links and cards, because the scheme changes the theme's colours for that section only. Page removes the scheme again. It works alongside a block's own styles, such as the pricing table's Cards and Spec sheet.
Yes, on WordPress 7.1 and later. Switch the editor's preview (the Desktop menu in the top bar) to Tablet or Mobile and turn on styling for that device; spacing, colour and typography changes then apply to that device only. This is the block editor's own feature and works on every Aludra block that has those settings.
Yes, with any WordPress theme: FSE, block, or classic. Aludra names its colours the way the Imagewize themes (Aviendha, Elayne) and Ollie-based themes do. When a theme does not define one of those colours, Aludra derives it from the theme's own palette: the brand colour is the first colour in the palette that your background colour reads well on, and tints, borders and muted text are blends of your background and text colours. A theme's own colours are never overridden. To use a different brand colour, pick one of your theme's colours under Settings → Aludra → Start.
The blocks share one npm workspace. Install once from the repository root, then build:
npm ci
npm run build --workspaces --if-present
npm run build --workspace=blocks/carousel
The first build command builds every block, the second just one. For development mode with watch: npm start --workspace=blocks/[block-name]
Yes, the build/ directories are committed to the repository for Packagist distribution, so users get working blocks without needing to run build commands.
Yes. A new carousel starts as a scroll rail: a swipeable row of slides that loads no JavaScript. Switch the Engine setting in the sidebar to Slider for arrows, dots, autoplay, center mode and thumbnail navigation; that engine uses Slick Carousel and loads jQuery only on pages where such a carousel appears.
Yes, the mega menu block includes full keyboard navigation support, outside-click dismissal, and proper focus management for accessibility.
It's WordPress's official frontend reactivity system. The mega menu block uses it for modern, reactive user interactions without heavy JavaScript frameworks.
Mega Menu Block
src/block.json - Block metadata and configurationsrc/index.js - Registration entry pointsrc/edit.js - React editor componentsrc/save.jsx - Frontend output markupsrc/view.js - Frontend interactivity (optional)src/render.php - Server-side rendering (optional)src/editor.scss - Editor-only stylessrc/style.scss - Frontend + editor stylesaludra/ folder, so uploading it on WordPress 7.1.4 or later installs or replaces aludra instead of creating a randomly named folder. The WordPress.org package was not affected.patterns/carousel-*.php like the other patterns; slugs and titles are unchangedaludra/cta-columns) — the "Light Gray" background option had no matching CSS rule, so selecting it had no visible effect on the frontend.aludra/photo-grid) — heading, follow line, and a tight square photo grid for an Instagram-style feed section. Fully static and theme-neutral: authors drop in their own photos via core/image, no API key or live connection to maintain.aludra/instagram-embed) — a live feed of a public Instagram profile via Instagram's own public embed iframe (instagram.com/username/embed). No developer app or API key needed, unlike the official oEmbed route Meta locked down in October 2020. The rendered markup ships only a "Load Instagram feed" button and a profile-link fallback; the iframe itself is only injected client-side after a visitor clicks it, so nothing loads from instagram.com — and no consent question is raised — until they opt in. This is an unofficial, undocumented endpoint: it could change or stop working without notice, so keep a plain profile link as a fallback.aludra_enabled option without merging in the defaults, so a block added after you last saved that screen showed up unchecked — and because saving writes "off" for every box not submitted, toggling one unrelated block then disabled those blocks for real, removing them from the inserter. Block registration always read a missing entry as enabled, so only the admin screen was affected; if this caught you, just re-enable them there.@imwz/wp-pattern-sentinel dev dependency to 1.1.1, which pulls in a js-yaml fix for GHSA-5p4m-2wfm-xmqj, a quadratic CPU consumption (DoS) bug in !!omap YAML resolution. js-yaml is only used by sentinel's --trellis auto-discovery of wordpress_sites.yml; nothing in this plugin's own runtime is affected.
Older entries are trimmed to keep this section within the 5000-character
limit WordPress.org enforces. The complete history is in CHANGELOG.md:
https://github.com/imagewize/aludra/blob/main/CHANGELOG.md