Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 75 additions & 34 deletions .distignore
Original file line number Diff line number Diff line change
@@ -1,53 +1,94 @@
# A set of files you probably don't want in your WordPress.org distribution
.babelrc
.deployignore
.distignore
.editorconfig
.eslintignore
.eslintrc
.gitmodules
# A set of files you probably don't want in your WordPress.org distribution.
# Directory entries are written bare (no leading/trailing slash) because
# `wp dist-archive` matches them at any depth.

# Version control
.git
# Submodules store .git as a *file*, not a directory, so the rule above
# (which expands to a directory match) does not catch them.
*/.git
.gitignore
.github
.gitattributes
.gitmodules
.github
.gitlab-ci.yml

# CI / task runners
.travis.yml
.DS_Store
Thumbs.db
behat.yml
bitbucket-pipelines.yml
bin
.circleci/config.yml
composer.json
composer.lock
dependencies.yml
Gruntfile.js
gulpfile.js
bin

# Build config & tooling
.babelrc
.babelrc.js
.babelrc.json
babel.config.js
babel.config.json
webpack.config.js
config
package.json
package-lock.json
phpunit.xml
phpunit.xml.dist
multisite.xml
multisite.xml.dist
yarn.lock
pnpm-lock.yaml
node_modules
node_modules/**/*.*
vendor
composer.json
composer.lock
dependencies.yml

# Source — compiled into dist/, not needed at runtime
src
util
controls

# Linters & editor config
.editorconfig
.eslintignore
.eslintrc
.eslintcache
.prettierrc
.prettierrc.js
.prettierrc.json
.stylelintrc
.stylelintrc.json
.phpcs.xml
phpcs.xml
.phpcs.xml.dist
phpcs.xml.dist
.nvmrc
.vscode
.idea

# Tests
tests
phpunit.xml
phpunit.xml.dist
multisite.xml
multisite.xml.dist
behat.yml

# Sourcemaps — never ship these
*.map

# Docs & repo assets not shipped to users
README.md
webpack.config.js
compatibility-report.md
.wordpress-org

# Deploy / packaging
.distignore
.deployignore
wp-cli.local.yml
yarn.lock
tests
vendor
node_modules

# OS & stray artifacts
.DS_Store
Thumbs.db
.env
*.sql
*.tar.gz
*.zip
gulpfile.js
.git
node_modules/**/*.*
dist/*.*.map
**/*.zip
src
util
.wordpress-org
/controls/
*.log
153 changes: 153 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Toggle Content #
**Contributors:** wpdevteam, re_enter_rupok, Asif2BD, rahat89, hztyfoon, fencermonir
**Tags:** gutenberg, block, blocks, editor, toggle, toggle content, content toggle, content switch, switch block, gutenberg blocks
**Requires at least:** 6.0
**Tested up to:** 7.0
**Requires PHP:** 7.4
**Stable tag:** 1.5.0
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Toggle Content block for Gutenberg to switch content or blocks with a beautiful switcher.

## Description ##

**Content Toggle** will let you showcase your key content in an interactive way to attract visitors instantly. Using this Toggle Content plugin, you can use this feature within the Gutenberg Editor.

It’s super easy to use and support nested blocks within the content area. You can also switch blocks view with an easy and beautiful switcher.

**Completely Customizable:** You can customize Toggle Content just the way you want.

**Super Light-weight:** No extra resources used and it's highly optimized for super fast loading & instant Live editing.

**Dedicated Support:** We’ve an extraordinary support team ready to help you. Ask your questions in the support forum, we’ll get back to you immediately.


## 🚀 BACKED BY A TRUSTED TEAM ##

This Block is brought to you by [WPDeveloper](https://wpdeveloper.com), the team behind the most popular elements library [Essential Addons for Elementor](https://wordpress.org/plugins/essential-addons-for-elementor-lite/) (used by almost 1 million+ happy users from 180+ countries).

## 👨‍💻 DOCUMENTATION AND SUPPORT ##

- For documentation and tutorials go to our [documentation](https://essential-blocks.com/docs/)
- To report issue and contribution visit [Github](https://github.com/EssentialBlocks/toggle-content).
- If you have any more questions, visit our support on the [Plugin's Forum](https://wordpress.org/support/plugin/toggle-content).
- For more information about features, FAQs and documentation, check out our website at [WPDeveloper](https://wpdeveloper.com/).

## 🙌 JOIN THE COMMUNITY ##

🎦 Subscribe to our [Youtube Channel](https://www.youtube.com/wpdevelopernet/?sub_confirmation=1) to watch video tutorials on WordPress.

🤝 Join our [Facebook Community](https://www.facebook.com/groups/wpdeveloper.net/) & get connected with expert web creators like yourself.

🧡 LOVED Toggle Content? Rate us on [WordPress Repository](https://wordpress.org/support/plugin/toggle-content/reviews/#new-post)

🔥 GET FREEBIES FOR YOUR WORDPRESS SITE

Consider checking out our other WordPress solutions & boost your WordPress website:

🔝 [Essential Addons For Elementor](https://wordpress.org/plugins/essential-addons-for-elementor-lite/): Most popular Elementor addons with 70+ widgets & ready blocks

☁ [Templately](https://wordpress.org/plugins/templately/): Free templates library for Elementor & Gutenberg along with the cloud collaboration for WordPress

🔔 [NotificationX](https://wordpress.org/plugins/notificationx/): Best Social Proof & FOMO Marketing Solution to increase conversion rates

📚 [BetterDocs](https://wordpress.org/plugins/betterdocs/): Best Documentation & Knowledge Base Plugin for WordPress reduce manual support tickets & improve user experience.

⏰ [WP Scheduled Posts](https://wordpress.org/plugins/wp-scheduled-posts/): Advanced editorial calendar & complete solution for WordPress Post Scheduling, social sharing, missed scheduled alerts and more.

⭐ [ReviewX](https://wordpress.org/plugins/reviewx/): WooCommerce Product review plugin that allows users to submit product reviews with multiple criteria, photos, video and more

⚡ [Flexia](http://wordpress.org/plugins/flexia): Most lightweight, customizable & multi purpose theme for WordPress


Visit [WPDeveloper](https://wpdeveloper.com/) to learn more about how to do better in WordPress with [Help Tutorial, Tips & Tricks](https://wpdeveloper.com/blog).

## Installation ##

### Modern Way: ###
1. Go to the WordPress Block/Gutenberg Editor
2. Search For "Toggle Content".
3. Install in 1-click

### Old Way: ###
1. Upload `toggle-content` to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Follow the [Documentation](https://essential-blocks.com/docs/)


## Frequently Asked Questions ##

### Does it work with any WordPress theme? ###

Yes, it will work with any standard WordPress theme.


## Screenshots ##


## Changelog ##

### 1.5.0 - 10/08/2026 ###
* Fixed: fatal error when the bundled style-handler or block build output is missing
* Fixed: PHP 8.x compatibility issues in asset loading and font loader
* Improved: declared compatibility range is now WordPress 6.0 - 7.0 and PHP 7.4+

### 1.2.8 - 16/04/2024 ###
* Fixed: compatibility support with wordpress 6.5 version
* Improved: controls

### 1.2.7 - 02/04/2023 ###
* Improved: font loader and Controls
* Added: core group block as a inner block

### 1.2.6 - 4/12/2022 ###
* Improved: update congrols

### 1.2.5 - 9/11/2022 ###
* Fixed: compatibility issue with WordPress 6.1

### 1.2.4 - 25/08/2022 ###
* Improved: update controls

### 1.2.3 - 03/08/2022 ###
* Improved: Style handler for reusable block
* Improved: update controls

### 1.2.2 - 21/06/2022 ###
* Added: Animation, Custom Css and Responsive Options
* Improved: Converted style-handler to php for working perfectly with Reusable blocks and FSE
* Improved: Controls & structure

### 1.2.1 - 13/02/2022 ###
* Fixed: Frontend js file not enqueued

### 1.2.0 - 13-02-2022 ###
* Added: Block description in block.json file
* Added: Support for full site editing & wp5.9
* Added: Responsive options for button height, width & heading space
* Improved: Controls and structure

### 1.1.0 - 26/10/2021 ###
* Added: Dynamic asset generation for inline styles
* Added: Responsive control
* Improved: Controls and structure
* Improved: Inspector Panel Design & controls
* Improved: Responsive Device Preview improved. Now the preview options synced with the wordpress's default preview button.
* Improved: Security for asset generation

### 1.0.2 - 09-09-2020 ###
- Fix frontend js file missing issue

### 1.0.1 - 23-07-2020 ###
- Updated Block structure

* Initial release

### 1.0.0 - 12-07-2020 ###

* Initial release


## Upgrade Notice ##
[Major update] New structure and performance improvement, will break existing block.
Loading