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

wpSpoiler

설명

wpSpoiler is a plugin for WordPress, designed to protect the reader against spoilers, for example in book or filmreviews.
The spoiler text is hidden by default and shows up if wished.

To mark a text as spoiler, enclose the passage with [spoiler] and [/spoiler].

Features

  • Very fast, less code
  • Customizeable with CSS

A german version of this page can be found here.
Eine deutsche Version dieser Seite ist hier zu finden.

Usage

To mark a text as spoiler, enclose the passage with [spoiler] and [/spoiler].
Example:
Spoiler: [spoiler]Bruce Willis is a ghost![/spoiler]

The result is shown in the screenshot section.

Customize

The language of the link text has to be changed in the pluginfile itself: wpSpoiler.php.

CSS can be used to style the spoiler box and the links. The spoiler-div is identified by the classname spoiler_div.
The link’s class is spoiler_link_show or spoiler_link_hide, depending on the current state.

An example stylesheet code snippet:

/* wpSpoiler */
a.spoiler_link_show,
a.spoiler_link_hide {
    background-repeat:      no-repeat;
    background-position:    left center;
    padding-left:           18px;
}
a.spoiler_link_show {
    background-image:       url(images/add.png);
}
a.spoiler_link_hide {
    background-image:       url(images/delete.png);
}
div.spoiler_div {
    background-color:       #ddd;
    margin-top:             -10px;
    padding:                2px;
}

스크린샷

  • Hidden
  • Visible

설치

To install the plugin follow the listed steps:

  1. Download the package
  2. Decompress the archive, customize wpSpoiler.php and upload the wpspoiler folder to /wp-content/plugins/ on your webspace
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

후기

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

기여자 & 개발자

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

기여자

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

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

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