pluginOutput: make use of new styles
This commit is contained in:
parent
5bf107f853
commit
f2bc3368e7
|
@ -40,6 +40,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
|||
'<table style="font-size: 0.75em"',
|
||||
$this->getPurifier()->purify($output)
|
||||
);
|
||||
$isHtml = true;
|
||||
} else {
|
||||
// Plaintext
|
||||
$output = preg_replace(
|
||||
|
@ -47,11 +48,17 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
|||
self::$txtReplacements,
|
||||
$this->view->escape($output)
|
||||
);
|
||||
}
|
||||
if (! $raw) {
|
||||
$output = '<blockquote>' . $output . '</blockquote>';
|
||||
$isHtml = false;
|
||||
}
|
||||
$output = $this->fixLinks($output);
|
||||
|
||||
if (! $raw) {
|
||||
if ($isHtml) {
|
||||
$output = '<div class="pluginoutput">' . $output . '</div>';
|
||||
} else {
|
||||
$output = '<div class="pluginoutput preformatted">' . $output . '</div>';
|
||||
}
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
<div class="pluginoutput">
|
||||
<h2><?= $this->translate('Plugin Output') ?></h2>
|
||||
<?= $this->pluginOutput($object->output) ?>
|
||||
<?= $this->pluginOutput($object->long_output) ?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue