芝麻web文件管理V1.00
', $prepField . '', $body);
if ($response->getCSP()->enabled()) {
// Add style tag for the container tag in the head tag.
$style = '';
$body = str_ireplace('', $style . '', $body);
}
$response->setBody($body);
}
/**
* Prepares the template by adding label
* content and field name.
*/
protected function prepareTemplate(string $template): string
{
$template = str_ireplace('{label}', $this->config->label, $template);
$template = str_ireplace('{name}', $this->config->name, $template);
if ($this->config->hidden) {
$template = str_ireplace('{template}', $template, $this->config->container);
}
return $template;
}
}