Content-Type: multipart/mixed; boundary=Apple-Mail-45--365610717 --Apple-Mail-45--365610717 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
function = sfMultipleInstanceTemplateBeforeHTML(&$html, = $template){= if($template->template_name =3D=3D=3D = 'Reference'){$html =3D = '= <div = class=3D"multipleTemplateWrapper">= <table class=3D"table">= <thead><th = class=3D"ref-type">Type</th>= <th class=3D"ref-id">Identifier</th>= <th class=3D"ref-author">Author</th>= <th class=3D"ref-title">Title</th>= <th class=3D"ref-source">Source</th>= <th class=3D"ref-url">URL/ISBN</th>= <th class=3D"ref-date">Date</th>= <th class=3D"ref-buttons"></th>= </thead><tbody = class=3D"multipleTemplateList">';= }return = true;= }function = sfMultipleInstanceTemplateAfterHTML(&$html, = $template){= if($template->template_name =3D=3D=3D = 'Reference'){$html =3D = '</tbody></table>';$html .=3D = $template->addButtonHTML();$html .=3D = '</div>';}= return true;}function = sfMultipleInstanceTemplateHTML(&$html, $content, = $template){= if($template->template_name =3D=3D=3D = 'Reference'){$html =3D '<tr = class=3D"multipleTemplateInstance = multipleTemplate">'.$content.'</tr>';= }return = true;= }function = sfMultipleInstanceTemplateAdderHTML(&$html, $content, = $template){= if($template->template_name =3D=3D=3D = 'Reference'){$html =3D '<tr = class=3D"multipleTemplateStarter" = style=3D"display:none">'.$content.'</tr>';= }return = true;= }function = sfMultipleInstanceTemplateInnerHTML(&$html, $section, = $template){global = $sfgScriptPath;= if($template->template_name =3D=3D=3D = 'Reference'){
//we = have to str_replace some faux td elements since mediawiki doesn't allow = <td> elements in wikitext without an enclosing table = element
$html =3D = str_replace('-!/td!-','</td>',str_replace('-!td!-', '<td>', = $section)).'<td>'. = '<span class=3D"removeButton"><a class=3D"btn btn-link = remover"><i = class=3D"icon-remove"></i></a></span>'= . '<span class=3D"instanceRearranger"><img = src=3D"'.$sfgScriptPath.'/skins/rearranger.png" = class=3D"rearrangerImage"></span>' = . '</td>';}= return true;= }
- $button
-