1) {
$nb_text = ' ' . ($i + 1);
}
$title = '';
if (!empty($output['title'][$i])) {
$title = ' - ' . $output['title'][$i];
}
$html .= '
';
$html .= '
Example' . $nb_text . $title . '
' . " \n";
$html .= '
' . " \n";
$form = $output['form'][$i];
if (is_object($form)) {
$html .= '
' . " \n";
// if modal or popover
if ($form->form_ID == 'plugins-modal-form-1') {
$html .= '
';
} elseif ($form->form_ID == 'plugins-popover-form-1') {
$html .= '
';
}
$html .= $form->render(false, false);
$html .= '
';
} else {
$html .= '
' . $form . '
';
}
$uniqid = uniqid();
$html .= '
' . " \n";
$html .= '
' . $output['html_code'][$i] . '
' . " \n";
$html .= '
';
if (is_object($form)) {
$form->setMode('development');
$form->useLoadJs();
$jsfiles = preg_replace("/\r|\n/", "", $form->printIncludes('js', false, false));
$html .= $jsfiles;
$html .= $form->printJsCode(false, false);
}
}
return $html;
}