4 adds some CSS to "beautify" the wiki page output,
5 many things can be configured inside of the code generation function;
6 the idea for this were brought from http://meyerweb.com/ and the original
7 'wella' text filter script
11 $ewiki_plugins["view_final"][] = "ewiki_view_final_fun_wella";
14 function ewiki_view_final_fun_wella(&$html, $id, $data, $action) {
17 $where = "both"; // both, left, right, none
18 $width = 60; // actually only the half of the used width
19 $start = 0.25 * M_PI; // where sin() starts
20 $length = 3 * M_PI; // how much indentation to produce
21 $dx = M_PI / 32; // calculation step width
24 for ($x=$start; $x<$length; $x+=$dx) {
26 $n = (int) ($width + $width * sin($x));
31 $o .= '<span style="float:left;clear:left;width:'.$n.'px;"> </span>'.
32 '<span style="float:right;clear:right;width:'.(2*$width-$n).'px;"> </span>';
36 $o .= '<span style="float:' . $where . ';clear:' . $where .
37 ';width:' . $n . 'px;"> </span>';
42 $o .= '<br style="display:none;">';