Linux 软件免费装
Banner图

Content Reveal

开发者 dartiss
更新时间 2017年11月19日 20:58
PHP版本: 5.3 及以上
WordPress版本: 4.9
版权: GPLv2 or later
版权网址: 版权信息

标签

menu toggle accordion collapse hide slide show reveal visibility concertina

下载

1.0 1.1 1.2 1.2.1 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1 2.1.1 2.2 2.2.1 2.3 2.3.2 2.3.3

详情介绍:

Content Reveal allows you to easily hide and reveal WordPress content, whether it's in the sidebar or in a post or page. After searching for a method to hide content on our own site's sidebar we found that most of the solutions involved using widgets (which often provide less functionality compared to their direct function call equivalents). As well, they often make use of Scriptaculous, jQuery or mooTools to provide effects, but often add complexity and bloat. We therefore wrote Content Reveal - it doesn't use any fancy effects, just some simple JavaScript. And it doesn't use widgets. A click on a heading causes content below to hide or reveal itself. You can add a button image too to indicate what state it is in (collapsed or revealed). Key features include... Technical specification... Please visit the Github page for the latest code development, planned enhancements and known issues.

安装:

Content Reveal can be found and installed via the Plugin menu within WordPress administration (Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and installed manually...
  1. Upload the entire simple-content-reveal folder to your wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress administration.
Voila! It's ready to go.

屏幕截图:

  • This demonstrates the plugin in use on my own site's sidebar - the second of the three sections has been revealed, whereas the other two are still hidden. Note the use of the icon to show its status.

升级注意事项:

2.3.2
  • Important fix to 2.3.1. Sorry.

常见问题:

I can't get a shortcode within the Content Reveal shortcode to work

Sorry, shortcodes within the hide/show text cannot be processed.

The output doesn't validate correctly

This will probably be if you are generating your output using the shortcode. Usually, JavaScript generating HTML will cause errors, so you can use CDATA instead to suppress this. However, WordPress (for fuzzy reasons) modifies the CDATA command so that it no longer works. However, this is under investigation and, it is hoped, will be fixed in WordPress in the future. When this happens I'll be able to update this plugin to use CDATA and to play nicely with validators.

The links to click on are appearing but clicking on them doesn't do anything

Check in your Writing settings in Administration that you don't have "WordPress should correct invalidly nested XHTML automatically" ticked, otherwise WordPress may incorrectly attempt to "fix" the output of the plugin.

How can I get all the content to display so that it can be printed?

Using the URL parameter acr_state you can re-display your page with all content hidden, revealed or with the plugin switched off. See Other Notes for further details.

How do I add quotes to the heading?

Because quotes (single or double) are used to specify the shortcode parameter - in this case the heading - you can't then use them use them for the heading text. Well, you can - whichever one you use for your shortcode parameter, you can use the other within your heading. So, this is fine... [reveal heading="<h2>%image% Some 'Blah' Content Below</h2>" id="id1"]Blah, blah, blah content here[reveal] As is this... [reveal heading='<h2>%image% Some "Blah" Content Below</h2>' id="id1"]Blah, blah, blah content here[reveal] Alternatively, particularly if you want to use both quote types within your heading, you can use ASCII instead. For example... [reveal heading="<h2>%image% \x27Single quotes\x27 \x22double quotes\x22</h2>" id="id1"]Blah, blah, blah content here[reveal] See a full list of available ASCII codes.

更新日志:

Learn more about my version numbering methodology 2.3.3 2.3.2 2.3.1 2.3 2.2.1 2.2 2.1.1 2.1 2.0.4 2.0.3 2.0.2 2.0.1 2.0 1.2.1 1.2 1.1 1.0