You are here

function theme_spoiler in Spoiler 7

Same name and namespace in other branches
  1. 6 spoiler.module \theme_spoiler()

File

./spoiler.module, line 92
Spoiler module: This module allows users to hide potential "spoiler" content by inserting them between [spoiler][/spoiler] tags. These tags will be converted to HTML by this filter. If JavaScript is available, then a button will be presented…

Code

function theme_spoiler($variables) {
  return '<div class="spoiler"><div class="spoiler-warning">' . t('<span>Spoiler:</span> Highlight to view') . '</div><div class="spoiler-content">' . $variables['spoiler'] . '</div></div>';
}