Allow to re-convert " to " again with a config option,
thanks to Lars
This commit is contained in:
@@ -26,7 +26,7 @@ class serendipity_event_textile extends serendipity_event
|
||||
$propbag->add('description', PLUGIN_EVENT_TEXTILE_DESC);
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('author', 'Serendipity Team', 'Lars Strojny');
|
||||
$propbag->add('version', '1.5');
|
||||
$propbag->add('version', '1.6');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '0.8',
|
||||
'smarty' => '2.6.7',
|
||||
@@ -68,6 +68,7 @@ class serendipity_event_textile extends serendipity_event
|
||||
$conf_array[] = $element['name'];
|
||||
}
|
||||
$conf_array[] = 'textile_version';
|
||||
$conf_array[] = 'unescape';
|
||||
$propbag->add('configuration', $conf_array);
|
||||
}
|
||||
|
||||
@@ -97,7 +98,14 @@ class serendipity_event_textile extends serendipity_event
|
||||
));
|
||||
$propbag->add('default', 2);
|
||||
return true;
|
||||
} elseif ($name === 'unescape') {
|
||||
$propbag->add('type', 'boolean');
|
||||
$propbag->add('name', PLUGIN_EVENT_TEXTILE_UNESCAPE);
|
||||
$propbag->add('description', PLUGIN_EVENT_TEXTILE_UNESCAPE_DESC);
|
||||
$propbag->add('default', 'false');
|
||||
return true;
|
||||
}
|
||||
|
||||
$propbag->add('type', 'boolean');
|
||||
$propbag->add('name', constant($name));
|
||||
$propbag->add('description', sprintf(APPLY_MARKUP_TO, constant($name)));
|
||||
@@ -144,6 +152,9 @@ class serendipity_event_textile extends serendipity_event
|
||||
|
||||
/* textile it */
|
||||
|
||||
if (serendipity_db_bool($this->get_config('unescape'))) {
|
||||
$eventData[$element] = str_replace('"', '"', $eventData[$element]);
|
||||
}
|
||||
$eventData[$element] = $this->textile($eventData[$element]);
|
||||
|
||||
/* each block will now be "<code>BLOCK::2</code>"
|
||||
|
Reference in New Issue
Block a user