Skip to content

Cycle Blocks WordPress plugin is a collection of block for block themes (Full Site Editing).

License

Notifications You must be signed in to change notification settings

thingsym/cycle-blocks

Repository files navigation

Cycle Blocks

Cycle Blocks plugin is a collection of block for block themes (Full Site Editing). Of course, it is designed so that it can also be used with classic themes.

You can easily design your site and create content using blocks.

Blocks

  • Page List
  • Profile
  • Sitemap
  • Fontawesome Icons (Required Font Awesome icons resource)

Installation

  1. Download and unzip files. Or install Cycle Blocks plugin using the WordPress plugin installer. In that case, skip 2.
  2. Upload "cycle-blocks" to the "/wp-content/plugins/" directory.
  3. Activate the plugin through the 'Plugins' menu in WordPress.
  4. Have fun!

Compatibility

Required plugins

Cycle Blocks will need other recommended plugins to use icons library as Web Font.

Font Awesome

WordPress Plugin Directory

Cycle Blocks is hosted on the WordPress Plugin Directory.

https://wordpress.org/plugins/cycle-blocks/

Build development environment

cd /path/to/cycle-blocks

# Install package
npm intall

# Show tasks list
npm run

# Build plugin
npm run build

PHP unit testing with PHPUnit

cd /path/to/cycle-blocks

# Install package
composer intall

# Show tasks list
composer run --list

# Run test
composer run phpunit

Javascript unit testing with Jest

cd /path/to/cycle-blocks

# Install npm package
npm intall

# Run test
npm run test:jest

Support

If you have any trouble, you can use the forums or report bugs.

Contribution

Small patches and bug reports can be submitted a issue tracker in Github.

Translating a plugin takes a lot of time, effort, and patience. I really appreciate the hard work from these contributors.

If you have created or updated your own language pack, you can send gettext PO and MO files to author. I can bundle it into plugin.

You can also contribute by answering issues on the forums.

Patches and Bug Fixes

Forking on Github is another good way. You can send a pull request.

  1. Fork Cycle Blocks from GitHub repository
  2. Create a feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Create new Pull Request

Contribute guidlines

If you would like to contribute, here are some notes and guidlines.

  • All development happens on the main branch, so it is always the most up-to-date
  • If you are going to be submitting a pull request, please submit your pull request to the main branch
  • See about forking and pull requests

Test Matrix

For operation compatibility between PHP version and WordPress version, see below GitHub Actions.

Changelog

[1.1.4] - 2024.08.27

  • tested up to 6.6.1
  • improve code with phpcs
  • update github workflows
  • update icon-settings
  • update composer dependencies
  • update npm dependencies
  • add Disabled
  • add aria-label
  • fix import
  • fix wp_register_script dependencies
  • remove test case
  • fix Deprecated: Creation of dynamic property for php8.2
  • bump up version cpy-cli and fix npm scripts

[1.1.3] - 2023.11.21

  • tested up to 6.4.1
  • fix npm scripts
  • update npm dependencies for update-browserslist-db
  • fix phpunit.xml config
  • phpunit-polyfills bump up
  • remove dist/js/blocks

[1.1.2] - 2023.04.21

  • tested up to 6.2.0
  • fix jest config
  • update npm dependencies
  • add npm scripts
  • fix Undefined variable $post

[1.1.1] - 2022.12.08

  • fix test case
  • improve code with phpcs
  • fix block wrapper
  • change variable name
  • add classname to block wrapper
  • fix __experimentalGetSettings deprecated
  • change the image size according to layout or the number of columns
  • remove duplicate editor css
  • using bem and remove wp-block prefix
  • update github actions, Node.js 12 actions are deprecated
  • fix undefined variable php notice
  • fix composer.json
  • fix workflows
  • fix compatible with setUp(): void for ci

[1.1.0] - 2022.10.13

  • fix phpcs.ruleset.xml
  • update composer dependency
  • fix phpcs composer scripts
  • add PHP CodeSniffer to ci
  • improve code with phpcs
  • fix conditional expression
  • fix scss
  • add who prop to UserControl
  • add support section and enhance contribution section to README
  • fix license

[1.0.0] - 2022.09.30

  • initial release

License

Licensed under GPLv2 or later.