setProperties([ 'priority' => 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' => 'del,ins', 'class' => ['del.epc-update', 'ins.epc-update'], 'replace' => '%s %s', ]); $this->setSettings([ 'nocase' => true, 'plural' => true, 'style' => ['text-decoration: line-through;', 'font-style: italic;'], 'notag' => 'h1,h2,h3', 'tplValues' => ['EntryContent'], 'pubPages' => ['post.html'], ]); return 'update'; } public function publicContent($tag, $args) { while ($this->records()->fetch()) { $args[0] = enhancePostContent::replaceString( $this->records()->epc_key, sprintf($this->replace, '\\1', $this->records()->epc_value), $args[0], $this ); } return null; } }