equal
deleted
inserted
replaced
1589 * @return string |
1589 * @return string |
1590 */ |
1590 */ |
1591 |
1591 |
1592 function genPreview($text) |
1592 function genPreview($text) |
1593 { |
1593 { |
1594 return '<div class="info-box"><b>Reminder:</b> This is only a preview - your changes to this page have not yet been saved.</div><div style="background-color: #F8F8F8; padding: 10px; border: 1px dashed #406080; max-height: 250px; overflow: auto; margin: 1em 0 1em 1em;">'.RenderMan::render(RenderMan::preprocess_text($text, false, false)).'</div>'; |
1594 $ret = '<div class="info-box"><b>Reminder:</b> This is only a preview - your changes to this page have not yet been saved.</div><div style="background-color: #F8F8F8; padding: 10px; border: 1px dashed #406080; max-height: 250px; overflow: auto; margin: 1em 0 1em 1em;">'; |
|
1595 $text = RenderMan::render(RenderMan::preprocess_text($text, false, false)); |
|
1596 ob_start(); |
|
1597 eval('?>' . $text); |
|
1598 $text = ob_get_contents(); |
|
1599 ob_end_clean(); |
|
1600 $ret .= $text; |
|
1601 $ret .= '</div>'; |
|
1602 return $ret; |
1595 } |
1603 } |
1596 |
1604 |
1597 /** |
1605 /** |
1598 * Makes a scrollable box |
1606 * Makes a scrollable box |
1599 * @param string $text the inner HTML |
1607 * @param string $text the inner HTML |