Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

felixtriller/wpSpoiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=== wpSpoiler ===
Contributors: flix
Tags: post, spoiler, show, hide, jquery
Requires at least: 2.5
Tested up to: 3.0
Stable tag: 2.0

A plugin designed to protect the reader against spoilers.

== Description ==

    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](http://felixtriller.de/projekte/wpspoiler/ "felixtriller.de").
Eine deutsche Version dieser Seite ist [hier](http://felixtriller.de/projekte/wpspoiler/ "felixtriller.de") zu finden.

== Installation ==

Use the build in plugin installation feature of WordPress.

== 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.

== Screenshots ==

1. Hidden
2. Visible

== 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;
}
`

About

A spoiler protection plugin for WordPress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published