300,
'name' => __('Update'),
'help' => __('Update and show terms. First term of the list is the term to update and second term the new term.'),
'has_list' => true,
'htmltag' => 'pre,code,del,ins',
'class' => ['del.epc-update', 'ins.epc-update'],
'replace' => '%s %s',
];
}
protected function initSettings(): array
{
return [
'nocase' => true,
'plural' => true,
'style' => ['text-decoration: line-through;', 'font-style: italic;'],
'notag' => 'h1,h2,h3',
'tplValues' => ['EntryContent'],
'pubPages' => ['post.html'],
];
}
public function publicContent(string $tag, array $args): void
{
while ($this->records()->fetch()) {
$args[0] = Epc::replaceString(
$this->records()->f('epc_key'),
sprintf($this->replace, '\\1', $this->records()->f('epc_value')),
$args[0],
$this
);
}
}
}