이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Text Toggle

설명

A very simple shortcode series to create a text area which can be hidden or displayed based on a click on the title. Text areas by default are hidden.

This shortcode series uses jQuery functionality to a) determine which text areas are to be toggled and b) toggle them.

Use

Basic use is to surround a block of text with the “[tt]” shortcode and specify a title parameter within the shortcode. The title will be shown on the page, preceeded by an indicator whether the associated text area is hidden (►) or shown (▼). Clicking the title link will toggle the display of the dependant text area, as well as toggle the indicator.

Groups of text areas can be shown or hidden at once through the “[tt_part]” and “[tt_all]” shortcodes.

The “[tt_part]” shortcode uses a required parameter named “class” that links it to all “[tt]” shortcodes and their associated text areas with the same class parameter. Clicking the “[tt_part]” title link will toggle all associated text areas and any “[tt_part]” shortcode links with the same class according to the status of the parent shortcode. Text areas of this section that are already displayed when the parent link is clicked will remain displayed, and vice versa with hidden text areas.

The “[tt_all]” shortcode will toggle all “[tt]” shortcode text areas, any intermediate “[tt_part]” links and any mirrored “[tt_all]” links, according to the status of the particular title link. Text areas that are already displayed when the overall link is clicked to display all the text areas will remain displayed, and vice versa with hidden text areas.

Both the “[tt_part]” and “[tt_all]” shortcodes may be placed anywhere on the web page and can be used multiple times on the same web page.

Parameters

The “[tt]” shortcode has one required parameter and two optional parameters, plus the required content of the shortcode.

  • The “class” parameter is optional: this links the particular text area with the “[tt_part]” shortcode, which can display or hide groups of text areas. This parameter must consist of only letters and numbers.
  • The “style” parameter is optional: this allows the author to apply CSS style components to the given shortcode content, which will only be visible when the content is made visible. Style components are limited to anything that applies to the area surrounding and including the area to be displayed and are limited to the following: background-color, border, border-color, border-radius, border-size, border-style, and color. Any other style components or any other text will be ignored.
  • The “title” parameter is required: this what is displayed as the title of the text area and is used as the control link.

The “[tt_part]” short code has two required parameters; it does not use any content.

  • The “class” parameter is required: this is the link to all associated “[tt]” text areas. This parameter must consist of only letters and numbers.
  • The “title” parameter is required: this what is displayed as the title of the control link, preceded by “Show / Hide All”.

The “[tt_all]” short code has no parameters and it does not use any content.

스크린샷

  • Default display, all text areas are hidden.
  • One text area ("Shipping Clerk") selected / shown
  • One text section ("Miscellaneous") selected / shown
  • All text area selected / shown

설치

  1. Unzip ‘avp-texttoggle.zip’ inside the ‘/wp-content/plugins/’ directory or install the plugin via the built-in WordPress plugin installer.
  2. Activate the plugin through the WordPress ‘Plugins’ admin page.

FAQ

What can be included in the text area?

In addition to straight text, the text area can include images.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Text Toggle”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Text Toggle”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.2

  • Add optional styling parameters to the [tt] shortcode.

1.1

  • Re-cast code as class
  • Re-arrange script and stylesheet registration and queuing functions to reduce function calls
  • Prep for release to WordPress repository

1.0

  • Initial (internal) Release