Lines Matching defs:class
9 class helper_plugin_wrap extends DokuWiki_Plugin {
41 'class' => null,
54 // noPrefix: comma separated class names that should be excluded from
59 // restrictedClasses : comma separated class names that should be checked
87 //restrict token (class names) characters to prevent any malicious data
94 // prefix adjustment of class name
96 $attr['class'] = (isset($attr['class']) ? $attr['class'].' ' : '').$prefix.$token;
99 $attr['class'] = (isset($attr['class']) ? $attr['class'].' ' : '').'wrap__dark';
102 $attr['class'] = (isset($attr['class']) ? $attr['class'].' ' : '').'wrap__emuhead';
132 if($attr['class']) $out .= ' class="'.hsc($attr['class']).' '.$addClass.'"';
133 // if used in other plugins, they might want to add their own class(es)
134 elseif($addClass) $out .= ' class="'.$addClass.'"';
159 $classes = explode (' ', $attr['class']);
172 preg_match ('/wrap_col\d/', $attr ['class'], $matches);
180 if ( strpos ($attr ['class'], $box) !== false ) {
192 if ( strpos ($attr ['class'], $paragraph) !== false ) {
203 $attr ['class'] = 'dokuwiki '.$attr ['class'];
205 // Call corresponding functions for current wrap class
208 $this->renderODTOpenSpan ($renderer, $attr ['class'], $style, $language, $attr_string);
211 $this->renderODTOpenParagraph ($renderer, $attr ['class'], $style, $attr ['dir'], $language, $is_indent, $is_outdent, true, $attr_string);
220 $this->renderODTOpenBox ($renderer, $attr ['class'], $style, $fullattr);
226 $this->renderODTOpenColumns ($renderer, $attr ['class'], $style);
229 $this->renderODTOpenParagraph ($renderer, $attr ['class'], $style, $attr ['dir'], $language, $is_indent, $is_outdent, false, $attr_string);
236 $this->renderODTOpenColumn ($renderer, $attr ['class'], $style, $attr_string);
239 $this->renderODTOpenGroup ($renderer, $attr ['class'], $style);
241 } else if (strpos ($attr ['class'], 'wrap_clear') !== false ) {
285 function renderODTOpenBox ($renderer, $class, $style, $fullattr) {
294 $renderer->getODTProperties ($properties, 'div', $class, $style);
304 if ( strpos ($class, 'wrap_center') === false ) {
313 if ( stripos ($class, 'wrap_noprint') !== false ) {
316 if ( stripos ($class, 'wrap_onlyprint') !== false ) {
331 function renderODTOpenColumns ($renderer, $class, $style) {
340 $renderer->getODTProperties ($properties, 'div', $class, $style);
353 function renderODTOpenParagraph ($renderer, $class, $style, $dir, $language, $is_indent, $is_outdent, $indent_first, $attr=null) {
362 $renderer->getODTProperties ($properties, 'p', $class, $style);
435 $parent_properties ['style-class'] = 'Plugin Wrap Paragraphs';
441 $name .= $this->getODTCommonStyleName($class);
445 $properties ['style-class'] = null;
463 function renderODTOpenColumn ($renderer, $class, $style, $attr) {
471 $renderer->getODTProperties ($properties, null, $class, $style);
538 function renderODTOpenGroup ($renderer, $class, $style) {
553 function renderODTOpenSpan ($renderer, $class, $style, $language, $attr) {
562 $renderer->getODTProperties ($properties, 'span', $class, $style);
590 $parent_properties ['style-class'] = 'Plugin Wrap Spans';
596 $name .= $this->getODTCommonStyleName($class);
600 $properties ['style-class'] = null;
636 $class = $attr ['class'];
651 if (strpos ($class, 'wrap_left') !== false ) {
653 } else if (strpos ($class, 'wrap_center') !== false ) {
655 } else if (strpos ($class, 'wrap_right') !== false) {
662 if ( stripos ($class, 'wrap_noprint') !== false ) {
665 if ( stripos ($class, 'wrap_onlyprint') !== false ) {
801 foreach ($classes as $class) {
802 if (array_key_exists($class, $map)) {
803 $name .= $map [$class];