Linux 软件免费装
Banner图

Content Visibility for Divi Builder

开发者 jhorowitz
更新时间 2023年3月9日 06:39
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 6.1.1
版权: GPLv2 or later
版权网址: 版权信息

标签

tags page builder hide divi divi theme divi builder conditional conditional-tags show elegantthemes elegant themes pagebuilder show hide conditional tags

下载

2.0.0 2.01 2.02 3.00 3.01 3.02 3.03 3.04 3.05 3.06 3.07 3.08 3.09 3.12 3.13 3.14 3.15 3.21 1.0.4 3.11 1.0.2 3.18 3.17 3.19 3.20 1.0.1 3.10 3.16 1.0.3 3.22

详情介绍:

Content Visibility for Divi Builder allows Sections and Modules to be displayed/hidden based on the outcome of a PHP boolean expression. This plugin is for both the standalone Divi theme (or child themes thereof) or the Divi Builder plugin, versions 2.6 or higher!

安装:

  1. Upload the plugin files to the /wp-content/plugins/content-visibility-for-divi-builder directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. You're Done! You will notice that Section and Module settings dialogs will now have "Content Visibility" as a configurable setting.

屏幕截图:

  • The Content Visibility option in the Divi 3.x Visual Builder interface.
  • The Content Visibility option in the 3.x and older Divi Builder backend interface.

升级注意事项:

3.19
  • This release fixes a major issue with DiviExtension-loaded modules in Divi 4.10.x, wherein the module is always shown regardless of any visibility expression settings. Please upgrade this plugin before upgrading Divi to 4.10.x!
3.17
  • This release fixes a major issue with lazy-loaded modules in Divi 4.10.x, wherein the module is always shown regardless of any visibility expression settings. Please upgrade this plugin before upgrading Divi to 4.10.x!
3.00
  • This release finally adds support for Visual Builder in Divi 3.x!
2.02
  • The workaround for using ']' characters in Content Visibility expressions is no longer required! A javascript fix for builder.js is applied automatically by the plugin, which will automatically escape ']' characters behind the scenes.
2.0.0
  • Now even more developer friendly. Add your own custom attributes and functionality to any Divi Builder module!
1.0.4
  • Please rate and review this plugin if you find it helpful (or even if you don't!). Links and a one-time notice have been added to help you do so easily from the admin area.
1.0.3
  • load_plugin_textdomain() might be helpful for that i18n support!
1.0.2
  • Now with i18n support!
1.0.1
  • Prior versions did not handle double quotes in Content Visibility expressions correctly. Upgrade if you'd like your Content Visibility expressions to contain double quotes!
1.0.0
  • Initial Release

常见问题:

Will this work for any module, even custom ones?

Yes! It detects and modifies Modules and Sections by class inheritance. As long as Elegant Themes continues to have a single root class for everything, this plugin should detect all of them, including third party ones!

What if I deactivate this plugin? Will all of my content reappear automatically?

Yes. If you decide to deactivate or uninstall this plugin, the "Content Visibility" configuration option will disappear from the Divi Builder, and will not have any effect on the frontend output. Of course, the "Content Visibility" settings that were defined for a particular Section or Module will continue to persist in the database, until that post/page is updated. This can be a good thing, however, as you may want to reinstall/reactivate in the future and not have to re-enter all of your "Content Visibility" expressions!

How do I use it!?

Once the plugin is installed and activated, a "Content Visibility" option will appear in each Section or Module's settings on either the Advanced tab under Visibility (for Divi 4.x) or the General Settings / Content tab (for Divi 3.x or lower.) You may enter any PHP boolean expression you would like, (e.g. is_user_logged_in()), and the Section or Module will only display if the expression evaluates to true. NOTE: Complex expressions are usually best entered as a custom function call defined in a child theme or plugin! So, for example, you could enter my_custom_function() in the Content Visibility option, and then define that function (returning true or false) in your child theme's functions.php. If there are several common boolean expressions you use, this also has the added benefit of allowing you to change the behavior of your content by simply modifying the function body once instead of re-entering Content Visibility options all over the place.

更新日志:

3.22 3.21 3.20 3.19 3.18 3.17 3.16 3.15 3.14 3.13 3.12 3.11 3.10 3.09 3.08 3.07 3.06 3.05 3.04 3.03 3.02 3.01 3.00 2.02 2.0.0 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0