By default the content is hidden and user will have to click on the "Show Content" link to toggle it. Similar to what Engadget is doing for their press releases. Example usage:
[showhide type="pressrelease"]Press Release goes in here.[/showhide]
Build Status
开发
https://github.com/lesterchan/wp-showhide
翻译
http://dev.wp-plugins.org/browser/wp-showhide/i18n/
鸣谢
Donations
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
Version 1.04
- NEW: Added aria-hidden and aria-expanded to elements
Version 1.03
- NEW: Added
.sh-link
and .sh-content
as a standard class name on top of the type specific class name.
- NEW: Added do_shortcode() to allow shortcode to be parsed within ShowHide
Version 1.02
- FIXED: Some theme uses
.hide
as display: none
and hence I have changed .show
to .sh-show
and .hide
to .sh-hide
to advoid conflicts.
Version 1.01
- NEW: Added additional
show
or hide
class to the link and content depending on the visiblity of the content to allow more precise CSS styling.
Version 1.00 (01-05-2011)