Linux 软件免费装

Accordion Blocks

开发者 philbuchanan
更新时间 2022年2月8日 03:33
PHP版本: 7.3 及以上
WordPress版本: 5.9
版权: GPLv2 or later
版权网址: 版权信息

标签

responsive block gutenberg accordion accordions

下载

1.4.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.2.0 1.2.1 1.2.2 1.3.1 1.3.4 1.0.0 1.5.0 1.3.0 1.3.2 1.3.3 1.0.6 1.4.1 1.3.5

详情介绍:

Accordion Blocks is a simple plugin that adds a Gutenberg block for adding accordion drop-downs to your pages. The accordions should blend seamlessly with your theme. However, you may want to add custom styles to your theme. Features Optional Features Output The plugin will ultimately output following HTML (simplified for this example): Title with H2 tag Content Custom CSS You can use the following CSS classes to customize the look of the accordion. .c-accordion__item {} / The accordion item container / .c-accordion__item.is-open {} / is-open is added to open accordion items / .c-accordion__item.is-read {} / is-read is added to accordion items that have been opened at least once / .c-accordion__title {} / An accordion item title / .c-accordion__title--button {} / An accordion item title that is using a <button> tag / .c-accordion__title:hover {} / To modify the style when hovering over an accordion item title / .c-accordion__title:focus {} / To modify the style when an accordion item title currently has broswer focus / .c-accordion__content {} / An accordion item content container /

安装:

  1. Upload the 'accordion-blocks' folder to the '/wp-content/plugins/' directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Add the accordions to your content.

屏幕截图:

  • Accordion block settings sidebar
  • Accordion block in the editor

升级注意事项:

1.5.0 Fixed compatibility issues with WordPress 5.9. Plugin now requires WordPress 5.9 (the changes are fundamentally incompatible with previous versions of WordPress). 1.4.1 Fixed accordions not generating UUIDs in the widgets editor, therefore breaking when returning to the widgets editor. 1.4.0 Fixed a bunch of compatibility issues with WordPress 5.8 (and the widgets block editor). 1.3.5 Fixed an issue where the global loading of scripts and styles checkbox was checked when the setting was actually off. 1.3.4 Made turning off global loading of scripts and styles an explicit setting. You can turn off this off in Settings > Accordion Blocks. 1.3.3 Rolled back deprecated registerStore with register change since it only applies to WordPress 5.7+. 1.3.2 Only load assets on pages that use the block. Added visual indicator to show bottom of block. 1.3.1 Support for WordPress 5.7 and a new method for generating uuids that should be more reliable. 1.3.0 Added h5 and h6 options for the title tag and fixed a bug where Authors may not be able to create functioning accordions. 1.2.2 Fixed an issue where all accordion item titles would open the first accordion only. 1.2.1 Fixed PHP error that slipped through in 1.2.0. Sorry about that. 1.2.0 Adds support for WordPress 5.6. Also adds support for nested and grouped accordion items. 1.1.6 Accordions now use sample content (instead of real content) to preview custom blocks styles in the editor. This should resolved slow performance in the editor if an accordion using custom block styles and has a lot of content. 1.1.5 Fixed PHP notice for API. 1.1.4 Added support for WordPress 5.5 and made no-js styles specific to the accordion item block. 1.1.3 Fixed an issue where typing backspace on a button title type would delete the entire accordion item instead of backspacing a character. 1.1.2 Restored bold and italic formatting of accordion titles and fixed translation strings. 1.1.1 Fixed a couple small bugs accidentally introduced in version 1.1.0 of the plugin. 1.1.0 Medium sized update to the plugin with a few fixes and some feature additions. NOTE: If you have dequeued the default plugin stylesheet you may see all of your accordions animate from open to closed for a split second when the page loads. You can resolve this by adding [data-initially-open="false"] .c-accordion__content { display: none } to your theme stylesheet. 1.0.6 Fixed typo in plugin settings. 1.0.5 Added minified versions of JS and CSS files. 1.0.4 Made plugin translatable. 1.0.3 Added the ability to convert a paragraph or heading into an accordion. 1.0.2 Added the ability for the block in the editor to accept custom css classes (allows for custom registration of Block Styles). 1.0.1 Updated readme. 1.0.0 ALL NEW plugin to support the new WordPress Gutenberg editor.

常见问题:

Can I change all my existing accordion items to the defaults?

No. It is not possible to change all your accordion item's settings (within the same page or across multiple pages) to the defaults. Although I would like to offer this feature, based on my research it would require a significant amount of development time that I am unable to devote to a free plugin. If you are a developer and would be interested in helping implement a feature like that, please let me know.

Why isn't the JavaScript file loading on my site?

This is most likely caused by a poorly coded theme. This plugin makes use of the wp_footer() function to load the JavaScript file and it's dependancy (jQuery). Check your theme to ensure that the wp_footer() function is being called right before the closing </body> tag in your theme's footer.php file.

Issues/Suggestions

For bug reports or feature requests or if you'd like to contribute to the plugin you can check everything out on Github.

更新日志:

1.5.0 1.4.1 1.4.0 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.2 1.2.1 1.2.0 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0