Typesetter/addons/--ReplaceContentVars/Replace.php
2021-09-08 19:52:21 +02:00

21 lines
543 B
PHP

<?php
/**
* Customize content variables that are replaced at output. For Typesetter 5.1-b1 and newer
*/
defined('is_running') or die('Not an entry point...');
class ReplaceCVs {
static function ReplaceContentVars($vars) {
// input keys names without the leading $ but use them with it in the content
$vars['myNameIs'] = '<em>John Doe</em>'; // use $myNameIs in text content
// you may also unset or change preset variables
// $vars['fileModTime'] = '<strong>i won&rsquo;t tell!</strong>';
return $vars;
}
}